Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Now that I learned how to spell quiet, instead of quite. I've discovered two more issues with my uninstall script.
First, The command to uinstall CreoView Express, isn't working. It doesn't generate any errors, but it doesn't uninstall the software either.
After the script complete, I can open a command shell and type the command and it will uninstall. ???????
Re running the script doesn't uninstall it. But copy and paste from the script into an interactive shell does. What's with that?
Second, after uninstalling "Creo Help", the command to uninstall Simulate, generates the following errors:
"The program can't start because coretools_sh.dll is missing from your computer. Try reinstalling the program to fix this problem."
When you pick OK on that System Error box, you get another System Error box with the same error. When you pick on OK in that box you get this message:
"Please exit the already running installer or uninstaller first" "Already running..." When you pick on OK in that box the uninstall script will continue to the next command.
My script: Everything except the problem lines show in yellow works.
David,
Can you please describe your solution? I am just now running into this with a new install of Creo 2 M200.
Thank you,
steve
humm, It appears that the migration of this conversation from the mail exploder stopped importing when it got to my line of equals.
I'm going to post both messages here.
Now that I learned how to spell quiet, instead of quite. I’ve discovered two more issues with my uninstall script.
First, The command to uinstall CreoView Express, isn’t working. It doesn’t generate any errors, but it doesn’t uninstall the software either.
After the script complete, I can open a command shell and type the command and it will uninstall. ???????
Re running the script doesn’t uninstall it. But copy and paste from the script into an interactive shell does. What’s with that?
Second, after uninstalling “Creo Help”, the command to uninstall Simulate, generates the following errors:
“The program can’t start because coretools_sh.dll is missing from your computer. Try reinstalling the program to fix this problem.”
When you pick OK on that System Error box, you get another System Error box with the same error. When you pick on OK in that box you get this message:
“Please exit the already running installer or uninstaller first” “Already running…” When you pick on OK in that box the uninstall script will continue to the next command.
My script: Everything except the problem lines show in yellow works.
=====================================================
- rem ** Remove the Creo Agent
- wmic product where name="Creo Platform 2.09" call uninstall
- wmic product where name="Creo Platform 2.10" call uninstall
- wmic product where name="Creo Platform 2.11" call uninstall
- wmic product where name="Creo Platform 2.15" call uninstall
- wmic product where name="Creo Platform 2.19" call uninstall
- rem ** Remove the Creo Agent
- wmic product where name="Creo View 2.0" call uninstall
- rem ** Remove the Thumbviewer
- cd "C:\ptc\Creo 2.0\Common Files\m050\install\addon\"
- msiexec /uninstall "C:\ptc\Creo 2.0\Common Files\m050\install\addon\Thumbviewer_32_64.msi" /passive
- rem ** Remove CreoView Express
- cd "C:\ptc\Creo 2.0\Common Files\M050\install\addon\pvx32\pvexpress"
- 14. start /w msiexec.exe /x CreoView_Express_32.msi /qn
- rem ** Uninstall Creo. Uninstalling the last app referencing the common files folder removes it automatically
- cd "C:\ptc\Creo 2.0\Help\bin"
- "C:\ptc\Creo 2.0\Help\bin\uninstall.exe" -quiet
- cd "C:\ptc\Creo 2.0\Simulate\bin"
- "C:\ptc\Creo 2.0\Simulate\bin\uninstall.exe" -quiet
- cd "C:\ptc\Creo 2.0\Parametric\bin"
- "C:\ptc\Creo 2.0\Parametric\bin\uninstall.exe" -quiet
- rem ** Remove other Software installed with CreoView express
- wmic product where name="Arbortext IsoView 7.3" call uninstall
- wmic product where name="Microsoft Visual C++ 2010 x64 Redistributable - 10.0.30319" call uninstall
- wmic product where name="Microsoft Visual C++ 2010 x86 Redistributable - 10.0.30319" call uninstall
- wmic product where name="Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17" call uninstall
- wmic product where name="Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.17" call uninstall
Here is the second message where I provided the solution
I found the solution to both problems.
On the first problem:
================
Much thanks to Michael Cormack for supplying me the correct syntax for uninstalling CreoView Express. I’ll just say that the documentation in the install guide, is flat out wrong.
The guide says to do this:
cd "C:\ptc\Creo 2.0\Common Files\M050\install\addon\pvx32\pvexpress"
start /w msiexec.exe /x CreoView_Express_32.msi /qn
What works is similar syntax to what they suggest for the thumbviewer.
start /w msiexec /uninstall "C:\ptc\Creo 2.0\Common Files\M050\install\addon\pvx32\pvexpress\CreoView_Express_32.msi" /passive
There is no need to CD to the folder first if you use the full path.
On the second problem:
==================
After watching the tasks manager while uninstalling for the umpteenth time. I came to the conclusion that the uninstallers were not finishing before the script was trying to start the next uninstaller. I tried using the sleep command but it was just ignoring that. So after some Google searches, I decided to use ping. It’s suggested in the pages I looked at that it uses the least resources on the system. That should let the uninstaller complete faster.
The syntax is:
ping -n 30 127.0.0.1>null
I also decided that the install guide’s instructions to CD to the target directory before running the uninstall command was unnecessary. Testing proved this to be the case.
My script now looks like this and everything uninstalls fine. The wait times may be excessive. The longest wait is needed for uninstalling Parametric.
My Uninstall script:
==============
- 1. rem ** Remove the Creo Agent, for m010, m020, m030, m040, & m050
- 2. wmic product where name="Creo Platform 2.09" call uninstall
- 3. wmic product where name="Creo Platform 2.10" call uninstall
- 4. wmic product where name="Creo Platform 2.11" call uninstall
- 5. wmic product where name="Creo Platform 2.15" call uninstall
- 6. wmic product where name="Creo Platform 2.19" call uninstall
- 7. rem ** Remove Creo View
- 8. wmic product where name="Creo View 2.0" call uninstall
- 9. rem ** Waiting 30 seconds
- 10. ping -n 30 127.0.0.1>null
- 11. rem ** Remove CreoView Express
- 12. start /w msiexec /uninstall "C:\ptc\Creo 2.0\Common Files\M050\install\addon\pvx32\pvexpress\CreoView_Express_32.msi" /passive
- 13. rem ** Waiting 30 seconds
- 14. ping -n 30 127.0.0.1>null
- 15. rem ** Remove the Thumbviewer
- 16. msiexec /uninstall "C:\ptc\Creo 2.0\Common Files\m050\install\addon\Thumbviewer_32_64.msi" /passive
- 17. rem ** Waiting 30 seconds
- 18. ping -n 30 127.0.0.1>null
- 19. rem ** Uninstall Creo. Uninstalling the last app referencing the Common Files folder removes it automatically
- 20. "C:\ptc\Creo 2.0\Simulate\bin\uninstall.exe" -quiet
- 21. rem ** Waiting 90 seconds
- 22. ping -n 90 127.0.0.1>null
- 23. rem ** cd "C:\ptc\Creo 2.0\Parametric\bin"
- 24. "C:\ptc\Creo 2.0\Parametric\bin\uninstall.exe" -quiet
- 25. rem ** Waiting 90 seconds
- 26. ping -n 90 127.0.0.1>null
- 27. rem ** cd "C:\ptc\Creo 2.0\Help\bin"
- 28. "C:\ptc\Creo 2.0\Help\bin\uninstall.exe" -quiet
- 29. rem ** Waiting 90 seconds
- 30. ping -n 90 127.0.0.1>null
- 31. rem ** Remove other Software installed with CreoView express
- 32. wmic product where name="Arbortext IsoView 7.3" call uninstall
- 33. wmic product where name="Microsoft Visual C++ 2010 x64 Redistributable - 10.0.30319" call uninstall
- 34. wmic product where name="Microsoft Visual C++ 2010 x86 Redistributable - 10.0.30319" call uninstall
- 35. wmic product where name="Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17" call uninstall
- 36. wmic product where name="Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.17" call uninstall
Thank you.
Hello Steve,
it may be unusual with David being the original poster of the question, but if you verify the resolution working for you, please mark David's answer as correct.
It might help others as well.
Thanks,
Gunter