You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ORPA-pyOpenRPA/Resources/MozillaFirefoxPortable/Other/Source/PortableApps.comInstallerCu...

17 lines
651 B

;!include NewTextReplace.nsh
;!include ReplaceInFileWithTextReplace.nsh
!macro CustomCodePreInstall
${If} ${FileExists} "$INSTDIR\Data\profile\*.*"
ReadINIStr $0 "$INSTDIR\App\AppInfo\appinfo.ini" "Version" "PackageVersion"
${VersionCompare} $0 "20.0.0.0" $R0
${If} $R0 == 2
WriteINIStr "$INSTDIR\Data\settings\FirefoxPortableSettings.ini" "FirefoxPortableSettings" "SubmitCrashReport" "0"
${EndIf}
;${VersionCompare} $0 "61.0.0.0" $R0
;${If} $R0 == 2
; ${ReplaceInFile} "$INSTDIR\Data\profile\prefs.js" `user_pref("browser.cache.disk.capacity", 0);` `user_pref("browser.cache.disk.enable", false);`
;${EndIf}
${EndIf}
!macroend