diff options
author | bitraid <bitraid@protonmail.ch> | 2018-10-17 13:59:11 +0300 |
---|---|---|
committer | bitraid <bitraid@protonmail.ch> | 2018-10-17 13:59:11 +0300 |
commit | 97e7efba42cc4f40e58e19cf1fc5b41ee6b2462f (patch) | |
tree | ec3e2717107e3194fc4801494bea9edeb6829e09 /misc/nsis | |
parent | a992c015c1b09a34bad9109b9a5552c9ce2545e9 (diff) | |
download | qutebrowser-97e7efba42cc4f40e58e19cf1fc5b41ee6b2462f.tar.gz qutebrowser-97e7efba42cc4f40e58e19cf1fc5b41ee6b2462f.zip |
NSIS: remove underscores from function names
Diffstat (limited to 'misc/nsis')
-rwxr-xr-x | misc/nsis/install.nsh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/misc/nsis/install.nsh b/misc/nsis/install.nsh index 114d5aa83..bf1733a4a 100755 --- a/misc/nsis/install.nsh +++ b/misc/nsis/install.nsh @@ -148,14 +148,14 @@ var KeepReg !macroend ; Functions -Function Get_Default_Browser +Function GetDefaultBrowser ReadRegStr $0 HKCU "SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice" "ProgId" ReadRegStr $1 HKCU "SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice" "ProgId" ReadRegStr $2 HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\UserChoice" "ProgId" ReadRegStr $3 HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice" "ProgId" FunctionEnd -Function Set_Default_Browser +Function SetDefaultBrowser StrCmp $0 "${PRODUCT_NAME}URL" +2 0 WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice" \ "ProgId" "${PRODUCT_NAME}URL" @@ -349,7 +349,7 @@ SectionEnd Section /o "Set as default browser" SectionDefaultBrowser SectionIn 1 - !insertmacro UAC_AsUser_Call Function Get_Default_Browser ${UAC_SYNCREGISTERS} + !insertmacro UAC_AsUser_Call Function GetDefaultBrowser ${UAC_SYNCREGISTERS} ${ifnot} $0 == "${PRODUCT_NAME}URL" ${orifnot} $1 == "${PRODUCT_NAME}URL" ${orifnot} $2 == "${PRODUCT_NAME}HTML" @@ -360,7 +360,7 @@ Section /o "Set as default browser" SectionDefaultBrowser ExecShell "open" "control.exe" "/name Microsoft.DefaultPrograms /page \ pageDefaultProgram\pageAdvancedSettings?pszAppName=${PRODUCT_NAME}" ${else} - !insertmacro UAC_AsUser_Call Function Set_Default_Browser ${UAC_SYNCREGISTERS} + !insertmacro UAC_AsUser_Call Function SetDefaultBrowser ${UAC_SYNCREGISTERS} ${endif} ${endif} SectionEnd @@ -514,7 +514,7 @@ Function PageInstallModeChangeMode !insertmacro SelectSection ${SectionWindowsRegister} ; Select 'Default browser' if already set in registry - !insertmacro UAC_AsUser_Call Function Get_Default_Browser ${UAC_SYNCREGISTERS} + !insertmacro UAC_AsUser_Call Function GetDefaultBrowser ${UAC_SYNCREGISTERS} ${if} $0 == "${PRODUCT_NAME}URL" ${orif} $1 == "${PRODUCT_NAME}URL" ${orif} $2 == "${PRODUCT_NAME}HTML" |