X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=share%2Fsetup.nsi;h=22a10db563ea3145fd6843b07c45575df9b74962;hp=83be1e076426e50123a48d554b7f939be4f0efad;hb=7483713823cea61963ae0051f3e17ffd4b9be706;hpb=35a07f8ec4abbd0f6848e53a35b9520b33085c63 diff --git a/share/setup.nsi b/share/setup.nsi index 83be1e0..22a10db 100644 --- a/share/setup.nsi +++ b/share/setup.nsi @@ -1,16 +1,16 @@ -Name Bitcoin +Name NovaCoin RequestExecutionLevel highest SetCompressor /SOLID lzma # General Symbol Definitions !define REGKEY "SOFTWARE\$(^Name)" -!define VERSION 0.5.6 -!define COMPANY "Bitcoin project" -!define URL http://www.bitcoin.org/ +!define VERSION 0.3.0 +!define COMPANY "NovaCoin project" +!define URL http://www.novacoin.ru/ # MUI Symbol Definitions -!define MUI_ICON "../share/pixmaps/bitcoin.ico" +!define MUI_ICON "../share/pixmaps/novacoin.ico" !define MUI_WELCOMEFINISHPAGE_BITMAP "../share/pixmaps/nsis-wizard.bmp" !define MUI_HEADERIMAGE !define MUI_HEADERIMAGE_RIGHT @@ -19,8 +19,8 @@ SetCompressor /SOLID lzma !define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM !define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY} !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup -!define MUI_STARTMENUPAGE_DEFAULTFOLDER Bitcoin -!define MUI_FINISHPAGE_RUN $INSTDIR\bitcoin-qt.exe +!define MUI_STARTMENUPAGE_DEFAULTFOLDER NovaCoin +#!define MUI_FINISHPAGE_RUN $INSTDIR\novacoin-qt.exe !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" !define MUI_UNWELCOMEFINISHPAGE_BITMAP "../share/pixmaps/nsis-wizard.bmp" !define MUI_UNFINISHPAGE_NOAUTOCLOSE @@ -45,14 +45,14 @@ Var StartMenuGroup !insertmacro MUI_LANGUAGE English # Installer attributes -OutFile bitcoin-0.5.6-win32-setup.exe -InstallDir $PROGRAMFILES\Bitcoin +OutFile novacoin-0.3.0-win32-setup.exe +InstallDir $PROGRAMFILES\NovaCoin CRCCheck on XPStyle on BrandingText " " ShowInstDetails show -VIProductVersion 0.5.6.0 -VIAddVersionKey ProductName Bitcoin +VIProductVersion 0.3.0.0 +VIAddVersionKey ProductName NovaCoin VIAddVersionKey ProductVersion "${VERSION}" VIAddVersionKey CompanyName "${COMPANY}" VIAddVersionKey CompanyWebsite "${URL}" @@ -66,19 +66,19 @@ ShowUninstDetails show Section -Main SEC0000 SetOutPath $INSTDIR SetOverwrite on - File ../release/bitcoin-qt.exe + #File ../release/novacoin-qt.exe File /oname=license.txt ../COPYING File /oname=readme.txt ../doc/README_windows.txt SetOutPath $INSTDIR\daemon - File ../src/bitcoind.exe + File ../src/novacoind.exe SetOutPath $INSTDIR\src File /r /x *.exe /x *.o ../src\*.* SetOutPath $INSTDIR WriteRegStr HKCU "${REGKEY}\Components" Main 1 - # Remove old wxwidgets-based-bitcoin executable and locales: - Delete /REBOOTOK $INSTDIR\bitcoin.exe - RMDir /r /REBOOTOK $INSTDIR\locale + # Remove old wxwidgets-based-novacoin executable and locales: + #Delete /REBOOTOK $INSTDIR\novacoin.exe + #RMDir /r /REBOOTOK $INSTDIR\locale SectionEnd Section -post SEC0001 @@ -87,8 +87,7 @@ Section -post SEC0001 WriteUninstaller $INSTDIR\uninstall.exe !insertmacro MUI_STARTMENU_WRITE_BEGIN Application CreateDirectory $SMPROGRAMS\$StartMenuGroup - CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Bitcoin.lnk" $INSTDIR\bitcoin-qt.exe - CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall Bitcoin.lnk" $INSTDIR\uninstall.exe + CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall NovaCoin.lnk" $INSTDIR\uninstall.exe !insertmacro MUI_STARTMENU_WRITE_END WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)" WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "${VERSION}" @@ -98,6 +97,12 @@ Section -post SEC0001 WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" UninstallString $INSTDIR\uninstall.exe WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoModify 1 WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1 + + # novacoin: URI handling disabled for 0.6.0 + # WriteRegStr HKCR "novacoin" "URL Protocol" "" + # WriteRegStr HKCR "novacoin" "" "URL:Novacoin" + # WriteRegStr HKCR "novacoin\DefaultIcon" "" $INSTDIR\novacoin-qt.exe + # WriteRegStr HKCR "novacoin\shell\open\command" "" '"$INSTDIR\novacoin-qt.exe" "$$1"' SectionEnd # Macro for selecting uninstaller sections @@ -115,7 +120,7 @@ done${UNSECTION_ID}: # Uninstaller sections Section /o -un.Main UNSEC0000 - Delete /REBOOTOK $INSTDIR\bitcoin-qt.exe + #Delete /REBOOTOK $INSTDIR\novacoin-qt.exe Delete /REBOOTOK $INSTDIR\license.txt Delete /REBOOTOK $INSTDIR\readme.txt RMDir /r /REBOOTOK $INSTDIR\daemon @@ -125,9 +130,9 @@ SectionEnd Section -un.post UNSEC0001 DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" - Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall Bitcoin.lnk" - Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Bitcoin.lnk" - Delete /REBOOTOK "$SMSTARTUP\Bitcoin.lnk" + Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall NovaCoin.lnk" + #Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Novacoin.lnk" + #Delete /REBOOTOK "$SMSTARTUP\Novacoin.lnk" Delete /REBOOTOK $INSTDIR\uninstall.exe Delete /REBOOTOK $INSTDIR\debug.log Delete /REBOOTOK $INSTDIR\db.log @@ -135,6 +140,7 @@ Section -un.post UNSEC0001 DeleteRegValue HKCU "${REGKEY}" Path DeleteRegKey /IfEmpty HKCU "${REGKEY}\Components" DeleteRegKey /IfEmpty HKCU "${REGKEY}" + DeleteRegKey HKCR "novacoin" RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup RmDir /REBOOTOK $INSTDIR Push $R0