Revert "Removed Set-ExecutionPolicy RemoteSigned from Install-ServiceFabricSDK.ps1"

This reverts commit 70c2ad2317.
This commit is contained in:
Marco Mansi
2020-03-27 10:57:13 +01:00
parent 70c2ad2317
commit af3ba77937
3 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -238,7 +238,8 @@
"type": "powershell", "type": "powershell",
"scripts":[ "scripts":[
"{{ template_dir }}/scripts/Installers/Install-ServiceFabricSDK.ps1" "{{ template_dir }}/scripts/Installers/Install-ServiceFabricSDK.ps1"
] ],
"execution_policy": "remotesigned"
}, },
{ {
"type": "windows-restart", "type": "windows-restart",
+2 -1
View File
@@ -219,7 +219,8 @@
"type": "powershell", "type": "powershell",
"scripts":[ "scripts":[
"{{ template_dir }}/scripts/Installers/Install-ServiceFabricSDK.ps1" "{{ template_dir }}/scripts/Installers/Install-ServiceFabricSDK.ps1"
] ],
"execution_policy": "remotesigned"
}, },
{ {
"type": "windows-restart", "type": "windows-restart",
@@ -8,4 +8,6 @@
$temp_install_dir = 'C:\Windows\Installer' $temp_install_dir = 'C:\Windows\Installer'
New-Item -Path $temp_install_dir -ItemType Directory -Force New-Item -Path $temp_install_dir -ItemType Directory -Force
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
WebpiCmd.exe /Install /Products:MicrosoftAzure-ServiceFabric-CoreSDK /AcceptEula /XML:https://webpifeed.blob.core.windows.net/webpifeed/5.1/WebProductList.xml WebpiCmd.exe /Install /Products:MicrosoftAzure-ServiceFabric-CoreSDK /AcceptEula /XML:https://webpifeed.blob.core.windows.net/webpifeed/5.1/WebProductList.xml