AutoCAD 2010/2011/2012

AutoCAD 2010/2011/2012

Reply
Member
paulklerkx
Posts: 4
Registered: ‎06-23-2009
Message 1 of 14 (4,991 Views)

Autocad 2010 - Silent Uninstall - how??

4991 Views, 13 Replies
06-23-2009 05:16 PM
Hi,
Anybody have any idea how to uninstall Autocad 2010 silently. (we use vbscript and SMS)
It has a setup.exe for the install and there is also a setup.exe in program files. I've tried all the usual idea's. none seem to work. Uninstall string from the registry is below (not a very standard string).
C:\Program Files\AutoCAD 2010 en-US\Setup\Setup.exe /P {5783F2D7-8001-0409-0002-0060B0CE6BBA} /M ACAD /language en-US

tried setup.exe /? - no switches given, just shows the uninstall/repair etc window which setup.exe brings up normally.

initially getting "file not found" errors. changed path names to C:\Progra~1\AutoCA~1\Setup\Setup.exe which now allows the setup.exe to be found. All this seems to do is bring up the splash screen to do the uninstall/repair etc. tried slipping in a /qn after each of the switches one at a time. (eg /M /qn) - also tried all the following - /uninst /uninstall /qb /qb! /s
tried the setup.exe /v "/qn" which often works with setup.exe type wrappers.
Tried searching the autodesk site - Nothing.

bit lost - any ideas welcome.
*none
Message 2 of 14 (4,991 Views)

Re: Autocad 2010 - Silent Uninstall - how??

06-23-2009 05:18 PM in reply to: paulklerkx
PaulKlerkx wrote:
> Hi,
> Anybody have any idea how to uninstall Autocad 2010 silently. (we use vbscript and SMS)
> It has a setup.exe for the install and there is also a setup.exe in program files. I've tried all the usual idea's. none seem to work. Uninstall string from the registry is below (not a very standard string).
> C:\Program Files\AutoCAD 2010 en-US\Setup\Setup.exe /P {5783F2D7-8001-0409-0002-0060B0CE6BBA} /M ACAD /language en-US
>
> tried setup.exe /? - no switches given, just shows the uninstall/repair etc window which setup.exe brings up normally.
>
> initially getting "file not found" errors. changed path names to C:\Progra~1\AutoCA~1\Setup\Setup.exe which now allows the setup.exe to be found. All this seems to do is bring up the splash screen to do the uninstall/repair etc. tried slipping in a /qn after each of the switches one at a time. (eg /M /qn) - also tried all the following - /uninst /uninstall /qb /qb! /s
> tried the setup.exe /v "/qn" which often works with setup.exe type wrappers.
> Tried searching the autodesk site - Nothing.
>
> bit lost - any ideas welcome.
Go to Control Panel and uninstall from there.
Member
paulklerkx
Posts: 4
Registered: ‎06-23-2009
Message 3 of 14 (4,991 Views)

Re: Autocad 2010 - Silent Uninstall - how??

06-23-2009 05:38 PM in reply to: paulklerkx
You must have missed the Subject of my post - Note "Silent Uninstall"

I work for a company that uses Systems management Server to do both installs and uninstalls whereever possible as we have around 1600 computers. Currently have 12 uninstalls of Autocad 2010 requested and when the next version is released, we'll still need to be able to remove the 15+ installs that remain by the time the next version goes in.

Thanks anyway but Add Remove programs is not really an option.

Also, this is just for Autocad - if the uninstall process is the same, we have around 50 other autodesk 2009 licences that will require similiar uninstall scripts written if/when they are upgraded to 2010.

*none
Message 4 of 14 (4,991 Views)

Re: Autocad 2010 - Silent Uninstall - how??

06-23-2009 07:54 PM in reply to: paulklerkx
PaulKlerkx wrote:
> Hi,
> Anybody have any idea how to uninstall Autocad 2010 silently. (we use vbscript and SMS)
> It has a setup.exe for the install and there is also a setup.exe in program files. I've tried all the usual idea's. none seem to work. Uninstall string from the registry is below (not a very standard string).
> C:\Program Files\AutoCAD 2010 en-US\Setup\Setup.exe /P {5783F2D7-8001-0409-0002-0060B0CE6BBA} /M ACAD /language en-US
>
> tried setup.exe /? - no switches given, just shows the uninstall/repair etc window which setup.exe brings up normally.
>
> initially getting "file not found" errors. changed path names to C:\Progra~1\AutoCA~1\Setup\Setup.exe which now allows the setup.exe to be found. All this seems to do is bring up the splash screen to do the uninstall/repair etc. tried slipping in a /qn after each of the switches one at a time. (eg /M /qn) - also tried all the following - /uninst /uninstall /qb /qb! /s
> tried the setup.exe /v "/qn" which often works with setup.exe type wrappers.
> Tried searching the autodesk site - Nothing.
>
> bit lost - any ideas welcome.
SILENT UNINSTALLS means nothing to me. Clarification would be better!
Member
paulklerkx
Posts: 4
Registered: ‎06-23-2009
Message 5 of 14 (4,991 Views)

Re: Autocad 2010 - Silent Uninstall - how??

06-23-2009 09:27 PM in reply to: paulklerkx
A silent uninstall is used when you want to uninstall software without being prompted for anything. Normally in a script of some description. Personally we use Vbscripting. Some people use batch files, others just use the command line.

an example of a very basic uninstall of an msi based install might be

C:\WINDOWS\system32\msiexec.exe /X {1A6D6B44-DBA5-433D-9FEA-D829BEF04DD7} /qn

the X indicates an uninstall.
the /qn in this command indicates q - quiet and n for no gui
the long number is the guid that belongs to the program I wish to uninstall.
to do a silent install, you swap the X with an I and replace the guid with the name of the msi

A good site to look into this more is www.appdeploy.com if you would like to see the types of things I am talking about.

In a company where larger numbers of installs and uninstalls are done, software such as systems management server or group policy using silent install scripts is the main method for deploying software and also uninstalling software when it is finished with.
Hope that helps.

However if you don't know what a silent install is, you probably aren't going to be able to help. Thanks anyway.
**Master
dmfrazier
Posts: 2,757
Registered: ‎05-13-2003
Message 6 of 14 (4,991 Views)

Re: Autocad 2010 - Silent Uninstall - how??

06-24-2009 05:36 AM in reply to: paulklerkx
You could try posting in the CAD Managers forum.
*Mark McDonough
Message 7 of 14 (4,991 Views)

Re: Autocad 2010 - Silent Uninstall - how??

06-24-2009 09:16 AM in reply to: paulklerkx
We use Prism Deploy as our software deployment (and uninstall) management
solution, although we're a couple versions behind. Just about everything,
from massive GIS applications, all Autodesk & Adobe apps, down to a single
regkey or icon, can be "pushed" to client workstations using this
technology.

One can uninstall directly using Prism, but in our older version this
capability has some shortcomings. Instead, we use Prism Deploy to make an
uninstall "image" that can be sent quietly to all client workstations. For
some Autodesk applications (possibly with other products too), an uninstall
can "break" a newer version of a particular product when both were installed
side-by-side. In such cases, I do the following:

1. Start the Prism Deploy image capture.
2. Uninstall the app using Add/Remove programs.
3. Go through and delete left over files if the program doesn't clean up
after itself (often the case) and do the same with the registry editor.
4. Finish the Prism Deploy image capture.
5. Edit the Prism Deploy image capture just made. Specifically I play it
on the safe side, and if the image picked up files in, let's say, C:\Program
Files\Common Files\Autodesk Shared, I remove those entries from the package
just in case.
6. Make a Prism Deploy "group" in the deployment console, add the image as
a Prism Deploy "task", add people's computer object to the group, and they
all get the silent uninstalls.

Just did this with Revit Arch 2010, to uninstall Autodesk Design Review 2009
via Prism Deploy silent package, because the Revit 2010 bundles Autodesk
Design Review 2010 into the installation, but fails and goes into an endless
loop if Design Review 2009 is present. Also did the same with Navisworks
2010 installations, sending quiet [*unattended*] uninstalls for the 2009
versions.

--
Mark McDonough
Sasaki Associates
http://www.sasaki.com
*Expert Elite*
GTVic
Posts: 929
Registered: ‎09-07-2004
Message 8 of 14 (4,991 Views)

Re: Autocad 2010 - Silent Uninstall - how??

06-24-2009 02:17 PM in reply to: paulklerkx
What we do is create a deployment and then break down the components of the install by examining the SETUP.INI file. Determine what packages already exist on the company's computers and remove them and separate others out (C++ Runtime, DirectX Runtime, .NETFramework, etc.)

Use the SETUP.INI to examine the command line parameters of each package and modify the MSI properties as necessary for no user interaction by default (using ORCA from Microsoft). LIMITUI = 1, ALLUSERS=1, etc. This might be redundant because the command line parameters will also specify silent but it satisfies the SMS standards people. Then create a script similar to the following:

{code}
Run "Msiexec /i AutoCAD2009.msi TRANSFORMS=AutoCAD2009.mst /L*v C:\Windows\Logs\AutoCAD2009.log"
Run "Msiexec /i SubBonus1\AutoCAD2009BonusPack1.msi /L*v C:\Windows\Logs\AutoCAD2009BonusPack1.log"
Run "Msiexec /update SubBonus2\ServicePacks\acadswl.msp /L*v C:\Windows\Logs\AutoCAD2009ServicePack2.1.log"
Run "Msiexec /i SubBonus2\AutoCAD2009BonusPack2.msi /L*v C:\Windows\Logs\AutoCAD2009BonusPack2.log"
{code}

The uninstall can then be something like this:

{code}
Run "Msiexec /x {ED87B2F6-2776-4AF5-9DB2-82E07A8B6EBC} /qb /passive /norestart /L*v C:\Windows\Logs\AutoCAD2009BonusPack2uninstall.log"
Run "Msiexec /x {62DD4BF8-E6BA-4091-A48D-BC512723FD78} /qb /passive /norestart /L*v C:\Windows\Logs\AutoCAD2009BonusPack1uninstall.log"
Run "Msiexec /x {5783F2D7-7001-0409-0002-0060B0CE6BBA} /qb /passive /norestart /L*v C:\Windows\Logs\AutoCAD2009uninstall.log"
{code}
*Mark McDonough
Message 9 of 14 (4,991 Views)

Re: Autocad 2010 - Silent Uninstall - how??

06-24-2009 03:24 PM in reply to: paulklerkx
I essentially do the same here, drilling down inside the network AdminImage
install, and separately and sequentially call all of the subcomponent or
pre-requisite software installers via a script. This also allows sending
additional component all as a single install... such as object enablers,
hotfixes, plugins, custom app settings, etc.

However, there are at times certain EXE files that can't always be run in
quiet mode. For 3ds Max Design 2009, I could not suppress (for unattended
installation) Mad Design 2009 SP1, nor the FBX plugin. In these cases,
since we're using software image/pushing technology (Prism Deploy), I
created a software install image for these items and called the image
package instead of the actually installer.

I have also experienced certain installers such as with AutoCAD 2008, where
the MSXML 6.0 Parser that AutoCAD tries to install is an older build that
versions already on some stations, and it would pop up an unsuppressible
prompt... maybe if I had more energy to build even more intelligence into
the scripts to test for already installed versions I could have prevented
that one... but when one deploys, I test a script on a dozen or more
stations, then work through the problems when I get a few incidental botched
installations in a much larger rollout. I must say, this part of the
scripting and testing eats up a huge chunk of time, and with each new
Autodesk product and their ever-growing litany of pre-requisite softwares,
deploying Autodesk products for a couple hundred stations or more is getting
harder and harder.

--
Mark McDonough
Sasaki Associates
http://www.sasaki.com


wrote in message news:6207919@discussion.autodesk.com...
What we do is create a deployment and then break down the components of the
install by examining the SETUP.INI file. Determine what packages already
exist on the company's computers and remove them and separate others out
(C++ Runtime, DirectX Runtime, .NETFramework, etc.)

Use the SETUP.INI to examine the command line parameters of each package and
modify the MSI properties as necessary for no user interaction by default
(using ORCA from Microsoft). LIMITUI = 1, ALLUSERS=1, etc. This might be
redundant because the command line parameters will also specify silent but
it satisfies the SMS standards people. Then create a script similar to the
following:

{code}
Run "Msiexec /i AutoCAD2009.msi TRANSFORMS=AutoCAD2009.mst /L*v
C:\Windows\Logs\AutoCAD2009.log"
Run "Msiexec /i SubBonus1\AutoCAD2009BonusPack1.msi /L*v
C:\Windows\Logs\AutoCAD2009BonusPack1.log"
Run "Msiexec /update SubBonus2\ServicePacks\acadswl.msp /L*v
C:\Windows\Logs\AutoCAD2009ServicePack2.1.log"
Run "Msiexec /i SubBonus2\AutoCAD2009BonusPack2.msi /L*v
C:\Windows\Logs\AutoCAD2009BonusPack2.log"
{code}

The uninstall can then be something like this:

{code}
Run "Msiexec /x {ED87B2F6-2776-4AF5-9DB2-82E07A8B6EBC} /qb /passive
/norestart /L*v C:\Windows\Logs\AutoCAD2009BonusPack2uninstall.log"
Run "Msiexec /x {62DD4BF8-E6BA-4091-A48D-BC512723FD78} /qb /passive
/norestart /L*v C:\Windows\Logs\AutoCAD2009BonusPack1uninstall.log"
Run "Msiexec /x {5783F2D7-7001-0409-0002-0060B0CE6BBA} /qb /passive
/norestart /L*v C:\Windows\Logs\AutoCAD2009uninstall.log"
{code}
Member
paulklerkx
Posts: 4
Registered: ‎06-23-2009
Message 10 of 14 (4,991 Views)

Re: Autocad 2010 - Silent Uninstall - how?? - RESOLVED

06-24-2009 05:09 PM in reply to: paulklerkx
Thanks to everyone for the suggestions. some suggestions from here combined with suggestions from appdeploy got me to the solution. Following is the vbscript that worked for me. Quite simple once I got away from trying to use the setup.exe or the autodesk uninstall string from the registry.

Dim WshShell
Dim objFSO
Set WshShell = CreateObject("wscript.shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")

WshShell.Run "c:\windows\system32\msiexec.exe /x {5783F2D7-8001-0409-0002-0060B0CE6BBA} /qn /passive /norestart /l c:\LogFiles\Uninstall_Autocad_2010.log"

WshShell.Run "c:\windows\system32\msiexec.exe /x .\x86\acad\en-us\AcadLP.msi /qn /l c:\LogfilesUninstall_Autocad_2010_language_pack.log" Edited by: paulklerkx on Jul 2, 2009 10:04 AM
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.