From 99a4513f5a5b326320d1cd2fb6d3fd4c88221014 Mon Sep 17 00:00:00 2001 From: LoganDark Date: Tue, 11 May 2021 19:28:26 +0200 Subject: [PATCH] Fix batch launcher failing to find the powershell module when run as admin --- InstallWSL-Launcher.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InstallWSL-Launcher.bat b/InstallWSL-Launcher.bat index 6694e9b..a539eda 100644 --- a/InstallWSL-Launcher.bat +++ b/InstallWSL-Launcher.bat @@ -1 +1 @@ -powershell.exe -ExecutionPolicy ByPass "Import-Module .\InstallWSL.psm1; Install-WSLInteractive; pause" \ No newline at end of file +powershell.exe -ExecutionPolicy ByPass "Import-Module $~dp0InstallWSL.psm1; Install-WSLInteractive; pause" \ No newline at end of file