X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=share%2Fsetup.nsi;h=22a10db563ea3145fd6843b07c45575df9b74962;hb=128b5cec3c7f20b34a40541be2236c11fe204df6;hp=3f12dad12c8e99081f1920450fa750eb13a59da7;hpb=09051bd53858adbb0ed5564434e88e0dc8a733cf;p=novacoin.git diff --git a/share/setup.nsi b/share/setup.nsi index 3f12dad..22a10db 100644 --- a/share/setup.nsi +++ b/share/setup.nsi @@ -1,16 +1,16 @@ -Name PPCoin +Name NovaCoin RequestExecutionLevel highest SetCompressor /SOLID lzma # General Symbol Definitions !define REGKEY "SOFTWARE\$(^Name)" -!define VERSION 0.2.0 -!define COMPANY "PPCoin project" -!define URL http://www.ppcoin.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 PPCoin -#!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 ppcoin-0.2.0-win32-setup.exe -InstallDir $PROGRAMFILES\PPCoin +OutFile novacoin-0.3.0-win32-setup.exe +InstallDir $PROGRAMFILES\NovaCoin CRCCheck on XPStyle on BrandingText " " ShowInstDetails show -VIProductVersion 0.2.0.0 -VIAddVersionKey ProductName PPCoin +VIProductVersion 0.3.0.0 +VIAddVersionKey ProductName NovaCoin VIAddVersionKey ProductVersion "${VERSION}" VIAddVersionKey CompanyName "${COMPANY}" VIAddVersionKey CompanyWebsite "${URL}" @@ -66,18 +66,18 @@ 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/ppcoind.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 + # Remove old wxwidgets-based-novacoin executable and locales: + #Delete /REBOOTOK $INSTDIR\novacoin.exe #RMDir /r /REBOOTOK $INSTDIR\locale SectionEnd @@ -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 PPCoin.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}" @@ -99,11 +98,11 @@ Section -post SEC0001 WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoModify 1 WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1 - # bitcoin: URI handling disabled for 0.6.0 - # WriteRegStr HKCR "bitcoin" "URL Protocol" "" - # WriteRegStr HKCR "bitcoin" "" "URL:Bitcoin" - # WriteRegStr HKCR "bitcoin\DefaultIcon" "" $INSTDIR\bitcoin-qt.exe - # WriteRegStr HKCR "bitcoin\shell\open\command" "" '"$INSTDIR\bitcoin-qt.exe" "$$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 @@ -121,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 @@ -131,9 +130,9 @@ SectionEnd Section -un.post UNSEC0001 DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" - Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall PPCoin.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 @@ -141,7 +140,7 @@ Section -un.post UNSEC0001 DeleteRegValue HKCU "${REGKEY}" Path DeleteRegKey /IfEmpty HKCU "${REGKEY}\Components" DeleteRegKey /IfEmpty HKCU "${REGKEY}" - DeleteRegKey HKCR "ppcoin" + DeleteRegKey HKCR "novacoin" RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup RmDir /REBOOTOK $INSTDIR Push $R0