/build/static/layout/Breadcrumb_cap_w.png

Answering a CA prompt when uninstalling an app

Hi

Some time ago I created a transform for an msi installation. Now I need to uninstall the application.

When I uninstall using the command line msiexec /x msi_name TRANSFORMS=mst_name /qb! I am prompted by a question asking if I wish to remove all .ini files. I have had a look in the package and I see there is a custom action set on uninstall which is doing this. I need to answer yes to the question but I also want the uninstall to be silent so I can uninstall via SMS. Is there a way I can answer the question via the command line or am I going to have to uninstall via VB Script or is there another way.

Thanks

G

0 Comments   [ + ] Show comments

Answers (7)

Posted by: cygan 13 years ago
Fifth Degree Brown Belt
0
what happens if you take the custom action out.do the files get removed silently
Posted by: reds4eva 13 years ago
Second Degree Blue Belt
0
Or failing that add a condition so the CA doesnt run.
Posted by: anonymous_9363 13 years ago
Red Belt
0
Go with 'reds' solution but, since you want to answer in the affirmative, add the INIs to the RemoveFile table with each entry's attribute set to execute on uninstall.
Posted by: gtalboys 13 years ago
Purple Belt
0
Thanks guys

I should have explained that the app is already out in the wild so changing the package now isn't really an option is it ? Had I done it properly when packaging the application I would have removed the custom action. Some how it got overlooked.

So what are my options for uninstalling the application now that it has already been deployed ?

Thanks
Posted by: cygan 13 years ago
Fifth Degree Brown Belt
0
if you want to remove it cleanly then you will need to create an upgrade package

update your msi with new changes ie custom action malakee then use the upgrade table to remove the previous package
Posted by: AngelD 13 years ago
Red Belt
0
You have two (three) choices
1) If the custom action is in the MSI and not in the transform
a) you could reinstall the package with an updated MSI where you have added a condition to the custom action not to run on uninstall (REMOVE~="ALL"). Then perform the uninstall. Make sure to add the v option in the REINSTALLMODE property so the msi will be re-cached.

b) use a script (ex. vbscript) to modify the cached MSI to add the condition, then uninstall.

2) Otherwise update the transform and overwrite the cached transform before performing the uninstall.
Posted by: gtalboys 13 years ago
Purple Belt
0
The suggestion to update the .mst and overwrite the cached copy seems to do the trick.

Thanks for your help.

G
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