-
/nt6, /nt5 or /vhd have to be
the first parameter all other don't require any order
- does not matters if
-paramter or /Parameter
- give paths can be relative (to WinNTSetup_x??.exe)
- if a path includes spaces enclose it with
" "
- /nt6 or /nt5 - will let winntsetup know which os to install (nt6: for vista and later, nt5 for XP/2003)
- /
source:(path) - defines the installation sources (for nt5 the root of the windows CD, for nt6 the install.wim file)
- /
syspart:(driveletter:) - defines the driveletter you want as boot drive
- /
tempdrive:(driveletter:) - defines the driveletter you want as installation drive
- /
unattend:(file) - defines the path of the unattend file (winnt.sif or unattend.xml)
- /
drivers:(path) - defines the path to a drivers folder you want to use
- /
wimindex:n - defines the edition inside install.wim which should be installed beginning with 1 (like in the combo box Edition)
- /
setupwait - will push the setup button and show you the proceed page
- /
setup - will start the setup
- /
reboot - will automaticly reboot 30 seconds after setup finished
- /
forceunsigned - (only for installing Windows 7) will let the driver integration accept unsigned drives
- /
testsigning - will set testsigning flag for the new Windows installation
- /
disableuac - will disable User Account Control
- /
Sysletter:{Letter} - will define the systemdrive letter the new windows installation will have
- /
SaveDriveLetters - will save the current driveletter assaignment for the new windows installation
- /
Uxtheme - will patch the uxtheme related dll's to enable the use of custom msstyles files
- /
nobootsect - will not update BootSector and Master Boot Record
- /
RunAfter:{command} - will run a command before reboot
- /
cfg:{inifile} - load settings from ini file
- /
HiveFix:{inffile] - use a special inf, to customize setup
http://www.msfn.org/...600-hivefixinf/
- /
vhd
- /
create
- /
VHDFile:{path} - defines the full path for the new VHD file
- /
VHDSize:{size} - defines the size in MB or GB (ex. 25600MB or 25GB)
- /
VHDType:{type} - defines the type of VHD:
fixed, expandable or fixedfast
---- optional ----
- /
VHDLabel:{Label} - label for the vhd partition
- /
VHDAlig:{Alig} - Allignment (32|64|128|256|512|1024|2048) of the partition
- /
VHDAllo:{Allo} - Allocation unit (512|1024|2048|4096|8192|16K|32K|64K) of the partition
- /
mount - attach a VHD to system
/
VHDFile:{path}
- /
unmount - detach a VHD from system
/
VHDFile:{path}
examples:
- Install Windows7 Ultimate (usually Wimindex 5) to drive C:, using unattend.xml file and define driver to integrate.
Use C: as driveletter for the new Win installation, run set_7_usb_boot.cmd before rebooting
WinNTSetup2_x86.exe -NT6 -source:G:\sources\install.wim -WimIndex:5 -syspart:C: -tempdrive:C: -unattend:"unattend\Win7x86_Ultimate_en.xml"
-ForceUnsigned -drivers:"D:\driver_Win7x86" -Sysletter:C -RunAfter:"set_7_usb_boot.cmd C:\windows" -setup -reboot
- Install Windows XP to drive D:, where boot drive is C:, using unattend file [app dir]\unattend\winnt.sif,
integrate drivers [app dir]\XP_drivers, finsih install and reboot. But does not change MBR and BPR
WinNTSetup2_x86.exe -NT5 -source:E:\XPCD -syspart:C: -tempdrive:D: -unattend:"unattend\winnt.sif" -drivers:"XP_drivers" -setup -reboot -nobootsect
- creating a 25GB fixed VHD file
WinNTSetup2_x86.exe -VHD -create -VHDFile:"C:\my.vhd" -VHDSize:25GB -VHDType:fixed
-attach vdisk "C:\my.vhd"
WinNTSetup2_x86.exe -VHD -unmount -VHDFile:"C:\my.vhd"
-detach vdisk "C:\my.vhd"
WinNTSetup2_x86.exe -VHD -mount -VHDFile:"C:\my.vhd"