I was recently installing Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 to create my build server on a VM (Windows 2003 R2 Std), I was wondering that it would be nice to specify the temporary folder for the files being extracted by MSI for use during the installation.
This should ideally work for any MSIs.

I have some more virtual hard disks I have attached to this VMs, to point the temporary folder for MSI to one of these virtual hard disks would be quite productive since I can remove/discard this virtual hard disk later.

Compacting the C drive VHD is a pain, and does not always reclaim space correctly.

I tried changing the %temp% and tmp environment variable with no effect? Or is there any concrete/alternative solution to this type of problem?

TempFolder Property ??
Windows Installer Wiki

  • Did you change your %TEMP% variable or the system one? I know this works for XP if you set the system variable. – John Gardeniers Jul 14 '10 at 7:45
  • @John, System Properties --> Environmental Variables... – Binoj Antony Jul 14 '10 at 7:53
  • on that dialog the upper part is for your personal variables and the bottom part is for the system ones. If setting the system variable hasn't worked try setting your personal one (create it if necessary) and see if that gives you the desired results. – John Gardeniers Jul 14 '10 at 10:55

For .Net 4.0 or higher, the command is: dotNetinstaller.exe /x:c:\destination_folder /q

For .Net 3.5 or older, the command should be: dotNetinstaller.exe /T:c:\destination_folder /q

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.