'wix installer reboot during installation
My installer have to enable windows features and it can happen that it has to close the service via the power shell command that require reboot. I am tring in this way: but it only show dialog with information to break instalation and close installer.
I am tring ScheduleReboot and ForceReboot but nothing causes a reboot and recovery.
<InstallExecuteSequence>
<ScheduleReboot After="InstallInitialize"/>
</InstallExecuteSequence>
I read that during the reboot should create some registry that allows you to return to the installation and continue it. but I don't know maybe the firewall is blocking me.
Solution 1:[1]
Can you take a look at this related question: Resume installing after restart in WiX.
Hope this help.
Solution 2:[2]
This problem can have several causes:
- If Visual Studio 2022 is lower than 17.0.0 Preview 3.1 it is stated on the Visual Studio IDE official community page that the latest released version should be installed to fix this issue.
- This issue can occur if ASP.NET Intellisense is not installed in Visual Studio 2022.
- This issue may occur because a third-party plugin such as CSS3 Intellisense Schema that provides CSS3 support is not installed on the Marketplace.
NOT: Since Visual Studio 2022 is still in preview version, there is no plugin that is compatible with Visual Studio 2022 version, can solve this problem, and provides CSS3 support, in my query on Marketplace.
References
Solution 3:[3]
If you add Web Essentials your problem will hopefully be solved
https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebEssentials2019
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ShinaBR2 |
| Solution 2 | |
| Solution 3 | Prem Signh |
