SetupBuilder icon indicating copy to clipboard operation
SetupBuilder copied to clipboard

runAfter works only for installations with UI (at least for msi)

Open coderartem opened this issue 6 years ago • 3 comments

runAfter works only for installations with UI because that action is hooked to finish button

Can we have it work for silent installations also?

coderartem avatar Sep 13 '18 15:09 coderartem

Which platform are you referring to or do you mean in general?

gamma avatar Sep 14 '18 04:09 gamma

I generated msi and found this inconvenience. Not sure if it's a problem for other types of installer

coderartem avatar Sep 16 '18 21:09 coderartem

UI Publish Control="Finish" Dialog="ExitDialog" Event="DoAction" Value="runAfter">NOT Installed OR REINSTALL OR UPGRADINGPRODUCTCODE< /Publish /UI

That's how runAfter is being invoked currently, it's just listen for finish button to be pressed. So if there is no UI and dialogs it's never going to be executed. I think you can trigger it from InstallExecuteSequence instead. Something like this:

InstallExecuteSequence Custom Action='runAfter' After ='InstallFinalize'>NOT Installed OR REINSTALL OR UPGRADINGPRODUCTCODE</Custom /InstallExecuteSequence

coderartem avatar Sep 16 '18 21:09 coderartem