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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
what happens if you take the custom action out.do the files get removed silently
Answered 08/19/2010 by: cygan
Fifth Degree Brown Belt

Please log in to comment
0
Or failing that add a condition so the CA doesnt run.
Answered 08/19/2010 by: reds4eva
Second Degree Blue Belt

Please log in to comment
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.
Answered 08/19/2010 by: VBScab
Red Belt

Please log in to comment
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
Answered 08/20/2010 by: gtalboys
Purple Belt

Please log in to comment
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
Answered 08/20/2010 by: cygan
Fifth Degree Brown Belt

Please log in to comment
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.
Answered 08/20/2010 by: AngelD
Red Belt

Please log in to comment
0
The suggestion to update the .mst and overwrite the cached copy seems to do the trick.

Thanks for your help.

G
Answered 08/25/2010 by: gtalboys
Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity