Installation & Licensing

Reply
Member
tmpamlrs
Posts: 3
Registered: ‎05-20-2010
Message 1 of 16 (5,587 Views)

Silent Uninstall of AutoCAD 2011 via SCCM

5587 Views, 15 Replies
05-20-2010 03:29 AM
Hi,

we have tested deploying AutoCAD 2011 using the deployment wizard and SCCM successfully. The command line 'AdminImage\setup.exe /W /Q /I AdminImage\AutoCAD 2011.ini /Lang en-US' was used for this. I can't find how to silently uninstall the product using the same method. Does anybody know how to do this or what command line switches are available?

Thanks

Mike
New Member
chiggins
Posts: 2
Registered: ‎10-14-2010
Message 2 of 16 (5,389 Views)

Re: Silent Uninstall of AutoCAD 2011 via SCCM

10-14-2010 02:35 AM in reply to: tmpamlrs

Hi Mike 

 

I notice no one has replied to your post did you get any joy as there seems to be very little information around on the web regarding uninstallation. 

 

Thanks

C

Product Support
hashim.mundol
Posts: 1,459
Registered: ‎05-21-2010
Message 3 of 16 (5,369 Views)

Re: Silent Uninstall of AutoCAD 2011 via SCCM

10-15-2010 02:32 AM in reply to: chiggins

Sorry there is not documented silent uninstall from setup.exe

 

To uinstall Only Autocad 2011 you can use the following command

 

msiexec /x {GUID} /qb

 

replace the GUID according to the uninstall string from the registry(this would change on Language and Architecture)

 

 

 

 

---------------------------------------------------------------------------------------
If my post answers your question, please mark it as an Accepted Solution, so that others can find answers quickly!
For more tips & tricks: http://upandready.typepad.com



Hashim Mundol
Autodesk Product Support
Autodesk, Inc.

New Member
chiggins
Posts: 2
Registered: ‎10-14-2010
Message 4 of 16 (5,365 Views)

Re: Silent Uninstall of AutoCAD 2011 via SCCM

10-15-2010 02:35 AM in reply to: tmpamlrs

Thanks Hashim, the same be used to do ACAD 2010? 

Product Support
hashim.mundol
Posts: 1,459
Registered: ‎05-21-2010
Message 5 of 16 (5,363 Views)

Re: Silent Uninstall of AutoCAD 2011 via SCCM

10-15-2010 02:38 AM in reply to: chiggins

Yes it should work for ACAD 2010 also.

 

---------------------------------------------------------------------------------------
If my post answers your question, please mark it as an Accepted Solution, so that others can find answers quickly!
For more tips & tricks: http://upandready.typepad.com



Hashim Mundol
Autodesk Product Support
Autodesk, Inc.

Product Support
hashim.mundol
Posts: 1,459
Registered: ‎05-21-2010
Message 6 of 16 (5,361 Views)

Re: Silent Uninstall of AutoCAD 2011 via SCCM

10-15-2010 02:39 AM in reply to: chiggins

use /q instead of /qb for no progress window,

---------------------------------------------------------------------------------------
If my post answers your question, please mark it as an Accepted Solution, so that others can find answers quickly!
For more tips & tricks: http://upandready.typepad.com



Hashim Mundol
Autodesk Product Support
Autodesk, Inc.

Member
tmpamlrs
Posts: 3
Registered: ‎05-20-2010
Message 7 of 16 (5,215 Views)

Re: Silent Uninstall of AutoCAD 2011 via SCCM

10-29-2010 03:24 AM in reply to: hashim.mundol

' This script will uninstall any Autodesk products installed by AutoDesk AutoCAD 2011
' A text file containing any msiexec code for Acad.msi is saved to the CCM\Temp folder

'Acad.msi = {5783F2D7-9001-0409-0002-0060B0CE6BBA}
'The Product Code above is applied with Acad.mst during setup
'faro_ls.msi = {951B0F30-9F1A-4BF6-B3DA-99EB0E917B1C}
'ProteinMaterials.msi = {9DEABCB6-B759-4D52-92F8-51B34A2B4D40}
'BaseImageLibrary.msi = {CD1E078C-A6B9-47DA-B035-6365C85C7832}
'AcadLP.msi = {5783F2D7-9001-0409-1002-0060B0CE6BBA}
'SetupDesignReview2011.msi = {8D20B4D7-3422-4099-9332-39F27E617A6F}

On Error Resume Next

Dim oFilesys, oFiletxt

Set oFilesys = CreateObject("Scripting.FileSystemObject")
Set WshShell = CreateObject("WScript.Shell")


sCmdLine = "msiexec /x {8D20B4D7-3422-4099-9332-39F27E617A6F} /qn"
WshShell.Run sCmdLine,1,True

sCmdLine = "msiexec /x {951B0F30-9F1A-4BF6-B3DA-99EB0E917B1C} /qn"
WshShell.Run sCmdLine,1,True

sCmdLine = "msiexec /x {9DEABCB6-B759-4D52-92F8-51B34A2B4D40} /qn"
WshShell.Run sCmdLine,1,True

sCmdLine = "msiexec /x {CD1E078C-A6B9-47DA-B035-6365C85C7832} /qn"
WshShell.Run sCmdLine,1,True

sCmdLine = "msiexec /x {5783F2D7-9001-0409-0002-0060B0CE6BBA} /qn"
RetVal = WshShell.Run(sCmdLine,1,True)

sCmdLine = "msiexec /x {5783F2D7-9001-0409-1002-0060B0CE6BBA} /qn"
WshShell.Run sCmdLine,1,True

If (RetVal = 0) Or (RetVal = 3010) Then

    Set oFiletxt = oFilesys.OpenTextFile("c:\windows\system32\ccm\temp\autocad2011_uninstall.txt",8,True)
    oFiletxt.WriteLine("Successful: " & RetVal)
    oFiletxt.WriteLine(Date)
    oFiletxt.WriteLine(Time)
    oFiletxt.WriteLine("-------------")
    oFiletxt.Close
        
    MsgBox "AutoCAD 2011 Uninstalled.",0,"title"

Else

    Set oFiletxt = oFilesys.OpenTextFile("c:\windows\system32\ccm\temp\autocad2011_uninstall.txt",8,True)    
    oFiletxt.WriteLine("Failure: " & RetVal)
    oFiletxt.WriteLine(Date)
    oFiletxt.WriteLine(Time)
    oFiletxt.WriteLine("-------------")
    oFiletxt.Close
    MsgBox "AutoCAD 2011 uninstall completed with Error Code:" & RetVal,0,"title"
    WScript.Quit(RetVal)
End If

*Expert Elite*
GTVic
Posts: 906
Registered: ‎09-07-2004
Message 8 of 16 (4,993 Views)

Re: Silent Uninstall of AutoCAD 2011 via SCCM

11-26-2010 02:11 PM in reply to: tmpamlrs

Hi, the above script is very helpful, do you have a similar one for the install?

 

besides all the materials library and other prerequisites, the critical items are the main MSI and the language pack.

msiexec /i <path1>\acad.msi transforms=<path1>\acad-<deployment name>.mst

msiexec /i <path2>\acadlp.msi ?????

 

By analyzing the <deployment name>.INI file, I can see no evidence that setup.exe even runs the acadlp.msi. That section is not referenced at all, there is even a LPMODE=NO_ADD_LP entry which further confuses me. So at the moment I am not even scripting the acadlp.msi file. There is a LPMODE=MLD setting under [ACAD] but I don't know what that is for.

 

ACAD_LANGPACK is not referenced anywhere else in the INI.

 

[ACAD_LANGPACK]
PRODUCT_NAME=AutoCAD Language Pack
EXE_PATH=%lang%\acad\AcadLP.msi

Member
tmpamlrs
Posts: 3
Registered: ‎05-20-2010
Message 9 of 16 (4,950 Views)

Re: Silent Uninstall of AutoCAD 2011 via SCCM

11-30-2010 06:17 AM in reply to: GTVic
Hi, we are running the setup.exe from an Admin installation which installs all the MSIs listed in the script. Creating the Admin installation will populate the ini file with which items to install. You can modify the script to use msiexec /i {MSI location and name} instead of /x to install individual MSIs but this isn't something I've tried.
Member
jdavis
Posts: 3
Registered: ‎09-10-2012
Message 10 of 16 (2,326 Views)

Re: Silent Uninstall of AutoCAD 2011 via SCCM

09-10-2012 11:56 AM in reply to: tmpamlrs

Sadly, autodesk should be following best practices here but are not doing so.  You should never have had to go to such lengths.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Up & Ready Blog

Boldly Install, Configure and Deploy Autodesk Software.

AutodeskHelp Blog

Your one-stop shop for the latest solutions, breaking news, and behind the scenes access to the world of Autodesk support.

Connect with Us

Twitter

Pinterest

Blog

Youtube