Q: Unattend.txt

Discussion in 'Scripting' started by Stone Chen, Dec 28, 2003.

  1. Stone Chen

    Stone Chen Guest


    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.

    Stone Chen, Dec 28, 2003
    1. Advertisements

  2. 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...:)

    ProgramFilesDir="C:\My Happy Applications"

    You might also want change the default location of Common Files in
    Program Files

    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:

    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...
    Johan Arwidmark, Dec 28, 2003
    1. Advertisements

  3. Stone Chen

    Stone Chen Guest

    Thank you, that's exactly what I needed!!! And so very promptly, no less.


    Stone Chen, Dec 28, 2003
  4. Stone Chen

    peter hansen Guest

    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
    peter hansen, Dec 29, 2003
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.