Tuesday, August 18, 2009

How to perform an unattended install of Visual Studio 2008

This file explains all about how to perform an unattended install of Visual Studio 2008

Want a summary? This is my 3 step guide. Hope it helps!

1. Create a INI file that contains the configuration you desire with this command:
Run the setup UI and at the end you'll get a "Save settings button".

2. Then, modify the INI FILE this way:
Locate and remove "gfn_mid windows installer 3.1" lines in [PreInstallOrder], [InstallOrder], and [PostInstallOrder] sections of the file.
3. Run the unattended installation:
[VISUAL STUDIO SETUP FORLDER]\setup\Setup.exe /unattendfile [PATH TO INI FILE]
Also, important to know:
Visual Studio Log File Locations

The following log files are generated during Visual Studio 2008 setup:

* dd_error__90.txt
* dd_install__90.txt
* VSMsiLog****.txt (where * is a randomly-generated suffix)

During Visual Studio setup , the log files are located in the %temp% directory. For example:

C:\Documents and Settings\[User Name]\Local Settings\Temp

After Visual Studio installation , the log files are located in the Logs directory in the path that Visual Studio is installed. For example:

C:\Program Files\Microsoft Visual Studio 9\[Product Name]\Logs

After a Visual Studio failed installation or removal, the log files are left in the %temp% directory.

No comments: