Installation & Licensing
Welcome to Autodesk’s Installation and Licensing Forums. Share your knowledge, ask questions, and explore popular Download, Installation, and Licensing topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Silent Uninstall of AutoCAD 2011 via SCCM

17 REPLIES 17
Reply
Message 1 of 18
tmpamlrs
8765 Views, 17 Replies

Silent Uninstall of AutoCAD 2011 via SCCM

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
17 REPLIES 17
Message 2 of 18
chiggins
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

Message 3 of 18
hashim.mundol
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.

Message 4 of 18
chiggins
in reply to: tmpamlrs

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

Message 5 of 18
hashim.mundol
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.

Message 6 of 18
hashim.mundol
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.

Message 7 of 18
tmpamlrs
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

Message 8 of 18
GTVic
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

Message 9 of 18
tmpamlrs
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.
Message 10 of 18
jdavis
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.

Message 11 of 18

After installation of autodesk product , we will get the registry with uninstal string of autodesk silent parameter.

"""C:\Program Files\Autodesk\Inventor 2012\Setup\Setup.exe"" /q /P {7F4DD591-1664-0409-0000-7107D70F3DB4} /R INVENTOR /LANG en-US /Wait", 1, True

Example for Autocad inventor.

 

chaitu

Message 12 of 18
jlewis808
in reply to: tmpamlrs

Has anyone successfully remotely uninstalled Autocad 2011? I am using EMCO remote installer 4 and have not been able to get it to work with any parameter.

I have used
/x/q
msiexec /x {5783F2D7-9005-0409-0102-0060B0CE6BBA} /q
Setup.exe /x {5783F2D7-9005-0409-0102-0060B0CE6BBA}
Setup.exe /x {5783F2D7-9005-0409-0102-0060B0CE6BBA} /q

and many more combinations without success.

Also, does anyone have a recommendation for deploying Autocad 2014 via EMCO, AD, SCCM, etc????

Thanks

Message 13 of 18
GTVic
in reply to: jlewis808

Do you have the right coding, your screen capture shows Mechanical but that is not mentioned in your post?

 

msiexec /x {B96F1390-23DD-4002-B183-EF0560D784E9} /qb! /Passive /l*v ACAD2011WSPlugIn_UI.log
msiexec /x {42E572CC-6D4C-4A3E-B937-7594D36B2B44} /qb! /Passive /l*v ACAD2011SubAdvPack_UI.log
msiexec /x {711883AE-ED83-4327-9DFA-053F969344CA} /qb! /Passive /l*v ACAD2011CivilOE_Uninstall.log
msiexec /x {6EFD3469-9001-4A85-B52F-2B6C27E946BE} /qb! /Passive /l*v ACAD2011RasterDesignOE_UI.log
msiexec /x {5783F2D7-9001-0409-0002-0060B0CE6BBA} /qb! /Passive /l*v ACAD2011_R18.1.208.0_UI.log
msiexec /x {5783F2D7-9001-0409-1002-0060B0CE6BBA} /qb! /Passive /l*v ACAD2011LanguagePack_UI.log
msiexec /x {CD1E078C-A6B9-47DA-B035-6365C85C7832} /qb! /Passive /l*v ACAD2011BaseImage_UI.log
msiexec /x {9DEABCB6-B759-4D52-92F8-51B34A2B4D40} /qb! /Passive /l*v ACAD2011MaterialLibrary_UI.log
msiexec /x {951B0F30-9F1A-4BF6-B3DA-99EB0E917B1C} /qb! /Passive /l*v FARO_LSSDK_UI.log

 

Message 14 of 18
jlewis808
in reply to: GTVic

I suppose not. How would I uninstall it?

The GUID that I have is the 5783F2D7-9005-0409-0102-0060B0CE6BBA.

Thanks for the quick response by the way!

Message 15 of 18
GTVic
in reply to: jlewis808

My post shows the commandline that works. You can get the correct GUIDs from your computer registry.

 

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\

 

If you use the command line format the log file will give you additional details about what is wrong

Message 16 of 18
jlewis808
in reply to: GTVic

I had the correct GUID from the registry.

 

I ended up trying PSExec.

 

I already had PSEXEC dowloaded.

 

Went to Start > Run> typed: Runas /user:administrator@DOMAINNAME cmd

I used this command: 

C:\PSTools>PSEXEC \\COMPUTERNAME msiexec /x {5783F2D7-9005-0409-0102-0060B0CE6BBA} /qb! /Passive /l*v ACAD2011Mechanical_Uninstall.log

 

This was the response (took about 3 - 5 minutes 😞

msiexec exited on CP188 with error code 0.

 

code 0 means all good.

 

Checked remote machine and AutoCad 2011 Mechanical was uninstalled.

 

What I didn't realize is that EMCO goes out to the registry and looks for the Uninstall String of the Product.

You will see the Command it is sending in the attached screenshots.

It was trying to run:

C:\Program Files\Autodesk\ACADM 2011\Setup\Setup.exe /P {5783F2D7-9005-0409-0102-0060B0CE6BBA} /M/ACM /lang en-US

THEN ATTACHING MY COMMAND OF 

msiexec /x {5783F2D7-9005-0409-0102-0060B0CE6BBA} /qb! /Passive /l*v ACAD2011Mechanical_Uninstall.log

TO THE END OF THE ENTIRE COMMAND

 

Now I just have to figure out how the tell EMCO Remote Installer to use this command instead of the whole thing.

 

Thanks again.

 

 

 

Message 17 of 18

I am trying to bulk uninstall autocad 2011 using server and batch file for a complete organization but it is not working I used following methods to unistall the AUTOCAD 2011 but it didn't work can you tell me the solution.

@echo OFF

msiexec.exe/Uninstall{5783F2D7-9001-0409-0102-0060B0CE6BBA}/quiet /norestart
msiexec.exe/Uninstall{5783F2D7-9001-0409-1102-0060B0CE6BBA}/quiet /norestart
@echo OFF
msiexec.exe /x{5783F2D7-9001-0409-0102-0060B0CE6BBA}/quiet 
msiexec.exe /x{5783F2D7-9001-0409-1102-0060B0CE6BBA}/quiet
@echo OFF
msiexec.exe /x{5783F2D7-9001-0409-0102-0060B0CE6BBA}
msiexec.exe /x{5783F2D7-9001-0409-1102-0060B0CE6BBA}
 
Message 18 of 18

we arer using only active directory

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Administrator Productivity


Autodesk Design & Make Report