Re: ZTIUserExit.vbs



SMS_Wannabe wrote:

I am trying to configure the system with a 15gb C partition, and leave the
rest of the disk alone so an installer can cut up the drive later as he/she
likes.

Try this ZTIDiskPart.txt :

REM // Suppression de toutes les partitions du disque.
select disk=0
clean

REM // Création de la partition Système : 15 Go.
select disk=0
create partition primary size=15240
select partition=1
assign letter=C
active

exit

When I set up ZTIUserExit.vbs to use the ztidiskpart options pasted
below, the set up does not work as I expected. Instead of creating a 15gb C
drive and installing the OS on that drive, OSD creates a C drive that uses
all available disk space (a full 60gb on my lab system).

By Default, it's the process. Do you have changed your ZTIDiskPart.txt
?

I assume this has to do with OSD running diskpart.exe parsing the default
"diskpart.txt" on it's own during the pre-install phase. I guess this must
happen after the custom action runs and overwrites the earlier configuration?

no. Open ZTIUserExit.vbs with Notepad and check line 37 : Can you read
this : iRetVal = wshShell.Run("DISKPART.EXE /s """ & sThisScriptDir &
"\ZTIDiskPart.txt""", 0, true)

If you read : DiskPart.txt, change it to ZTIDiskPart.txt or rename your
file to DiskPart.txt

.


Loading