Quick Links - Also see the menu above and more choices on the right side of the blog (too much, but all good stuff)

\/ ...and now BIMbuilder.com Blog Posts... \/

Friday, October 29, 2010

Scripting Uninstall - The #Revit Clinic


I've been expermenting the last few days with some scripting.  You may be familar with the solution that walks through the process ( 2011: How to Uninstall Revit products ).  It is one of the most widely used solutions so, as a pilot, I decided to try my hand at scripting the process to make it easier and faster. 

Sometimes there are problems that require you remove the Revit product and reinstall it.  Sometimes, just doing that from the Windows control panel is not effective and doesn't solve the issue.   The process to do a "Clean" uninstall is a little challenging as in involves navigating to multilple folders and manually editing the registry.  This script attempts to make the process easier. 

There was a lot of trial and error developing this script, but after working with our product support specialists for testing (thanks to their help, I was able to test on multiple operating systems and different products), I think I have a script that works well and does the job. 

A couple of warnings:  

  1. Make sure you backup any customizations, custom families, or templates before running the script.  The script deletes files, folders and registry keys on your machine to perform the clean uninstall and I would hate if you lost something you needed.  Also, it is a good idea to also backup your registry if you can before running the script.  See solution, TS66513 for more information. Additional information about the registry is also contained in the Help topics in the Microsoft Registry Editor.
  2. Disable any Anti-virus that may be running on your machine before running the script. 
  3. Make sure you talk to your system adminstrator and have adminstrative permissions before running the script.
  4. Please review the technical solution before running the script.  The solution follows the process that the script uses so you will know what the script is deleting (except for number 4). 
  5. The script does not remove the Autodesk Material Libraries or any shared components with other Autodesk Products. 

I wrote the script in VBScript so it is open (uncomplied) and you can edit or modify it to fit your needs.  I would love to hear your comments, questions, or suggestions about the script (or if you run into any errors).  I am planning on working on a few others, if this goes well, so if you have any suggestions I would like to hear them.  

Now that we are through all of that.  Download the REVIT 2011 - Uninstall scriptand give it a try if you need to. I've commented out the skipping error handling section of this script, so if it don;t successful do something, you will be able to see the error message.  Save the script to your machine and double click on it to run the script.  You will be prompted to enter which product you want to uninstall.  

Happy Scripting

0 comments:

  © Blogger template ProBlogger Template by Ourblogtemplates.com 2008

Back to TOP  

[Valid Atom 1.0]