Friday, September 7, 2012

Silent Installation & Uninstallation Of Visual Studio Professional 2008 :



Silent Installation Of Visual Studio Professional 2008 :

There are three ways of Silent Installation :


Using the Following Parameters :


 

1.) For Default Installation :

/Setup.exe /q /norestart


Also the User Name & Organization can be passed to the Default Installation using the properties as Follows :

/Setup.exe /q /norestart gfn_ core user name=USERNAME gfn_ core organization=ORGANIZATIONNAME

2.) For Full Installation :

/Setup.exe /q /full /norestart

3.) For Custom Installation :

We have to Create an Unattend .INI file which includes all the Customization using the following Command line :

/Setup.exe /CreateUnattend FilePath\FileName.ini

Proceed as per below Screens :


 
Click on Next

 

Select Custom Installation, Edit Install Location if Desired, Click on Next


 
Select the Features ( Products ) you want to Install & Click Save Settings.

The Unattend .INI File is Created at the path we have Given Above.

Before Using the Unattended File we have to Install Following :

Required Components

Microsoft Windows Installer 3.1
WCU\msi31 WindowsInstaller-KB893803-v2-x86.exe /quiet /norestart

Microsoft .NET Framework 3.5
WCU\dotNetFramework dotnetfx35setup.exe /q /norestart /lang:ENU

Microsoft Visual Studio 2008 64bit Prerequisites
WCU\64bitPrereq\x64 vs_bsln.exe /Q USING_EXUIH=1

Microsoft Document Explorer 2008
WCU\DExplore dexplore.exe /q

Microsoft Web Designer Tools
WCU\WebDesignerCore WebDesignerCore.exe /Q /install

Installation Using Unattend .INI :

/Setup.exe /UnattendFile FilePath\FileName.ini


Caution Note :

You must create a unique .INI unattend file for each target operating system. For example, unattend file created for Windows XP would not be usable for Windows 7 and vice versa.
Also Create Different .INI files for 32 Bit & 64 Bit Operating Systems.

Log File Locations

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

dd_error_<VS_Product>_90.txt
dd_install_<VS_Product>_90.txt

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

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

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.

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.

Silent Uninstallation Of Visual Studio Professional 2008 :


Visual Studio Professional 2008 Installs many of the Dependecies During Installation, These Dependecies must be Uninstalled During the Uninstallation Of Visual Studio Professional 2008.

For this we have to Uninstall Every Single Product that is installed by the Setup During Uninstalltion.

This can be done by Collecting the Product Codes for all the Products installed & then Uninstalling them One by One.

For those who used the setup\setup.exe Silent Switches to install (/q /norestart /full), here's the Product Code of everything that is installed by Visual Studio Professional 2008.
Everything need to be uninstalled manually since the uninstall of VS 2008 only uninstall VS 2008 .

MSI_NAME = "Microsoft Office Visual Web Developer 2007"

MSI_GUID = "{90120000-0021-0000-0000-0000000FF1CE}"


MSI_NAME = "Microsoft SQL Server Compact 3.5 ENU"

MSI_GUID = "{BCC899FE-2DAA-460C-A5FB-60291E73D9C3}"


MSI_NAME = "Microsoft SQL Server Database Publishing Wizard 1.2"

MSI_GUID = "{9A33B83D-FFC4-44CF-BEEF-632DECEF2FCD}"


MSI_NAME = "Microsoft SQL Server Compact 3.5 Design Tools ENU"

MSI_GUID = "{2E5C075E-11AB-4BDD-918C-7B9A68953FF8}"


MSI_NAME = "Microsoft SQL Server Compact 3.5 for Devices ENU"

MSI_GUID = "{241F2BF7-69EB-42A4-9156-96B2426C7504}"


MSI_NAME = "Windows Mobile 5.0 SDK R2 for Pocket PC"

MSI_GUID = "{6C9F6D23-E9AD-43C9-B43A-011562AAF876}"


MSI_NAME = "Windows Mobile 5.0 SDK R2 for Smartphone"

MSI_GUID = "{9656F3AC-6BA9-43F0-ABED-F214B5DAB27B}"


MSI_NAME = "Crystal Reports Basic for Visual Studio 2008"

MSI_GUID = "{AA467959-A1D6-4F45-90CD-11DC57733F32}"


MSI_NAME = "Microsoft SQL Server 2005 Express Edition (SQLEXPRESS)"

MSI_GUID = "{2AFFFDD7-ED85-4A90-8C52-5DA9EBDC9B8F}"


MSI_NAME = "Microsoft SQL Server 2005 Tools Express Edition"

MSI_GUID = "{2750B389-A2D2-4953-99CA-27C1F2A8E6FD}"


MSI_NAME = "Microsoft SQL Server Setup Support Files (English)"

MSI_GUID = "{53F5C3EE-05ED-4830-994B-50B2F0D50FCE}"


MSI_NAME = "Visual Studio Tools for the Office system 3.0 Runtime"

MSI_GUID = "{8FB53850-246A-3507-8ADE-0060093FFEA6}"


MSI_NAME = "Microsoft Visual Studio 2005 Tools for Office Runtime"

MSI_GUID = "{388E4B09-3E71-4649-8921-F44A3A2954A7}"


MSI_NAME = "Microsoft Windows SDK for Visual Studio 2008 .NET Framework Tools"

MSI_GUID = "{05EC21B8-4593-3037-A781-A6B5AFFCB19D}"


MSI_NAME = "Microsoft Windows SDK for Visual Studio 2008 Headers and Libraries"

MSI_GUID = "{842FAF7C-50EF-4463-9B8F-6222E1384D7D}"


MSI_NAME = "Microsoft Windows SDK for Visual Studio 2008 SDK Reference Assemblies and IntelliSense"

MSI_GUID = "{64c5b887-b5ee-42b8-8596-78905a6b5f1f}"


MSI_NAME = "Microsoft Windows SDK for Visual Studio 2008 Tools"

MSI_GUID = "{CAA376AF-0DE8-4FCA-942E-C6AC579B94B3}"


MSI_NAME = "Microsoft Windows SDK for Visual Studio 2008 Win32 Tools"

MSI_GUID = "{B268E9A1-04A9-40D0-9866-846BE2B74BA7}"


MSI_NAME = "Microsoft SQL Server Native Client"

MSI_GUID = "{F9B3DD02-B0B3-42E9-8650-030DFF0D133D}"


MSI_NAME = "Microsoft SQL Server VSS Writer"

MSI_GUID = "{E9F44C98-B8B6-480F-AF7B-E42A0A46F4E3}"


MSI_NAME = "Microsoft Office Shared MUI (English) 2007"

MSI_GUID = "{90120000-006E-0409-0000-0000000FF1CE}"


MSI_NAME = "Microsoft Office Shared Setup Metadata MUI (English) 2007"

MSI_GUID = "{90120000-0115-0409-0000-0000000FF1CE}"


MSI_NAME = "Microsoft Office Visual Web Developer MUI (English) 2007" ( Web Authoring Component )

MSI_GUID = "{90120000-0021-0409-0000-0000000FF1CE}"


MSI_NAME = "Microsoft Document Explorer 2008"

MSI_GUID = "{6753B40C-0FBD-3BED-8A9D-0ACAC2DCD85D}"


MSI_NAME = "Microsoft Device Emulator version 3.0 - ENU"

MSI_GUID = "{B32E7732-B2FB-3FD0-81AC-6025B1104C66}"


MSI_NAME = "Microsoft .NET Compact Framework 2.0 SP2"

MSI_GUID = "{EDDF99D9-9FE3-4871-A7DB-D1522C51EE9A}"


MSI_NAME = "Microsoft .NET Compact Framework 3.5"

MSI_GUID = "{291B3A3B-F808-45B8-8113-DF232FCB6C82}"


MSI_NAME = "Microsoft Visual Studio 2008 Professional Edition - ENU"

MSI_GUID = "{D7DAD1E4-45F4-3B2B-899A-EA728167EC4F}"

Also all these Products are Installed in a Sequential Order, Therefore they must be Uninstalled in a Definite Sequence.

The Sequence for Uninstallation can be found by Applying MSI Logging Policy & Using the Uninstall Tool Available on Microsoft Website : Download
AutoUninstallTool

If you run this tool, the screens will look like given below :





 

This UninstallTool.exe Cannot be Used for Silent Uninstallation of Visual Studio 2008 as the Silent Parameters for the tool ( /q ) Dont work.
The Tool is just Used for Knowing the Right Sequence of Product Uninstallation.

No comments:

Post a Comment