Wix - Create a master version that requires a reboot (returns 3010)

I am interested in creating a mock wix installer that can be used to simulate an installation that returns an error code of 3010. Is there a way to get a wix installation to easily return a specific error code. Would just return 3010 from user work? or will it just be a bad user action?

Any suggestions are welcome! thanks Ben

+4
source share
2 answers

Despite searching in SO before posting, I subsequently found this answer.

Can I request a reboot after installation using WiX?

Line:

<InstallExecuteSequence> <ScheduleReboot After="InstallFinalize"/> </InstallExecuteSequence> 

does the trick and returns 3010!

+3
source

How did you confirm that MSI returns 3010? I tried this and MSI just reboots at the end. I was expecting MSI to simply return 3010, and it should be in the environment to decide whether to restart now or later.

0
source

Source: https://habr.com/ru/post/1387561/


All Articles