cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not applicable

uninstall error

scenario:
1. Create an uninstall shortcut in the project assistant interface.
In project assistant-> application shortcuts-> more options.
you can find "create an uninstall shortcut". Use this to create the uninstall shortcut.

This shortcut is a command line [SystemFolder]msiexec.exe /x {product code}.

2.Install the product.

3. click the uninstall shortcut. It works. The program files and the shortcuts in the desktop are all removed.

4. But there's an entry in the Add/Remove software in the Control Panel
And I find there's a folder the C:\Program Files\InstallShield Installation Information. The folder's name is the product cdoe.

Obviously, the "msiexec.exe /x" command didn't remove these files and the entry.

5. Then I tried to click the entry in the Add/Remove software in the Control Panel. But it failed and report an error.

Why?

Why the the "msiexec.exe /x" command didn't remove these files and the entry?
Labels (1)
0 Kudos
(4) Replies
J_anitha
Level 8

Is your project Installscript MSI type?
If so, for uninstallation use the command which will be displayed for "UninstallString" under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\, after your product installation.

Or if you want to use msiexec itself, you will have to delete the following entry from registry, so that your product gets removed from Add\Remove list.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\InstallShield_

rgds,
anitha
0 Kudos
palanisamy
Level 7

Create a shortcut using Project Assistant-> Application Shortcut tab

In leftPane -> More Options -> Click "Create an Uninstallation Shortcut",
Hope it will work for u..
0 Kudos
Not applicable

palanisamy wrote:
Create a shortcut using Project Assistant-> Application Shortcut tab

In leftPane -> More Options -> Click "Create an Uninstallation Shortcut",
Hope it will work for u..


I used this shortcut.
I created a shortcut by the way you showed me.
But it does not work.
0 Kudos
Not applicable

Problem resolved.

1. I found in the registry
HKLM\SOFTWARE\WOW6432NODE\MICROSOFT\WINDOWS\CURRENTVERSION\UNINSTALL\{PRODUCT‘s GUID}
there's a key : uninstallstring

2.the key's value is :
"c:\program files\InstallShield Installation Information\{1234B59E-as4f-46A6-B858-E303D0FF1234}\setup.exe" -runfromtemp -l0x0804 -removeonly

3. Obviously this is the command line to uninstall this software.


4. I create a uninstall shortcut to excute this command.

the shortcut's target: [ProgramFilesFolder]InstallShield Installation Information\{1234B59E-5BB1-as4f-B858-E303D0FF1234}\setup.exe

arguments:-runfromtemp -l0x0804 -removeonly


It works
0 Kudos