magazinesvur.blogg.se

Advanced installer custom action session properties
Advanced installer custom action session properties






advanced installer custom action session properties

This explains why the setup worked fine as long as using the default path and also why it worked for all the install custom steps even when using a custom path but not for uninstalling anymore. It overwrote the INSTALLDIR property when uninstalling back to the hard coded default path. Since session.Property("INSTALLDIR") should actually work and so I did not make a mistake at that point, I could figure out the root cause, which is setting the IsInstallDir property to true by using the InstallDir class instead of the Dir class. Sadly the custom actions require elevated permissions so I guess I have to stick to the ElevatedManagedAction approach although I would be happy to use the Event approach. I am sorry for not being more careful with the pasted code. New ElevatedManagedAction(CustomActions.UninstallService, Return.check, When.After, Step.PreviousAction, Condition.Installed) New ElevatedManagedAction(CustomActions.StopService, Return.check, When.Before, Step.RemoveFiles, Condition.Installed), New ElevatedManagedAction(CustomActions.StartService, Return.check, When.After, Step.PreviousAction, Condition.NOT_Installed),

advanced installer custom action session properties

New ElevatedManagedAction(CustomActions.InstallService, Return.check, When.After, Step.PreviousAction, Condition.NOT_Installed),








Advanced installer custom action session properties