Browse Source

Do not schedule reboot when installing MSI in silent mode unless 'SCHEDULE_REBOOT' is set.

Signed-off-by: allexzander <blackslayer4@gmail.com>
allexzander 4 years ago
parent
commit
7d2ab1f3fe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      admin/win/msi/Nextcloud.wxs

+ 2 - 2
admin/win/msi/Nextcloud.wxs

@@ -77,8 +77,8 @@
         <!-- Uninstall: Remove sync folders from Explorer's Navigation Pane, only effective for the current user (home users) -->
         <Custom Action="RemoveNavigationPaneEntries" After="RemoveFiles">(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom>
 
-        <!-- Schedule Reboot for the Shell Extensions -->
-        <ScheduleReboot After="InstallFinalize">NOT (DO_NOT_SCHEDULE_REBOOT=1)</ScheduleReboot>
+        <!-- Schedule Reboot for the Shell Extensions (in silent installation mode only, or if SCHEDULE_REBOOT argument is set-->
+        <ScheduleReboot After="InstallFinalize">(SCHEDULE_REBOOT=1) OR NOT (UILevel=2)</ScheduleReboot>
     </InstallExecuteSequence>
 
     <!-- "Add or Remove" Programs Entries -->