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
- :
- InstallScript MSI - Minor Upgrade - stop/start service?
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
‎Oct 06, 2008
05:10 PM
InstallScript MSI - Minor Upgrade - stop/start service?
In an InstallScript MSI project what functions can be overridden to customize a minor upgrade behavior? OnPatchUIBefore/After don't seem to be getting called, or OnMaintUIBefore/After.
In a pure InstallScript project there's OnUpdateUIBefore/After but I can't seem to find something similar in this InstallScript MSI project.
The upgrade is replacing a bunch of config files ok but its not replacing an .exe since the service is still running and has the file locked.
Thanks!
In a pure InstallScript project there's OnUpdateUIBefore/After but I can't seem to find something similar in this InstallScript MSI project.
The upgrade is replacing a bunch of config files ok but its not replacing an .exe since the service is still running and has the file locked.
Thanks!
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 06, 2008
07:44 PM
Are you using the service control / service install tables? If so, and if you set the right flags ( install: stop, start, delete, create and uninstall: stop, delete ) then the upgrade should take care of the service because the component is being (re)installed.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 07, 2008
12:11 PM
InstallScript MSI projects run the OnResumeUIBefore/After events on minor upgrades. OnPatchUIBefore/After are run during a patch installation. The OnUpdateUIBefore/After events are not available in InstallScript MSI projects.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 08, 2008
11:40 AM
Ahhhh, I didn't notice I was getting a "Val0010" warning. The .exe keyfile that needed updated was still set to the same version as the old .exe, even though it had changed. After setting proper file version numbers on both my little test upgrade works fine now with one small exception.
Even though it replaces the .exe and stops/starts the service just fine, it's still prompting for a reboot for some odd reason, so I just commented out the "if ( BATCH_INSTALL ) then SdFinishReboot" lines and only left SdFinish in OnResumeUIAfter for now.
Even though it replaces the .exe and stops/starts the service just fine, it's still prompting for a reboot for some odd reason, so I just commented out the "if ( BATCH_INSTALL ) then SdFinishReboot" lines and only left SdFinish in OnResumeUIAfter for now.