Wednesday, October 12, 2005

VBscript to deploy AutoCAD 2006 SP1 or the like

Here is a snippet of a VBScript that I used to install AutoCAD 2006 SP1:
on error resume next
Dim WshShell
Set WshShell = Wscript.CreateObject("Wscript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
PN = WshShell.RegRead(Acad2006 & "ProductName")
If fso.FolderExists("C:\Program Files\AutoCAD 2006") and PN="AutoCAD 2006" Then
  Release = WshShell.RegRead(Acad2006 & "Release")
  If Release="" Then
    WshShell.Run """\\it.local\Acad2006\AutoCAD2006SP1.exe"" /q",1,true
  End if
End if

Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner