Install profiles to %PROGRAMFILES% and copy afterward, if necessary, using batch scripts. This eliminates all *essential* use of %LOCALAPPDATA% by NSIS. One place still uses it technically, but it can recover from failure there.

This commit is contained in:
idk
2021-04-04 01:04:57 -04:00
parent 98d1a80347
commit 55a7be91c6

View File

@@ -267,6 +267,8 @@ Section Install
FileWrite $0 ' echo "profile is configured"'
FileWrite $0 ') else ('
FileWrite $0 ' echo "configuring profile"'
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 ' xcopy /s "$INSTDIR\firefox.profile.config" "%LOCALAPPDATA%\${APPNAME}\firefox.profile.config"'
FileWrite $0 ')'
FileWriteByte $0 "13"
@@ -294,6 +296,8 @@ Section Install
FileWrite $0 ' echo "profile is configured"'
FileWrite $0 ') else ('
FileWrite $0 ' echo "configuring profile"'
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 ' xcopy /s "$INSTDIR\firefox.profile.config" "%LOCALAPPDATA%\${APPNAME}\firefox.profile.config"'
FileWrite $0 ')'
FileWriteByte $0 "13"
@@ -325,6 +329,8 @@ Section Install
FileWrite $0 ' echo "profile is configured"'
FileWrite $0 ') else ('
FileWrite $0 ' echo "configuring profile"'
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 ' xcopy /s "$INSTDIR\firefox.profile.config.i2p" "%LOCALAPPDATA%\${APPNAME}\firefox.profile.config.i2p"'
FileWrite $0 ')'
FileWriteByte $0 "13"