I am following the steps mentioned here https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started to setup Azure Service Fabric Cluster on my laptop. The very first step Install Service Fabric Runtime for Windows
is failing with below error. I ma running power shell in admin mode and ran the command Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser
Each time I try to install it creates a folder C:\Program Files\Microsoft Service Fabric* and fails. Have restarted my system in-between many times, uninstalled Visual Studio 2022 but that didn't help. Without this running I can't proceed for the seconds step (Install Service Fabric SDK). Also tried deleting the entries from register HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Service Fabric and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Service Fabric but that didn't help much.
Service Fabric version: MicrosoftServiceFabric.9.1.1436.9590
Service Fabric SDK version: MicrosoftServiceFabricSDK.6.1.1436
17-02-2023 12:51:46,Info,Installing Service Fabric Runtime. Logs written to C:\WINDOWS\TEMP\InstallFabricRuntime_638122549060551486.log
17-02-2023 12:51:46,Info,Running extract in parallel.
17-02-2023 12:51:46,Info,Unpackaging autoextractor...
17-02-2023 12:51:46,Info,17-02-2023 18:21:46 Running Process: powershell.exe -NoProfile -Command Get-ExecutionPolicy -Scope CurrentUser with timeout 00:01:00
17-02-2023 12:51:46,Error,Exception type: System.ComponentModel.Win32Exception, Message: The system cannot find the file specified, Stack: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at Microsoft.ServiceFabric.InstallFabricRuntime.Utility.ExecuteCommand(String command, String arguments, TimeSpan timeout)
at Microsoft.ServiceFabric.InstallFabricRuntime.Program.TrySetPowershellExecutionPolicy()
at Microsoft.ServiceFabric.InstallFabricRuntime.Program.Main(String[] args)
Press enter to exit. Process will automatically close after 30 seconds.
17-02-2023 12:51:46,Info,Creating temporary runtime directory C:\Program Files\Microsoft Service Fabric.hsxgayfk.slk.
17-02-2023 12:51:46,Info,Extracting runtime cab to C:\Program Files\Microsoft Service Fabric.hsxgayfk.slk...
17-02-2023 12:51:46,Info,17-02-2023 18:21:46 Running Process: C:\WINDOWS\TEMP\MicrosoftServiceFabricAutoextractor.exe /L "C:\Program Files\Microsoft Service Fabric.hsxgayfk.slk" /E /Y with timeout 01:00:00
17-02-2023 12:51:51,Info,Successfully extracted cab file to C:\Program Files\Microsoft Service Fabric.hsxgayfk.slk