fix windows installer path (#2112)

* fix windows installer path and registry keys to prompt for uninstall before installing a new version. Previous versions should be uninstalled first on windows as the default path and registry keys are updated

* update artifact name to match
This commit is contained in:
Russel Waters 2019-07-02 16:59:50 -04:00 committed by GitHub
commit e8fcb116b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -435,9 +435,10 @@ if (NANO_GUI OR RAIBLOCKS_GUI)
WriteRegDWORD HKLM 'SYSTEM\\\\CurrentControlSet\\\\Services\\\\EventLog\\\\Nano\\\\Nano' 'TypesSupported' '0x7'
WriteRegStr HKLM 'SYSTEM\\\\CurrentControlSet\\\\Services\\\\EventLog\\\\Nano\\\\Nano' 'EventMessageFile' '$INSTDIR\\\\nano_wallet.exe'")
set (CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "DeleteRegKey HKLM 'SYSTEM\\\\CurrentControlSet\\\\Services\\\\EventLog\\\\Nano'")
set (CPACK_PACKAGE_INSTALL_DIRECTORY "nanocurrency")
set (CPACK_NSIS_MUI_ICON ${CMAKE_SOURCE_DIR}/Nano.ico)
set (CPACK_NSIS_DISPLAY_NAME "Nano")
set (CPACK_PACKAGE_NAME "Nano_Installer")
set (CPACK_PACKAGE_NAME "nano-node")
set (CPACK_NSIS_PACKAGE_NAME "Nano")
set (CPACK_NSIS_URL_INFO_ABOUT "https://nano.org")
set (CPACK_NSIS_CONTACT "info@nano.org")

View file

@ -41,5 +41,5 @@ after_build:
artifacts:
- path: nano*.zip
name: nano_release_%network%
- path: Nano_Installer-*.exe
name: Nano_Installer_%network%
- path: nano-node-*.exe
name: nano-node-%network%