@ -1,4 +1,4 @@
Name Bit coin
Name Lite coin
RequestExecutionLevel highest
RequestExecutionLevel highest
SetCompressor /SOLID lzma
SetCompressor /SOLID lzma
@ -6,8 +6,8 @@ SetCompressor /SOLID lzma
# General Symbol Definitions
# General Symbol Definitions
!define REGKEY "SOFTWARE\$(^Name)"
!define REGKEY "SOFTWARE\$(^Name)"
!define VERSION 0.8.3
!define VERSION 0.8.3
!define COMPANY "Bit coin project"
!define COMPANY "Lite coin project"
!define URL http://www.bit coin.org/
!define URL http://www.lite coin.org/
# MUI Symbol Definitions
# MUI Symbol Definitions
!define MUI_ICON "../share/pixmaps/bitcoin.ico"
!define MUI_ICON "../share/pixmaps/bitcoin.ico"
@ -19,8 +19,8 @@ SetCompressor /SOLID lzma
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY}
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY}
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup
!define MUI_STARTMENUPAGE_DEFAULTFOLDER Bit coin
!define MUI_STARTMENUPAGE_DEFAULTFOLDER Lite coin
!define MUI_FINISHPAGE_RUN $INSTDIR\bit coin-qt.exe
!define MUI_FINISHPAGE_RUN $INSTDIR\lite coin-qt.exe
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "../share/pixmaps/nsis-wizard.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "../share/pixmaps/nsis-wizard.bmp"
!define MUI_UNFINISHPAGE_NOAUTOCLOSE
!define MUI_UNFINISHPAGE_NOAUTOCLOSE
@ -45,14 +45,14 @@ Var StartMenuGroup
!insertmacro MUI_LANGUAGE English
!insertmacro MUI_LANGUAGE English
# Installer attributes
# Installer attributes
OutFile bit coin-0.8.3-win32-setup.exe
OutFile lite coin-0.8.3-win32-setup.exe
InstallDir $PROGRAMFILES\Bit coin
InstallDir $PROGRAMFILES\Lite coin
CRCCheck on
CRCCheck on
XPStyle on
XPStyle on
BrandingText " "
BrandingText " "
ShowInstDetails show
ShowInstDetails show
VIProductVersion 0.8.3.0
VIProductVersion 0.8.3.0
VIAddVersionKey ProductName Bit coin
VIAddVersionKey ProductName Lite coin
VIAddVersionKey ProductVersion "${VERSION}"
VIAddVersionKey ProductVersion "${VERSION}"
VIAddVersionKey CompanyName "${COMPANY}"
VIAddVersionKey CompanyName "${COMPANY}"
VIAddVersionKey CompanyWebsite "${URL}"
VIAddVersionKey CompanyWebsite "${URL}"
@ -66,18 +66,18 @@ ShowUninstDetails show
Section -Main SEC0000
Section -Main SEC0000
SetOutPath $INSTDIR
SetOutPath $INSTDIR
SetOverwrite on
SetOverwrite on
File ../release/bit coin-qt.exe
File ../release/lite coin-qt.exe
File /oname=COPYING.txt ../COPYING
File /oname=COPYING.txt ../COPYING
File /oname=readme.txt ../doc/README_windows.txt
File /oname=readme.txt ../doc/README_windows.txt
SetOutPath $INSTDIR\daemon
SetOutPath $INSTDIR\daemon
File ../src/bit coind.exe
File ../src/lite coind.exe
SetOutPath $INSTDIR\src
SetOutPath $INSTDIR\src
File /r /x *.exe /x *.o ../src\*.*
File /r /x *.exe /x *.o ../src\*.*
SetOutPath $INSTDIR
SetOutPath $INSTDIR
WriteRegStr HKCU "${REGKEY}\Components" Main 1
WriteRegStr HKCU "${REGKEY}\Components" Main 1
# Remove old wxwidgets-based-bitcoin executable and locales:
# Remove old wxwidgets-based-bitcoin executable and locales:
Delete /REBOOTOK $INSTDIR\bit coin.exe
Delete /REBOOTOK $INSTDIR\lite coin.exe
RMDir /r /REBOOTOK $INSTDIR\locale
RMDir /r /REBOOTOK $INSTDIR\locale
SectionEnd
SectionEnd
@ -87,8 +87,8 @@ Section -post SEC0001
WriteUninstaller $INSTDIR\uninstall.exe
WriteUninstaller $INSTDIR\uninstall.exe
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory $SMPROGRAMS\$StartMenuGroup
CreateDirectory $SMPROGRAMS\$StartMenuGroup
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Bitcoin.lnk" $INSTDIR\bit coin-qt.exe
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Litecoin.lnk" $INSTDIR\lite coin-qt.exe
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall Bit coin.lnk" $INSTDIR\uninstall.exe
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall Lite coin.lnk" $INSTDIR\uninstall.exe
!insertmacro MUI_STARTMENU_WRITE_END
!insertmacro MUI_STARTMENU_WRITE_END
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "${VERSION}"
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "${VERSION}"
@ -98,10 +98,10 @@ Section -post SEC0001
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" UninstallString $INSTDIR\uninstall.exe
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)" NoModify 1
WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1
WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1
WriteRegStr HKCR "bit coin" "URL Protocol" ""
WriteRegStr HKCR "lite coin" "URL Protocol" ""
WriteRegStr HKCR "bitcoin" "" "URL:Bit coin"
WriteRegStr HKCR "litecoin" "" "URL:Lite coin"
WriteRegStr HKCR "bitcoin\DefaultIcon" "" $INSTDIR\bit coin-qt.exe
WriteRegStr HKCR "litecoin\DefaultIcon" "" $INSTDIR\lite coin-qt.exe
WriteRegStr HKCR "bitcoin\shell\open\command" "" '"$INSTDIR\bit coin-qt.exe" "%1"'
WriteRegStr HKCR "litecoin\shell\open\command" "" '"$INSTDIR\lite coin-qt.exe" "%1"'
SectionEnd
SectionEnd
# Macro for selecting uninstaller sections
# Macro for selecting uninstaller sections
@ -119,7 +119,7 @@ done${UNSECTION_ID}:
# Uninstaller sections
# Uninstaller sections
Section /o -un.Main UNSEC0000
Section /o -un.Main UNSEC0000
Delete /REBOOTOK $INSTDIR\bit coin-qt.exe
Delete /REBOOTOK $INSTDIR\lite coin-qt.exe
Delete /REBOOTOK $INSTDIR\COPYING.txt
Delete /REBOOTOK $INSTDIR\COPYING.txt
Delete /REBOOTOK $INSTDIR\readme.txt
Delete /REBOOTOK $INSTDIR\readme.txt
RMDir /r /REBOOTOK $INSTDIR\daemon
RMDir /r /REBOOTOK $INSTDIR\daemon
@ -129,9 +129,9 @@ SectionEnd
Section -un.post UNSEC0001
Section -un.post UNSEC0001
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall Bit coin.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall Lite coin.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Bit coin.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Lite coin.lnk"
Delete /REBOOTOK "$SMSTARTUP\Bit coin.lnk"
Delete /REBOOTOK "$SMSTARTUP\Lite coin.lnk"
Delete /REBOOTOK $INSTDIR\uninstall.exe
Delete /REBOOTOK $INSTDIR\uninstall.exe
Delete /REBOOTOK $INSTDIR\debug.log
Delete /REBOOTOK $INSTDIR\debug.log
Delete /REBOOTOK $INSTDIR\db.log
Delete /REBOOTOK $INSTDIR\db.log
@ -139,7 +139,7 @@ Section -un.post UNSEC0001
DeleteRegValue HKCU "${REGKEY}" Path
DeleteRegValue HKCU "${REGKEY}" Path
DeleteRegKey /IfEmpty HKCU "${REGKEY}\Components"
DeleteRegKey /IfEmpty HKCU "${REGKEY}\Components"
DeleteRegKey /IfEmpty HKCU "${REGKEY}"
DeleteRegKey /IfEmpty HKCU "${REGKEY}"
DeleteRegKey HKCR "bit coin"
DeleteRegKey HKCR "lite coin"
RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup
RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup
RmDir /REBOOTOK $INSTDIR
RmDir /REBOOTOK $INSTDIR
Push $R0
Push $R0