Q: Unattend.txt

  • Thread starter Thread starter Stone Chen
  • Start date Start date
S

Stone Chen

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
 
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
 
Thank you, that's exactly what I needed!!! And so very promptly, no less.

Stone

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
 
Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

Modify the ProgramFilesDir string and reboot...

By changing this reg-key all programs will be isntalled by default at this
path but there is a problem - at least in Windows XP (and maybe also 2000)
considering Outlook. If you change this key you'll have to reinstall the
given Windows-version as an update to make Outlook work - else then you'll
get an error everytime you try to start Outlook. This error cannot be
solved, as far as I know, just by transfering the files requested - you have
to reinstall (as an update) before you can use Outlook again


// Kian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top