Sie sind auf Seite 1von 27

The setup wizard will start copying needed files into a temporary folder. Just wait.

In the welcome setup wizard page you can enable the tick box to send your setup
experience to Microsoft if you want. In this case we jest leave it unchecked. Just wait for
the wizard to load the installation components.

Click the Next button to go to the next step.

The setup wizard will list down all the required components need to be installed. Any
already installed components will also be mentioned. Notice that VS 2008 (version 8.x)
needs .NET Framework version 3.5. Key in the Product key and accept the license
terms. Then click the Next button.

In the installation type, as usual we have three choices: Default, Full or Custom. In this
case we select the Full installation type and accept the default installation path given.
You can change the installation path and the required space for every installation type
also displayed when we select it.

In this case, select the Full and click the Install button. Full installation required around
4.3 GB of space.

The installation starts. Just wait and see the step-by-step, Visual Studio 2008
components being installed.

--------------------------------------------------------------------------------

---------------------------------------------------------------------------------

Any component that failed to be installed will be marked with the red cross mark instead
of the green tick for the successful. After the installation is completed successfully, you
can install the documentation (MSDN library) by following the instruction mention in the
above Figure. In this case we just exit the setup wizard by clicking the Finish button.

Click Restart Now to restart you machine.

The Windows Start menu for Visual Studio 2008 is shown below.

Next we will try to build and run a very simple C++/CLI (C++ .NET) program. Launch
Visual Studio 2008 by selecting Microsoft Visual Studio 2008 menu > Microsoft Visual
Studio 2008 sub-menu. Depending on your programming needs, in this case we will
select Visual C++ Development Settings. So, when VS 2008 launched, now and later,
all the settings are default to VC++. The VS 2008 IDE will change the development
settings to the respective type when we choose to create a project in that type when the
IDE already opened next type. Select Start Visual Studio button.

The VS 2008 is configuring the development environments to the chosen one for the
first time use.

Well, the following is the VS 2008 IDE. Looks not so different to the VS 2005 other than
the color.

Next let try building and running a simple C++ code. Select File > Project menu.

Expand Visual C++ folder > select CLR (Common Language Runtime) in the Project
types: window. On the right window for the Templates: select CLR Console Application.
Put the project name in the Name: field. Change the project location if needed in the
Location: field and rename the Solution Name: if needed. In this case we just put the
project name as Helloworld. Click OK.

In the source code template type the following hello world code. The L modifier used for
Unicode string (by default and can be changed in the project settings page).
Console::WriteLine(L"Hello World");

Th e WriteLine() method is similar to the printf() function.

Next, build the project. Select Build > Build Helloworld as shown in the following Figure.

Then, run the project without debugging. Select Debug > Start Without Debugging.

Well, finally the console output for the hello world program.

WORKAROUND: Visual Studio 2008 Fails To Install


Symptoms:
You are running as a limited user on Windows Vista and when you run Visual Studio 2008's installer and
approve the UAC prompt, setup either hangs during the .NET Framework 3.5 installation or the
installation hangs during setup.
Workaround:
Reboot your machine.
Log in as an administrator.
Install the .NET Framework 3.5 installer by itself.
Reboot your machine.
Log in as your normal user.
Install Visual Studio 2008 as normal.

You can read the instructions on:


http://download.microsoft.com/download/4/9/0/490EADD1-19C0-47F9-9748E901C926F925/adminreadme2008.htm
http://www.microsoft.com/en-us/download/details.aspx?id=21

...to suit your needs. This is however how I did the install to be assigned through GPO deployment.

Visual Studio 2008 requires


...on Windows XP:
- XP with atleast SP2
- Internet Explorer 6.0 Service Pack 1
- Windows Installer 3.1 (Included in XP SP3)

...on all Windows platforms:


- Microsoft .NET Framework 3.5
- Microsoft Web Designer Tools
- Microsoft Document Explorer 2007

I created a GPO and a corresponding security group, as a normal GPO deployment.

I chose to script these components with a startup script but still making Visual Studio 2008 an
assigned application in this GPO. Not sure I can recommend this approach since it will try to install
VS 2008 first, fail once and then run the script with the required components - then you have to
reboot to initialize the VS 2008 installation. Dirty but it works, and this way we can still use "Uninstall
this application when it falls out of the scope of management" to uninstall VS 2008 if needed.

These are the steps i took:


- Extract contents of the CD/ISO to a local drive
- Manually install the prerequired components or you will likely get an error trying to install VS 2008.
- Create transform with desired settings
<path to extracted cd>\setup.exe /CreateTransform <path to extracted cd>\setup.mst
- Create administrative installation point
msiexec /a vs_setup.msi /qb /L*v C:\vs_setup.log TRANSFORMS=vs_setup.mst
PIDKEY=<product_key without "-" or spaces> TARGETDIR=D:\VS
(This will include all prerequired install files under the folder WCU\)
- Copy contents of D:\VS to \\<path to VSSHARE>- Create .vbs installscript that does the following:
' --- If VisualStudio components is already installed: Do nothing, quit script.
' --- Check OS Version - Warn if not SP 3.x - Option to proceed anyway
' --- Check version of Windows Installer. If lower than 3.1.4001.5512 - install 3.1.
objShell.Exec("%comspec% /c \\<VSSHARE>\WCU\msi31\WindowsInstaller-KB893803-v2x86.exe /quiet /norestart")
' --- Install .NET Framework 3.5 bundle (installs 2.0 first if not installed)
objShell.Exec("%comspec% /c \\<VSSHARE>\WCU\dotNetFramework\dotNetFx35setup.exe
/qb /norestart")

' --- Install Microsoft Web Designer Tools


objShell.Exec("%comspec% /c
\\<VSSHARE>\WCU\WebDesignerCore\WebDesignerCore.EXE /Q /install")
' --- Install Microsoft Document Explorer 2007
objShell.Exec("%comspec% /c \\<VSSHARE>\WCU\DExplore\DExplore.exe /q")
' --- Ask user if they want to reboot (since after reboot the installation of VS 2008 starts, which can
take around an hour to complete, I wanted the users to have the option to wait)

Interesting to note that..


Microsoft SQL Server 2005 Express Edition
Crystal Reports Basic for Visual Studio 2008
..are installed by default on Administrative setup but can only be unselected in normal setup.

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows

Arctos

Show Comments ( 0 )

11/19/2008

Command Line
To create a transform run:
setup.exe /CreateTransform <Path>\VS2008.mst

To apply the transform


setup.exe /msipassthru=BEGIN"TRANSFORMS=<Path>\VS2008.mst"END

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows

msenn

Show Comments ( 0 )

12/01/2008

Note
I worked on Visual Studio and found that various setup.exe switches can be used to install the
application. Basically, /q , /full , /norestart. I tried creating MST but unfortunately that .mst switch did
not work with me.

I finally wrote two vbscripts to install and uninstall the application separately. I am not sure whether it
is a good practice or not.

Following is the VB i wrote to install the application silently without restarting and fully:(The setup.exe
launched is inside setup folder on CD and not on the root)

dim shell
set shell = WScript.CreateObject("WScript.Shell")

shell.Run("setup\setup.exe /q /norestart /full")

To Uninstall:

dim shell
set shell = WScript.CreateObject("WScript.Shell")

shell.Run("setup\setup.exe /q /remove /norestart /full")

Not sure whether this will give any error during deployment.

SOURCE: http://blogs.msdn.com/astebner/archive/2007/09/12/4887301.aspx

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows

satnix

Show Comments ( 0 )

11/28/2008

Command Line
Silent install with transform.

Copy The Visual studio 2008 Pro media to a local folder on the hard drive.

Transform creation:

From run:
SourceFolder\Setup\Setup.exe /CreateTransform SourceFolder\settings.mst

Example: C:\VS2008\Setup\setup.exe /CreateTransform C:\VS2008\settings.mst

Note: The Setup in the root folder does not work for this action! Use the one in Setup folder.

To run the installation silent


From run:
SourceFolder\vs_setup.msi TRANSFORMS=SourceFolder\settings.mst /QB!

Example:
C:\VS2008\vs_setup.msi TRANSFORMS=C:\VS2008\settings.mst /QB

To run the Uninstall silent:


From run:
msiexec /X{veryLongUnicProductIdOfMSIFile} /QB!

Method tested with SCCM 2007 on a Windows XP Image with the prerequisites in place on forehand
(.NET etc). Works.

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows

danseegert

07/17/2009

Show Comments ( 0 )

Note
For those who used the setup\setup.exe silent switches to install (/q /norestart /full), here's the
order/product code of everything that is installed by Visual Studio. 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"


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}"

Das könnte Ihnen auch gefallen