custom action before service start #7487
Replies: 1 comment
-
I would suggest you want your custom action that edits the For suppressing on uninstalls, you should add a condition. |
Beta Was this translation helpful? Give feedback.
-
I would suggest you want your custom action that edits the For suppressing on uninstalls, you should add a condition. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to install a service but need that app.config file to be editted before the service starts
so the order of actions should be
copy files
edit app.config
start up the service
I have the customactions written and the config updates, but only after the service has started, or the files are copied (ie code runs but does nothing)
I have googled and that suggests using After="InstallFiles" but the fires before the files are copied. I have also used InstallFinalize but that fires after the service has started
I'd be keen to have a link to the order of actions, but also an idea of how to teak the wxs file to meet my requirements.
I have also found that the customtactions fire when the uninstall process runs. This is completely unnecessary, so it would be good to have an idea of how to stop customactions firing during the uninstall process.
So my code stripped for simplicity
Beta Was this translation helpful? Give feedback.
All reactions