/build/static/layout/Breadcrumb_cap_w.png

Ignore errors during uninstall

Hi there,

Is there a command-line switch I could use to make msiexec ignore errors?

I have an old app to uninstall and shortcuts point to an old server location so the uninstall is failing.


~eDoc

0 Comments   [ + ] Show comments

Answers (5)

Posted by: nheim 17 years ago
10th Degree Black Belt
0
Hi Lane,
are you talking about the shortcut to the uninstall command?
Or is there an shortcut installed with this old, which gives an error when uninstalling?

I assume the first case. Use msiexec /x {Productcode} to uninstall. You find the productcode in the uninstall registry section:
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall'
Search for your app there.

Hope this helps.
Regards, Nick
Posted by: edocshare 17 years ago
Orange Belt
0
Nope, we're using "msiexec /x [guid]" but because the shortcuts installed previously were pointing to one of our servers that no longer exist, the uninstall is trying to reference the servers for whatever reason and this causes an error. The uninstall then aborts.

I want to be able to ignore the errors and complete the uninstall.


~Lane
Posted by: nheim 17 years ago
10th Degree Black Belt
0
Hi Lane,
do you have the old app still around? Could you place it on a new machine, to which you could point your machines then?
Have a look at the following Registry-key and search for your app in there.
HKEY_CLASSES_ROOT\Installer\Products
Each product lies in a subkey with a <Packed GUID>, in their you find a key 'SourceList', you should find the path to your old server there.
If you modify this path to one which is available, the unistall should work.

Another road would be, to isolate the sequences (most likely CustomActions) in the 'InstallExecuteSequence' of the questioned app. The MSI lies in '%Systemroot%\Installer.

Hope this gets you on the right track.
Regards, Nick
Posted by: edocshare 17 years ago
Orange Belt
0
Nope, that is not related. It's not having a problem finding the old package. The problem is a shortcut to run the application that is pointing to an old server share/location. For example:

To replicate the problem, you would capture or create an MST for a vendor app. In it you would create a shortcut to a PDF and that shortcut points to \\server\share to open the PDF. Now, the server goes away and you want to uninstall the app. It will error and abort the uninstall because it will try to reference the PDF on the server which no longer exists.


~Lane
Posted by: turbokitty 17 years ago
6th Degree Black Belt
0
There might be a way to do this that's much much easier, but off the top of my head you could patch the install first (MSP) to remove the shortcuts, then uninstall it.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ