installer.nsh 760 B

1234567891011121314
  1. !macro preInit
  2. SetRegView 64
  3. ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\{GUID}" "UninstallString"
  4. ${If} $0 == ''
  5. WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "D:\electron\install\jg-chemical-client"
  6. WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "D:\electron\install\jg-chemical-client"
  7. ${Endif}
  8. SetRegView 32
  9. ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\{GUID}" "UninstallString"
  10. ${If} $0 == ''
  11. WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "D:\electron\install\jg-chemical-client"
  12. WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "D:\electron\install\jg-chemical-client"
  13. ${Endif}
  14. !macroend