This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Custom Action Sequencing Scenario/Question...
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 17, 2011
02:18 PM
Custom Action Sequencing Scenario/Question...
Hi again,
Here's my situation... We have a little installed widget that is run during install to do a few things (/i parameter passed) and during uninstall to clean up (/u passed). During install, I have my action sequenced after PublishProduct and I use a an EXE Installed with the product action conditioned NOT REMOVE="ALL".
What I was doing for the uninstall was to use the same type of custom action (installed file) only sequenced after UnpublishFeatures (before RemoveFiles) and conditioned with REMOVE="ALL".
Now, when I compile I get a warning that the MyUninstallAction action must be sequenced after the InstallFiles action, which of course won't work in this case. On uninstall, the RemoveFiles action would have already run and there would be no file to launch.
We've done it this way with our previous Wise installations, but apparently this should be handled in some other way with InstallShield. Should I be using a path referencing a directory action instead?
Any help is greatly appreciated.
Here's my situation... We have a little installed widget that is run during install to do a few things (/i parameter passed) and during uninstall to clean up (/u passed). During install, I have my action sequenced after PublishProduct and I use a an EXE Installed with the product action conditioned NOT REMOVE="ALL".
What I was doing for the uninstall was to use the same type of custom action (installed file) only sequenced after UnpublishFeatures (before RemoveFiles) and conditioned with REMOVE="ALL".
Now, when I compile I get a warning that the MyUninstallAction action must be sequenced after the InstallFiles action, which of course won't work in this case. On uninstall, the RemoveFiles action would have already run and there would be no file to launch.
We've done it this way with our previous Wise installations, but apparently this should be handled in some other way with InstallShield. Should I be using a path referencing a directory action instead?
Any help is greatly appreciated.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 17, 2011
03:44 PM
If it was me, I'd drop the file in SUPPORTFILES and call it from there. InstallShield will handle the extraction and cleanup for you and you won't have to worry about race conditions on install/uninstall or your user running the exe out of process and messing your system up.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 17, 2011
04:30 PM
The problem with that is these files need to be installed because we have a manual registration mechanism if stuff goes crazy for some reason. The files in question are part of that process so if I don't install them, that's toast.
Am I on the right track with running from installed files during the install and running from path on removal?
I also posted something earlier about registering 64 bit components that are part of our 32 bit install. I was going to create a widget that would call RegAsm in Framework64 for these. This widget would not have to be installed. Currently I'm calling them from the Binary Table on both install and uninstall (to unregister). Is this the same as dumping stuff in SUPPORTFILES?
Am I on the right track with running from installed files during the install and running from path on removal?
I also posted something earlier about registering 64 bit components that are part of our 32 bit install. I was going to create a widget that would call RegAsm in Framework64 for these. This widget would not have to be installed. Currently I'm calling them from the Binary Table on both install and uninstall (to unregister). Is this the same as dumping stuff in SUPPORTFILES?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 23, 2011
04:11 PM
I have the same issue except the exe I want to run is installed by a chained MSI installer. I can't figure out how to run the .exe during uninstall before the file itself gets removed. Again, since the file is installed with the chained MSI, I don't have the option to put it in the Support Files. Any ideas?