Jump to content


Photo

Need Little Help With Script


  • Please log in to reply
1 reply to this topic

#1 m3tro

m3tro

    X-S Member

  • Members
  • Pip
  • 66 posts
  • Location:Way North
  • Interests:modding, pr0n, you know!
  • Xbox Version:v1.2
  • 360 version:v1 (xenon)

Posted 22 February 2006 - 02:33 PM

I'm making a auto-installer script.
I have not tested it yet, but if you know, will this work?

-----------------------------------------------------------------------------------
Set SOD_C $ShortDriveCSize$
Set SOD_E $ShortDriveESize$
Set SOD_X $ShortDriveXSize$
Set SOD_Y $ShortDriveYSize$
Set SOD_Z $ShortDriveZSize$
Set SOD_F $ShortDriveFSize$
Set SOD_G $ShortDriveGSize$

Callscript _DisplayMessageBox "Please Wait..."
Delay 2

AllowFormat 1
FORMAT C:
FORMAT X:
FORMAT Y:
FORMAT Z:
IF %SOD_E% == "0" FORMAT E:
IF %SOD_F% == "0" FORMAT F:
IF %SOD_G% == "0" FORMAT G:
AllowFormat 0
-----------------------------------------------------------------------------------

OTHER STUFF:

How should I do it if I want it to do a special thing if F: / G: has a special size?
(Guess ShortDriveFSize show size in MB)

will this work?

IF %SOD_G% > "10" GOTO hddsize_Gdrive
IF %SOD_F% > "3000" GOTO hddsize_default
IF %SOD_F% > "10" GOTO hddsize_original10
IF %SOD_F% == "0" GOTO hddsize_original08


#2 m3tro

m3tro

    X-S Member

  • Members
  • Pip
  • 66 posts
  • Location:Way North
  • Interests:modding, pr0n, you know!
  • Xbox Version:v1.2
  • 360 version:v1 (xenon)

Posted 22 February 2006 - 02:55 PM

One more thing, is it possible to make an % bar... some way?
So he/she who installs know the progress!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users