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
- :
- Re: Creating a CA that fires after install or patch, not uninstall?
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
Jun 06, 2008
01:09 PM
Creating a CA that fires after install or patch, not uninstall?
Hello,
I've typically created InstallScript installers in the past for more control but want to keep things simple so I'm trying to stick with Basic MSI these days. I want to do something simple and that is launch my application (EXE) after the installation is complete AND also after a patch (not quick patch) is applied. I can create a VB.NET EXE that will read the registry to find the install location and locate the EXE and then launch it. Now that we can use managed code in CA's, I figured I can finally create a CA to do what I need.
Having little to no experience with CA's, can anyone provide a few pointers as to how to configure this CA to do as I suggested. I know how to configure the managed code part, but where in the sequence to put this and how to prevent this CA from running during an uninstall? I only want to launch the application after an install and after a patch update.
Thank you.
I've typically created InstallScript installers in the past for more control but want to keep things simple so I'm trying to stick with Basic MSI these days. I want to do something simple and that is launch my application (EXE) after the installation is complete AND also after a patch (not quick patch) is applied. I can create a VB.NET EXE that will read the registry to find the install location and locate the EXE and then launch it. Now that we can use managed code in CA's, I figured I can finally create a CA to do what I need.
Having little to no experience with CA's, can anyone provide a few pointers as to how to configure this CA to do as I suggested. I know how to configure the managed code part, but where in the sequence to put this and how to prevent this CA from running during an uninstall? I only want to launch the application after an install and after a patch update.
Thank you.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 06, 2008
01:42 PM
To run an action after installation/patching is complete, you'll want the action after both InstallFiles and PatchFiles in the Execute sequence, scheduled for deferred execution, in system context if it makes any system changes.
As for the condition, you can detect a first-time installation with condition Not Installed and detect a patch with condition PATCH; so some combination of those should be appropriate.
(As an aside, a system search or other method might help locate the executable with fewer moving parts, but that's another story.)
As for the condition, you can detect a first-time installation with condition Not Installed and detect a patch with condition PATCH; so some combination of those should be appropriate.
(As an aside, a system search or other method might help locate the executable with fewer moving parts, but that's another story.)