Partager via


Chaining unattended installation of Visual Studio .NET 2003, its prerequisites and MSDN

Hey all, I have been meaning to take some time to write down some comments and strategies about unattended installation of the various pieces of Visual Studio .NET. For this article I'm going to focus on a specific request that I've seen very often - how to chain the unattended installation of the Visual Studio prerequisites, the main Visual Studio bits and the MSDN help documentation.

In order to perform any unattended installs there are a couple of key points to remember:

  • You have to create an unattended INI file that is fed into setup later on to perform the actual installation
  • In order to create an unattended INI file for the Visual Studio setup package, you first have to install the .NET Framework (or the entire set of VS prerequisites) on the machine you create the INI file on - this is because the .NET Framework needs to be present in order to correctly parse and evaluate the vs_setup.msi (because vs_setup.msi contains assemblies and the mechanism Windows Installer uses to manage installation of assemblies is through fusion and fusion is installed by the .NET Framework)
  • The unattended INI file is OS-specific. That means if you create the INI file on Windows XP, you need to install Visual Studio on only Windows XP operating systems.
  • The unattended INI file is also Visual Studio edition specific. That means that you have to create the INI file using the same exact version of Visual Studio as you want to deploy (for example the English version of Visual Studio .NET 2003 Enterprise Architect)

Here are the steps I used to successfully create INI files and install Visual Studio .NET 2003 Enterprise Architect English on Windows XP Professional:

  1. Run [Prerequisite Disk Path]\setup.exe /createunattend c:\prereq.ini /vsupdate="[Visual Studio Disk Path]\setup\setup.exe" /vsupdateargs="unattendfile c:\vs.ini"
  2. Install prerequisites on your test machine
  3. Run [Visual Studio Disk Path]\setup\setup.exe /createunattend c:\vs.ini /vsupdate="[MSDN Path]\setup.exe" /vsupdateargs="qn"
  4. Open c:\prereq.ini, go to the [PostSetupLaunchList] section and change """unattendfile c:\vs.ini""" to /unattendfile c:\vs.ini
  5. Open c:\vs.ini, go to the [PostSetupLaunchList] section and change """qn""" to /qn
  6. Go to a clean machine without Visual Studio .NET 2003 installed and run [Prerequisite Disk Path]\setup.exe /unattendfile c:\prereq.ini

In the above instructions, the disk paths in square brackets should be substituted with the actual paths of the parts of the product in question. Also, it is required that your computer be able to access the installation paths represented by [Prerequisite Disk Path], [Visual Studio Disk Path] and [MSDN Path] during the installation process. Installing via CD will not work correctly because unattended install does not show disk prompt dialogs, plus that would defeat the purpose of an unattended install anyways. I recommend following the steps in the readme on the root of Visual Studio Disk 1 to stage all of the parts of Visual Studio to a network share. You can find the instructions for doing this for Visual Studio .NET 2003 at https://support.microsoft.com/default.aspx?scid=fh;en-us;vsnet11&x=12&y=15#installingnetwork

As always - please let me know if you have any questions with any of the above or run into trouble getting the steps to work.

Comments

  • Anonymous
    December 15, 2004
    after i create my ini files were should I place them? Dothey go in the folders in which I have the set up files?
  • Anonymous
    December 15, 2004
    It should not matter where you put the INI files after you create them. You will just need to make sure that the path you provide in steps 1, 4 and 6 after the word "unattendfile" are consistent with the location that you put the INI files after they are created.

  • Anonymous
    April 08, 2005
    Ever since I posted my original instructions for chaining unattended installation of the Visual Studio...
  • Anonymous
    May 14, 2005
    RePost:
    http://www.yeyan.cn/SoftwareEngineering/VisualStudioNETinstallationMSDN.aspx
  • Anonymous
    June 27, 2005
    Sweet, that's exactly the info I was looking for... I've got a lot of Visual Studio installation going on and I was wondering why I couldn't run the .msi for the setup, now that explain everything.

    Thx for the info Aaron!
  • Anonymous
    June 21, 2006
    I followed all the steps, but still get the same error as:

    Error 1308. Source file not found: c:visual studio net 2003vsprod1Program FilesMicrosoft Visual Studio .NET 2003SDKv1.1Docscpqstart.HxS. Verify thta the file exists and that you can access it.

    Please help.

    Many thanks!!
  • Anonymous
    June 30, 2006
    Hi Bumblebee - That file is on CD2 of VS 2003.  Can you see that file in the location listed in the error dialog?  Are you sure you followed the steps to stage all of the disks of VS setup into a single network share?  Those steps are described at http://support.microsoft.com/default.aspx?scid=fh;en-us;vsnet11&x=12&y=15#installingnetwork.
  • Anonymous
    April 22, 2008
    thanks Aaron Stebner alot for this toturial but i wanna ask about 2 things
  • when the installation begins the system restart automatic , how can i avoid this ?
  • Is there anyway to make indicator, popup message to tell me when the installation finished thanks again
  • Anonymous
    April 22, 2008
    The comment has been removed

  • Anonymous
    January 20, 2009
    PingBack from http://www.hilpers.com/1030421-silent-unattend-installation-von-msdn

  • Anonymous
    April 06, 2009
    在进行修复VS2008之前,我只用到C#,但是因为项目的需要我需要用到c ,准备修复一下VS2008.但是却出现了“Aproblemhasbeenencounteredwhileload...