Using the deployment Uninstall.txt file to create a batch file to uninstall Autodesk products

October 5, 2020 Ken Williams

Issue:

You would like to uninstall Autodesk products using a batch file.

Solution:

The following instructions explain how to uninstall products from a deployment using the deployment built-in “Uninstall.txt” file.

  1. Go to the location of the deployment and choose the “SMS_SCCM scripts” folder.

  1. Open the file <deployment name>_Uninstall.txt in Notepad or a similar text editor.

  1. First thing after you open the file in Notepad or a similar text editor, is to save the file as ANSI and rename from .txt to .bat
  2. Choose “File”, then choose “Save As…”

  1. Go to the directory that you will save the batch file too. Rename the .txt to .bat next to “File name:” and from the “Save as type” choose “All Files (*.*)

              

  1. *This next step is very important* - Next to the “Save” button is “Encoding:”.  From the  “Encoding” drop-down choose “ANSI” and then “Save”.

Note that ANSI encoding is required to create an executable batch file.

  1. Open the created batch file, and enable the uninstallation commands by removing the "::" characters at the beginning of the "::call :funcUninstall" command line for each product that you want to uninstall. For “Manual uninstallation only” you will need to use “Add and Remove programs"

  1. After removing the “::” characters at the beginning of the "::call :funcUninstall" command line for each product that you want to uninstall, click “File” at the top and choose “Save”
  2. Execute the batch file with Administrative privileges. To Execute with Administrative privileges, Right-click the uninstall batch file and “Run as Administrator”.

About the Author

Ken Williams

Installation Technical Support Specialist<br><br>Ken Williams has over 20 years of experience as a systems administrator helping organizations with installation, configuration, and maintenance. At IMAGINiT, Ken puts his knowledge of Microsoft, SQL, servers, and Autodesk to work ensuring clients are able to stay up-and-running, install their software easily, and maintain their solutions.

Follow on Linkedin More Content by Ken Williams
Previous Article
How to use PDQ to uninstall Autodesk products
How to use PDQ to uninstall Autodesk products

Using PDQ to uninstall Autodesk products using a batch file.

Next Article
How to use PDQ to deploy AutoCAD 2021
How to use PDQ to deploy AutoCAD 2021

How to deploy AutoCAD 2021 using PDQ Deploy

Need tech support? Let us help!

Learn More