fix: windows nsis installer powershell executions run in -noprofile mode (#4231)
This commit is contained in:
@@ -16,7 +16,7 @@ SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS
|
|||||||
nsExec::ExecToLog '\\\"$INSTDIR\\\\scripts\\\\migrate-config.bat\\\"'
|
nsExec::ExecToLog '\\\"$INSTDIR\\\\scripts\\\\migrate-config.bat\\\"'
|
||||||
nsExec::ExecToLog '\\\"$INSTDIR\\\\scripts\\\\add-firewall-rule.bat\\\"'
|
nsExec::ExecToLog '\\\"$INSTDIR\\\\scripts\\\\add-firewall-rule.bat\\\"'
|
||||||
nsExec::ExecToLog \
|
nsExec::ExecToLog \
|
||||||
'powershell.exe -ExecutionPolicy Bypass -File \\\"$INSTDIR\\\\scripts\\\\install-gamepad.ps1\\\"'
|
'powershell.exe -NoProfile -ExecutionPolicy Bypass -File \\\"$INSTDIR\\\\scripts\\\\install-gamepad.ps1\\\"'
|
||||||
nsExec::ExecToLog '\\\"$INSTDIR\\\\scripts\\\\install-service.bat\\\"'
|
nsExec::ExecToLog '\\\"$INSTDIR\\\\scripts\\\\install-service.bat\\\"'
|
||||||
nsExec::ExecToLog '\\\"$INSTDIR\\\\scripts\\\\autostart-service.bat\\\"'
|
nsExec::ExecToLog '\\\"$INSTDIR\\\\scripts\\\\autostart-service.bat\\\"'
|
||||||
NoController:
|
NoController:
|
||||||
@@ -33,7 +33,8 @@ set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS
|
|||||||
'Do you want to remove Virtual Gamepad?' \
|
'Do you want to remove Virtual Gamepad?' \
|
||||||
/SD IDNO IDNO NoGamepad
|
/SD IDNO IDNO NoGamepad
|
||||||
nsExec::ExecToLog \
|
nsExec::ExecToLog \
|
||||||
'powershell.exe -ExecutionPolicy Bypass -File \\\"$INSTDIR\\\\scripts\\\\uninstall-gamepad.ps1\\\"'; \
|
'powershell.exe -NoProfile -ExecutionPolicy Bypass -File \
|
||||||
|
\\\"$INSTDIR\\\\scripts\\\\uninstall-gamepad.ps1\\\"'; \
|
||||||
skipped if no
|
skipped if no
|
||||||
NoGamepad:
|
NoGamepad:
|
||||||
MessageBox MB_YESNO|MB_ICONQUESTION \
|
MessageBox MB_YESNO|MB_ICONQUESTION \
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ if exist "%OLD_DIR%\covers\" (
|
|||||||
move "%OLD_DIR%\covers" "%NEW_DIR%\"
|
move "%OLD_DIR%\covers" "%NEW_DIR%\"
|
||||||
|
|
||||||
rem Fix apps.json image path values that point at the old covers directory
|
rem Fix apps.json image path values that point at the old covers directory
|
||||||
powershell -c "(Get-Content '%NEW_DIR%\apps.json').replace('.\/covers\/', '.\/config\/covers\/') | Set-Content '%NEW_DIR%\apps.json'"
|
powershell -NoProfile -c "(Get-Content '%NEW_DIR%\apps.json').replace('.\/covers\/', '.\/config\/covers\/') | Set-Content '%NEW_DIR%\apps.json'"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user