Skip to main content
17-Peridot
April 27, 2017
Solved

Creo 4 Uninstall Piece by Piece

  • April 27, 2017
  • 1 reply
  • 12660 views

For Creo 3, our company batch file would uninstall each application one at a time, before doing an install for a new datecode. Each application was uninstalled separately for better support and flexibility with options.

For the Creo Agent, in Creo 3, we used the WMIC protocols to uninstall it. However, in Creo 4, that no longer works for the Platform Services, even though it is listed in WMIC.

Support suggests we use the new Install Manager batch file to uninstall everything at once. As I've said, I like the flexibility of doing it one at a time. I tried to even uninstall everything first and then wait to the end to use the Install Manager just for the Platform Services. However, when I do this, the Install Manager is removed, leaving the Platform Services still installed.

Does anyone have any inventive solutions to uninstall Platform Services on its own, using a batch command, besides using the Install Manager to uninstall everything at once?

Thanks in advance!

Best answer by davehaigh

Everything you need to uninstall via a command line is in the registry. Open up regedit and then pick edit Find and what I do is type in something I think will be unique to Creo. So in the control panel from programs & features you see this:

4-27-2017 8-35-03 AM.jpg

I typed in datecode [f000] in the search field to get most of them.

4-27-2017 8-22-24 AM.jpg

My first hit was for Flexnet, what you want is the key that says UninstallString.

4-27-2017 8-21-43 AM.jpg

Every component should have one.

4-27-2017 8-22-58 AM.jpg

4-27-2017 8-24-03 AM.jpg

4-27-2017 8-24-35 AM.jpg

4-27-2017 8-25-00 AM.jpg

4-27-2017 8-25-22 AM.jpg

You’ll also want to do a search on the other items listed in the control panel.

To copy these commands out of the registry so you don’t have to retype them and possibly fat finger it, pick on the UninstallString key and pick Modify.

4-27-2017 8-25-57 AM.jpg

Hi-lite the value data field and RMB Copy.

4-27-2017 8-26-20 AM.jpg

Now you can paste that into notepad++ or whatever editor you use. like this:

"C:\Program Files\PTC\Creo 4.0\F000\InstallManager\uninstall.exe" -xmlPath "C:\Program Files\PTC\Creo 4.0\F000\Simulate\bin\pim\xml"

The advantage of using the uninstall string is it works much quicker than the WMIC commands.

If the untinsall string lists an msi you may want to add this to the end of the string. /qn REBOOT=ReallySuppress

For example:

  1. MsiExec.exe /X{0430FEB4-0CC6-4447-84D3-08443E4977CB} /qn  REBOOT=ReallySuppress

1 reply

davehaigh13-AquamarineAnswer
13-Aquamarine
April 27, 2017

Everything you need to uninstall via a command line is in the registry. Open up regedit and then pick edit Find and what I do is type in something I think will be unique to Creo. So in the control panel from programs & features you see this:

4-27-2017 8-35-03 AM.jpg

I typed in datecode [f000] in the search field to get most of them.

4-27-2017 8-22-24 AM.jpg

My first hit was for Flexnet, what you want is the key that says UninstallString.

4-27-2017 8-21-43 AM.jpg

Every component should have one.

4-27-2017 8-22-58 AM.jpg

4-27-2017 8-24-03 AM.jpg

4-27-2017 8-24-35 AM.jpg

4-27-2017 8-25-00 AM.jpg

4-27-2017 8-25-22 AM.jpg

You’ll also want to do a search on the other items listed in the control panel.

To copy these commands out of the registry so you don’t have to retype them and possibly fat finger it, pick on the UninstallString key and pick Modify.

4-27-2017 8-25-57 AM.jpg

Hi-lite the value data field and RMB Copy.

4-27-2017 8-26-20 AM.jpg

Now you can paste that into notepad++ or whatever editor you use. like this:

"C:\Program Files\PTC\Creo 4.0\F000\InstallManager\uninstall.exe" -xmlPath "C:\Program Files\PTC\Creo 4.0\F000\Simulate\bin\pim\xml"

The advantage of using the uninstall string is it works much quicker than the WMIC commands.

If the untinsall string lists an msi you may want to add this to the end of the string. /qn REBOOT=ReallySuppress

For example:

  1. MsiExec.exe /X{0430FEB4-0CC6-4447-84D3-08443E4977CB} /qn  REBOOT=ReallySuppress
jwagh17-PeridotAuthor
17-Peridot
April 27, 2017

A couple of questions:

  1. Is the gibberish value the same for all computers? (MsiExec.exe /I{319DF626-D04C-4CF6-B4F7-27080294A4A0})
  2. Do these gibberish values change each datecode or version? I would assume so. So every version I would need to go through this process again? We could have users, who barely use the software and be 2, 3 or even 7 versions behind on the software. The batch would need to be smart enough to know that and account for that. I'm a little concerned that I would need to check for each one of these MsiExec values if they change for each iteration.

Thanks!

13-Aquamarine
April 27, 2017

The uninstall string is the same for all machines, but it is unique to the version of the software installed. F000 will be different than M010.

Some will have two uninstall strings. For example the Platform Services has a weird name, and it has a QuietUninstallString and a UninstallString that will require user interaction.

4-27-2017 9-27-51 AM.jpg

unfortunately not every PTC product has a nice uninstall string. I typically have to use wmic for those.

Mathcad 15 I use this:

rem ** Uninstall any existing version of Mathcad 15

wmic product where (name like "%%Mathcad 15%%") call uninstall /nointeractive

Mathcad Prime I use this:

rem ** Uninstall any existing version of Mathcad Prime

wmic product where (name like "%%Mathcad Prime%%") call uninstall /nointeractive

Creoview I use this:

rem ** Kill running processes so the installer will not reboot the machine after the install.

tskill Acrobat

tskill AcroRd32

tskill pview

tskill productview

rem ** Remove all current versions of Creo View

wmic product where (name like "%%Creo View%%") call uninstall /nointeractive