diff --git a/src/backend/launcher.ts b/src/backend/launcher.ts index 032d15ee71..cdd8c18c8e 100644 --- a/src/backend/launcher.ts +++ b/src/backend/launcher.ts @@ -1341,6 +1341,7 @@ async function callRunner( .map((part) => `"\`"${part}\`""`) .join(',') commandParts = [ + '-NoProfile', 'Start-Process', `"\`"${fullRunnerPath}\`""`, '-Wait', diff --git a/src/backend/storeManagers/gog/games.ts b/src/backend/storeManagers/gog/games.ts index f54906cc26..573b956da9 100644 --- a/src/backend/storeManagers/gog/games.ts +++ b/src/backend/storeManagers/gog/games.ts @@ -925,6 +925,7 @@ export async function uninstall({ } } else { const adminCommand = [ + '-NoProfile', 'Start-Process', '-FilePath', uninstallerPath, @@ -1031,6 +1032,7 @@ export async function update( const uninstallExeFile = uninstallerFile.replace('ini', 'exe') if (isWindows) { const adminCommand = [ + '-NoProfile', 'Start-Process', '-FilePath', uninstallExeFile, diff --git a/src/backend/storeManagers/gog/setup.ts b/src/backend/storeManagers/gog/setup.ts index 51cac97907..837daf938d 100644 --- a/src/backend/storeManagers/gog/setup.ts +++ b/src/backend/storeManagers/gog/setup.ts @@ -35,6 +35,7 @@ async function runSetupCommand(wineArgs: WineCommandArgs) { return spawnAsync( 'powershell', [ + '-NoProfile', 'Start-Process', '-FilePath', exe, diff --git a/src/backend/storeManagers/nile/setup.ts b/src/backend/storeManagers/nile/setup.ts index c5d231aeec..a00790c3c9 100644 --- a/src/backend/storeManagers/nile/setup.ts +++ b/src/backend/storeManagers/nile/setup.ts @@ -93,7 +93,12 @@ export default async function setup( const exeArguments = action.Args ?? [] if (isWindows) { - const command = ['Start-Process', '-FilePath', action.Command] + const command = [ + '-NoProfile', + 'Start-Process', + '-FilePath', + action.Command + ] if (exeArguments.length) { command.push('-ArgumentList', ...exeArguments) }