Part 1 - Prep:
- Create root folder under a UNC share named “ADR2011”
- Create sub-folders “VCRedist\2005” and “VCRedist\2008”
- Download Design Review 2011 32-bit MSI installer
- Download MS Visual C++ 2005 SP1 Runtime
- Download MS Visual C++ 2008 Runtime
- Folder tree should look something like this:
- \server\software\ADR2011\...
- SetupDesignReview2011.msi
- Setup.bat
- VCRedist\
- 2005\
- 2008\
Part 2 - Build:
- Extract VC++ 2005 .exe into %TEMP%
- Creates VCRedist~3.EXE
- Extract the Extraction into “ADR2011\VCRedist\2005”
- Creates vcredist.msi and vcredis1.cab
- Extract VC++ 2008 .exe into “ADR2011\VCRedist\2008”
- Creates a bunch of files, including vc_red.msi
- Right-click the .MSI files, select “Properties”, and click the “Unblock” button (if it appears)
- SetupDesignReview2011.msi
- Vcredist.msi (2005)
- Vc_red.msi (2008)
- Copy the script code (below) into a text editor and save it as “setup.bat” in the “ADR2011” root folder
Part 3 - Deploy via SCCM:
- Create a Collection for targeting clients with ADR 2011
- Create a Package:
- General (tab)
- Name: “Design Review”
- Version: “2011”
- Manufacturer: “Autodesk”
- Data Source (tab)
- Check “This package contains source files”
- Click “Set” and browse to the UNC folder
- Save and Close
- Create a Program for the Package:
- General (tab)
- Name: “Design Review 2011 32-bit Install”
- Command Line (Browse to select “setup.bat”)
- Environment (tab)
- Program can run: “Whether or not a user is logged on”
- Advanced (tab)
- Check “Suppress program notifications”
- Save and Close
- Add a Distribution Point:
- Select a DP server, save and close
- Create an Advertisement:
- General (tab)
- Name: “Autodesk Design Review 2011 32-bit Install”
- Comment: whatever you feel like entering
- Package: “Autodesk Design Review 2011 32-bit”
- Program: “Design Review 2011 32-bit Install”
- Collection: (your collection)
- Un-check “Include members of subcollections” (for now anyway)
- Schedule (tab)
- Click the asterisk “*” button next to “Mandatory assignments”
- Select “Assign immediately after this event: As soon as possible” (click OK)
- Check “Ignore maintenance windows when running program”
- Distribution Points (tab)
- Select: “Run program from distribution point”
- Select: “Download content from distribution point and run locally” (** you decide if this step works for you **)
- Save and Close
- Force SCCM machine policy refresh on target computer(s) to run advertisement sooner
- Eat something, Drink, Tell some bad jokes, Drink some more
- Check on the results
- Adjust as needed (and drink some more)
- Go to bed
SCRIPT CODE:
@echo off
rem ****************************************************************
rem Filename..: setup.bat
rem Author....: skatterbrainz.blogspot.com
rem Date......: 10/26/2010
rem Purpose...: install Autodesk Design Review 2011
rem ****************************************************************
CLS
SETLOCAL
SET LOG=%TMP%\adr2011_setup.log
SET DESC=DesignReview2011
rem -----------------------------------------------
echo %DATE% %TIME% initializing script [setup.bat] >%LOG%
echo %DATE% %TIME% source........ "%~dps0" >>%LOG%
echo %DATE% %TIME% target........ %computername% >>%LOG%
echo %DATE% %TIME% windir........ %windir% >>%LOG%
echo %DATE% %TIME% progfiles..... %programfiles% >>%LOG%
echo %DATE% %TIME% tmp........... %tmp% >>%LOG%
echo ---------------------------------------------- >>%LOG%
if not exist "c:\program files\common files\microsoft shared\vc\msdia80.dll" (
echo %DATE% %TIME% info: installing vcc 2005 32-bit runtime... >>%LOG%
echo %DATE% %TIME% command = msiexec /i "%~dps0VCRedist\2005\vcredist.msi" /quiet /norestart >>%LOG%
msiexec /i "%~dps0VCRedist\2005\vcredist.msi" /quiet /norestart
rem echo %DATE% %TIME% command = "%~dps0VCRedist\2005\vcredist_x86.exe" /q:a /c:"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log" >>%LOG%
rem start /wait "%~dps0VCRedist\2005\vcredist_x86.exe" /q:a /c:"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log"
echo %DATE% %TIME% info: result code = %errorlevel% >>%LOG%
) else (
echo %DATE% %TIME% info: vcc 2005 32-bit runtime already installed >>%LOG%
)
echo ---------------------------------------------- >>%LOG%
if not exist "c:\program files\common files\microsoft shared\vc\msdia90.dll" (
echo %DATE% %TIME% info: installing vcc 2008 32-bit runtime... >>%LOG%
echo %DATE% %TIME% command = msiexec /i "%~dps0VCRedist\2008\x86\vc_red.msi" /quiet /norestart >>%LOG%
msiexec /i "%~dps0VCRedist\2008\x86\vc_red.msi" /quiet /norestart
echo %DATE% %TIME% info: result code = %errorlevel% >>%LOG%
) else (
echo %DATE% %TIME% info: vcc 2008 32-bit runtime already installed >>%LOG%
)
echo ---------------------------------------------- >>%LOG%
echo %DATE% %TIME% info: downloading installer package... >>%LOG%
copy "%~dps0SetupDesignReview2011.msi" "%tmp%" /Y
echo %DATE% %TIME% info: installing %DESC%... >>%LOG%
echo %DATE% %TIME% command = msiexec /i "%tmp%\SetupDesignReview2011.msi" /quiet /norestart >>%LOG%
msiexec /i "%tmp%\SetupDesignReview2011.msi" /quiet /norestart
echo %DATE% %TIME% info: result code = %errorlevel% >>%LOG%
echo ---------------------------------------------- >>%LOG%
echo %DATE% %TIME% info: installation complete! >>%LOG%
ENDLOCAL
exit %errorlevel%
Important: Be careful of word-wrapping when copying the code above. Each line that begins with “echo” should end with “>>%LOG” on the same line. Do not let it wrap to the next line!
4 comments:
Hi there!
Would be great if you could update this installation to fit todays installation method. Autodesk does not suply us with an msi package especialiy not whith autocad lt 2011. Personaly I could really use this since I can't get the deployment method to work via sscm.
Cheers!
Thomas
I'm not sure what you mean by "today's installation method". Did you read my other posts on this subject?
Great job! I'm using this for another product that needs the VC++ runtimes.
Just an fyi. When you write a batch file listing within a post, use use a code block. This makes it much easire to read.
See http://www.google.com/support/forum/p/blogger/thread?tid=18456cd2be95d8e2&hl=en
That is a great suggestion. Thank you. I've been using Live Writer 2011 and it defaults to PRE tags instead of CODE tags. I will be sure to edit it more carefully. I appreciate the feedback!
Post a Comment