Jump to content

Recommended Posts

Posted

For some strange reason, I hate the way in which everything gets installed to the "Program Files" directory. I much prefer to install to say Utilities directory, a Games directory etc..

Are there any switches to do this for unattended installs on the standard setup programs like InstallShield, Wise etc..

I haven't found much info on this - any ideas?


Posted

A "per application" solution won't be easy. The easiest is to change the special folder called "programfiles"

2 ways:

-In your winnt.sif file, put this:

[unattended]

    UnattendMode=FullUnattended

    OemSkipEula=Yes

    OemPreinstall=Yes

    TargetPath=\WINDOWS

    ProgramFilesDir="D:"

    CommonProgramFilesDir="D:\FichiersCommuns"

Change the 2 red color text to whatever you want.

I do have better results using "D:" instead of "D:\". The only (minor) problem comes from avast. Since it uses Internet Explorer rendering engine, I dunno why it will look at D:\\Avast\... for files and can't find them... So avast will look ugly... :)

-Second method is to change the key in the registry under:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

Look for the "ProgramFilesDir" REG_SZ value. Change it accordingly.

good luck

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...