diff --git a/package.electron.json b/package.electron.json index 2c6c7c676d069ec95456ee372b3e754ee6dbb035..c220dc0972e3f5f515518b101b038f822072ad1d 100644 --- a/package.electron.json +++ b/package.electron.json @@ -17,7 +17,7 @@ }, "nsis": { "allowToChangeInstallationDirectory": true, - "include": "installer.nsh", + "include": "./.build/installer.nsh", "oneClick": false }, "productName": "Parity UI", diff --git a/src/util/windowInstaller.nsh b/src/util/windowInstaller.nsh index 35434cd1270c90b8e515bf1cd63749ab54628569..1d718cd85cbccdc1b166ceefc4e31ee889562fdb 100644 --- a/src/util/windowInstaller.nsh +++ b/src/util/windowInstaller.nsh @@ -1,6 +1,6 @@ ; Change default install directory on Windows ; https://www.electron.build/configuration/nsis#how-do-change-the-default-installation-directory-to-custom -macro preInit +!macro preInit SetRegView 64 WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\Parity UI" WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "C:\Program Files\Parity Technologies\Parity UI"