Changeset View
Changeset View
Standalone View
Standalone View
src/inst-gpgme-browser.nsi
Context not available. | |||||
FileClose $1 | FileClose $1 | ||||
pop $1 | pop $1 | ||||
push $1 | |||||
FileOpen $1 "$INSTDIR\bin\gpgme-edge.json" "w" | |||||
FileWrite $1 '{$\r$\n' | |||||
FileWrite $1 '"name": "gpgmejson",$\r$\n' | |||||
FileWrite $1 '"description": "Javascript-binding for gnupg",$\r$\n' | |||||
FileWrite $1 '"path": "$2\\bin\\gpgme-json.exe",$\r$\n' | |||||
FileWrite $1 '"type": "stdio",$\r$\n' | |||||
FileWrite $1 '"allowed_origins": [$\r$\n' | |||||
FileWrite $1 ' "chrome-extension://dgcbddhdhjppfdfjpciagmmibadmoapc/"$\r$\n' | |||||
FileWrite $1 ']$\r$\n' | |||||
FileWrite $1 '}$\r$\n' | |||||
FileClose $1 | |||||
pop $1 | |||||
push $1 | push $1 | ||||
FileOpen $1 "$INSTDIR\bin\gpgme-mozilla.json" "w" | FileOpen $1 "$INSTDIR\bin\gpgme-mozilla.json" "w" | ||||
FileWrite $1 '{$\r$\n' | FileWrite $1 '{$\r$\n' | ||||
Context not available. | |||||
pop $2 | pop $2 | ||||
WriteRegStr SHCTX "Software\Google\Chrome\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-chrome.json" | WriteRegStr SHCTX "Software\Google\Chrome\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-chrome.json" | ||||
WriteRegStr SHCTX "Software\Microsoft\Edge\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-edge.json" | |||||
WriteRegStr SHCTX "Software\Mozilla\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-mozilla.json" | WriteRegStr SHCTX "Software\Mozilla\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-mozilla.json" | ||||
SetRegView 64 | SetRegView 64 | ||||
# BEGIN MSI IGNORE | # BEGIN MSI IGNORE | ||||
WriteRegStr SHCTX "Software\Google\Chrome\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-chrome.json" | WriteRegStr SHCTX "Software\Google\Chrome\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-chrome.json" | ||||
WriteRegStr SHCTX "Software\Microsoft\Edge\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-edge.json" | |||||
WriteRegStr SHCTX "Software\Mozilla\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-mozilla.json" | WriteRegStr SHCTX "Software\Mozilla\NativeMessagingHosts\gpgmejson" "" "$INSTDIR\bin\gpgme-mozilla.json" | ||||
# END MSI IGNORE | # END MSI IGNORE | ||||
SetRegView 32 | SetRegView 32 | ||||
Context not available. |