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
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)
Please log in to answer
Posted by:
cygan
14 years ago
Posted by:
anonymous_9363
14 years ago
Posted by:
gtalboys
14 years ago
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
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
14 years ago
Posted by:
AngelD
14 years ago
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.
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
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.