Reputation: 1758
I have an installer written in Wix which sometimes prompts the user to reboot after repair. How can this occur and how to remove this behavior?
Upvotes: 1
Views: 1963
Reputation: 6958
Add this property somewhere relevant in your WXS file, and make sure nothing is overriding the value to something else. This will cause the reboot prompt to not occur and not have the reboot occur even if it was detected as necessary when running silently, as silent reboot prompts will automatically trigger the reboot sequence when you don't set this property's value to "ReallySuppress"
.
<Property Id="REBOOT" Value="ReallySuppress" />
You can read up on it here if you like: https://msdn.microsoft.com/en-us/library/windows/desktop/aa371101
Upvotes: 1
Reputation: 1496
The most common reason for a reboot after repairs is a file was accessed by the installer that the application still had a lock on. This is usually identifiable in the repair logs (sometimes it takes a bit of looking to find the file the installer had trouble with). If you are unable to find the information you need in your logs, post them here and we will take a look at them with you.
Upvotes: 2
Reputation: 55581
Two techniques:
1) Identify the cause of the reboot and avoid it. ( Examples: stop service, kill process )
2) Suppress reboot using the REBOOT property. Note repair may not be effective until after the reboot.
1 is usually the best way to go.
Upvotes: 3