File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 39
39
NOT VersionNT64
40
40
</SetProperty >
41
41
42
+ <SetProperty Id =" POWERSHELLEXE" Value =" [WindowsFolder]System32\WindowsPowerShell\v1.0\powershell.exe" Before =" AppSearch" />
43
+
42
44
<Property Id =" POWERSHELLGETMODULESINSTALLED" >
43
45
<DirectorySearch Id =" PROGRAMFILESCONTAINER" Path =" [BaseModulesFolder]" >
44
46
<DirectorySearch Id = " PROFILEMODULE" Path =" AzureRM.Profile" />
114
116
<CustomAction Id =" UpdatePSShortcut" BinaryKey =" CustomActions" DllEntry =" UpdatePSShortcut" Execute =" deferred" Impersonate =" no" />
115
117
<CustomAction Id =" SetCustomActionDataValue" Return =" check" Property =" UpdatePSShortcut"
116
118
Value =" ShortcutPath=[AzureSdkMenu]Microsoft Azure PowerShell.lnk;DefaultShortcutPath=[ProgramMenuFolder]System Tools\Windows PowerShell.lnk" />
119
+ <CustomAction Id =" SetExecutionPolicy" Property =" POWERSHELLEXE" ExeCommand =" -NoLogo -NoProfile -Command " Set-ExecutionPolicy RemoteSigned -Scope LocalMachine -Force" " Execute =" deferred" Impersonate =" no" Return =" check" />
117
120
118
121
<InstallExecuteSequence >
119
122
<Custom Action =" SetCustomActionDataValue" After =" CreateShortcuts" >NOT Installed</Custom >
120
123
<Custom Action =" UpdatePSShortcut" After =" SetCustomActionDataValue" >NOT Installed</Custom >
124
+ <Custom Action =" SetExecutionPolicy" After =" UpdatePSShortcut" >NOT Installed</Custom >
121
125
</InstallExecuteSequence >
122
126
123
127
<WixVariable Id =" WixUILicenseRtf" Value =" $(var.ProjectDir)\media\License.rtf" />
You can’t perform that action at this time.
0 commit comments