Skip to content

Commit a8408b7

Browse files
committed
Adding reboot and updating executionpolicy script
1 parent 83bae43 commit a8408b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup/azurecmd.wxs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,13 @@
123123
<CustomAction Id="UpdatePSShortcut" BinaryKey="CustomActions" DllEntry="UpdatePSShortcut" Execute ="deferred" Impersonate="no"/>
124124
<CustomAction Id="SetCustomActionDataValue" Return="check" Property="UpdatePSShortcut"
125125
Value="ShortcutPath=[AzureSdkMenu]Microsoft Azure PowerShell.lnk;DefaultShortcutPath=[ProgramMenuFolder]System Tools\Windows PowerShell.lnk" />
126-
<CustomAction Id="SetExecutionPolicy" Property="POWERSHELLEXE" ExeCommand="-NoLogo -NoProfile -ExecutionPolicy Bypass -Command &quot;&quot;[PowerShellFolder]SetExecutionPolicy.ps1&quot;&quot;" Execute="deferred" Impersonate="no" Return="check"/>
126+
<CustomAction Id="SetExecutionPolicy" Property="POWERSHELLEXE" ExeCommand="-NoLogo -NoProfile -ExecutionPolicy Bypass -Command &quot;. \&quot;[PowerShellFolder]SetExecutionPolicy.ps1\&quot;&quot;" Execute="deferred" Impersonate="no" Return="check"/>
127127

128128
<InstallExecuteSequence>
129129
<Custom Action="SetCustomActionDataValue" After="CreateShortcuts">NOT Installed</Custom>
130130
<Custom Action="UpdatePSShortcut" After="SetCustomActionDataValue">NOT Installed</Custom>
131131
<Custom Action="SetExecutionPolicy" After="UpdatePSShortcut">NOT Installed</Custom>
132+
<ScheduleReboot After="InstallFinalize" />
132133
</InstallExecuteSequence>
133134

134135
<WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)\media\License.rtf" />

0 commit comments

Comments
 (0)