Uninstalling Wise setup.exe from ADD/remove programs
I have many packages that are exe's that I created with wise script. I have some custom reg settings and shortcuts I would like removed when a user removes the program from add/remove programs. Is there a way with a wise script wrapper to hide the vendors MSI dialog from add/remove programs and include a entry that points to my custom uninstall script? I have tried changing the uninstall string to point to my uninstall script but they always seem to ignore it and use the vendors MSI removal. Any suggestions?
0 Comments
[ + ] Show comments
Answers (7)
Please log in to answer
Posted by:
anonymous_9363
16 years ago
Do you mean that you have WiseScript EXEs serving as *wrappers* to the vendor MSIs? The first question which springs to mind is, why? Ignoring that, you state that you want to hide the entry from ARP (use the ARPSYSTEMCOMPONENT property) but that the uninstall entry should call a custom script. That would only apply for use with ARP: if the WiseScript is going to uninstall the wrapped MSI, then surely you don't need an uninstall string entry? Just have the script shell out to your uninstall script. Or have I misunderstood your question?
Posted by:
stealthkd
16 years ago
Posted by:
aogilmor
16 years ago
Posted by:
stealthkd
16 years ago
Posted by:
anonymous_9363
16 years ago
Posted by:
stealthkd
16 years ago
Ok, WiseScript Wrapper (setup.exe) kicks off MSI and does some shortcut moves and registry entry. If you run my setup.exe again it does a removal of the MSI, shortcuts, and has some registry entries. Setup.exe does not get an entry into ARP only the MSI does. If you use the MSI entry in ARP to remove it does not remove my shortcuts or add my registry entries. So I want to hide the MSI entry in ARP so users can't use it and I want to add an entry that runs my setup.exe so the app removes the way I need it too.
Reason: My company requires certain shortcuts,logs, and registry entries when a program is added or removed from a system. Normally transformable some MSI's will not allow Wise to open or create transforms for them (Citrix Client for example).
I figured out a soulution last night but I am not sure it's the best one. I would like to be able to do all this in WiseScript if possible.
I add a key to uninstall string GUID SystemComponent =1. That hides the MSI in ARP.
I create a MSI in Wise that does nothing but give me an entry in ARP with the Application name and information, I set the remove to kick off embeded VB Script that kicks off the uninstall of my Setup.exe. I add this MSI to the original Setup.exe WiseScript to be run silently.
MSI is only 340kb in size so it doesnt bother me to much and now I have a template to do more with. Is there an easier way, could this have been done in Script Editor on my original setup.exe without creating a special MSI for the remove?
Reason: My company requires certain shortcuts,logs, and registry entries when a program is added or removed from a system. Normally transformable some MSI's will not allow Wise to open or create transforms for them (Citrix Client for example).
I figured out a soulution last night but I am not sure it's the best one. I would like to be able to do all this in WiseScript if possible.
I add a key to uninstall string GUID SystemComponent =1. That hides the MSI in ARP.
I create a MSI in Wise that does nothing but give me an entry in ARP with the Application name and information, I set the remove to kick off embeded VB Script that kicks off the uninstall of my Setup.exe. I add this MSI to the original Setup.exe WiseScript to be run silently.
MSI is only 340kb in size so it doesnt bother me to much and now I have a template to do more with. Is there an easier way, could this have been done in Script Editor on my original setup.exe without creating a special MSI for the remove?
Posted by:
anonymous_9363
16 years ago
The use of Setup stubs is fraught, unless you have stringent documentation and/or source control, in that subsequent packagers come along to make changes and - in general, from my experience, - without those things, they will tend to simply start again from scratch.
Why not:
- set your MSI to be invisible to ARP
- include the registry settings and shortcust therein but mark them to not be uninstalled
Why not:
- set your MSI to be invisible to ARP
- include the registry settings and shortcust therein but mark them to not be uninstalled
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.