You can use the ProgramFilesDir parameter in the [Unattended] section.
The reason why you couldnt find it in the .chm files is because the
feature is undocumented...
Example:
[Unattended]
ProgramFilesDir="C:\My Happy Applications"
You might also want change the default location of Common Files in
Program Files
[Unattended]
ProgramFilesDir="C:\My Happy Applications"
CommonProgramFilesDir="C:\My Happy Applications\My Common Files"
you can also change this after the install is complete by modifying
the registry (If you want to automate this you can import
a reg-file after the setup by using regedit /s filename.reg).
To change the program files folder, start regedit
Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
Modify the ProgramFilesDir string and reboot...
Please Note:
There have been some issues regarding changing the default program
files on NT 4 and EX 5.x...
Error Message: Setup Was Unable to Download the Required Components.
Please Make Sure You Are...
http://support.microsoft.com/?kbid=281320
Hello,
Is there a way to change the default program installation folder from
C: \Program Files to something else, such as D:\Apps, during
unattended installatioin by modifying the Unattend.txt file? I search
around ref.chm from the Windows Server 2003 CD and could not find an
answer.
Thanks