Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

References:
TempFolder Property ??
Windows Installer Wiki

share|improve this question
    
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
add comment

1 Answer 1

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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