That .vbs script will take care of it for you....
PLEASE NOTE THAT ALL OF THIS SHOULD BE ONE LINE >> ICSUNINSTALL = WshShell.Run("CMD /C RunDll32 C:\PROGRA~1\COMMON~1\INSTA
Main Topics
Browse All TopicsHey guys
Got a problem. I need to create a script that automatically uninstalls ICS Viewer 6.0. I need help on how to tackle this.
After some research, turns out PureEdge does not support quiet uninstall string via MSIEXEC (which is what I normally use - thru ConfigureSoft). So I though, ok I'll just create an exe using Winbatch and just kick off the uninstall and have it automatically click the "yes/no" buttons to allow it to uninstall by itself. But my problem is, how to kick off the uninstall command?
I tried..
1) RunDll32 C:\Program Files\Common Files\InstallShield\Engine
which (according to ConfigureSoft) is the uninstall string, but I tried it via command line and nothing happened.
2) msiexec /x{E0000600-0600-0600-0600
First a "Windows Installer" window popped up asking to continue. After the "yes" click, an error pops up saying that it's only valid for products that are currently installed, which doesnt make sense since the key is correct and it IS installed?!?!
What confuses me though is when I pull up Add/Remove Programs and scroll to ICS Viewer and click "Add/Remove" that way, it seems to uninstall fine. So my question is, is there a way to access this button via command line so I can kick off the uninstall? Is there a command line equivalent to this?
I know that appwiz.cpl is the command to run the Add/Remove Programs, but what is the command that actually runs when you click that Add/Remove button??! Is there a way to include parameters with it?
Or is there a better way to do this that I'm completely missing? Shouldn't msiexe /x work??!
Any help is appreciated, thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
That .vbs script will take care of it for you....
PLEASE NOTE THAT ALL OF THIS SHOULD BE ONE LINE >> ICSUNINSTALL = WshShell.Run("CMD /C RunDll32 C:\PROGRA~1\COMMON~1\INSTA
Thanks for the quick and helpful post! It was actually more info than I was expecting! (I sort of had an idea how to do the button trigger part)
Initially I ran your script, and it looked like it ran, but then I checked and it was still there. I found out that the script went thru the motions of uninstalling it but when it came to the actual uninstall part... it was like it faked it. =O
Then I realized, it was probably a permissions thing.. I wasn't running it under admin (doh!) and that seemed to be the fix =).
Now I just need to figure how to incorporate this into ConfigureSoft.
aleinss - thanks, I know where the uninstall key's located. I double checked just to make sure I had the right key. I think it's just that ICS Viewer doesn't play well with msiexec.. I've read that it's not really a standard so it's up to the vendors whether they want to use msiexec (and it's switches) for their install/uninstall.
Business Accounts
Answer for Membership
by: xuserx2000Posted on 2007-08-15 at 07:56:33ID: 19700178
Set WshShell = Wscript.CreateObject("Wscr ipt.Shell" ) L~1\engine \6\INTEL3~ 1\Ctor.dll ,LaunchSet up" & " c:\progra~1\Instal~1\{E000 0600-0600- 0600-0600- 0000000006 00}\Setup. exe" & " -l0x9" & " -uninst") INSTALL)
ICSUNINSTALL = WshShell.Run("CMD /C RunDll32 C:\PROGRA~1\COMMON~1\INSTA
WshShell.AppActivate(ICSUN
Wscript.sleep 3000
WshShell.SendKeys "{Y}"
Wscript.sleep 3000
WshShell.SendKeys "{ENTER}"