forked from IXCoin-Dev/IXCoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alert done,win32setup ready.prerelease build set
- Loading branch information
GroundRod
authored and
GroundRod
committed
Sep 30, 2014
1 parent
309df91
commit 304ec76
Showing
18 changed files
with
431 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
Name "IXCoin Core (32-bit)" | ||
|
||
RequestExecutionLevel highest | ||
SetCompressor /SOLID lzma | ||
|
||
# General Symbol Definitions | ||
!define REGKEY "SOFTWARE\$(^Name)" | ||
!define VERSION 0.9.2 | ||
!define COMPANY "IXCoin Core project" | ||
!define URL http://www.ixcoin.org/ | ||
|
||
# MUI Symbol Definitions | ||
!define MUI_ICON "c:\ixcoin-0.9.2.1\share\pixmaps\ixcoin.ico" | ||
!define MUI_WELCOMEFINISHPAGE_BITMAP "c:\ixcoin-0.9.2.1\share\pixmaps\nsis-wizard.bmp" | ||
!define MUI_HEADERIMAGE | ||
!define MUI_HEADERIMAGE_RIGHT | ||
!define MUI_HEADERIMAGE_BITMAP "c:\ixcoin-0.9.2.1\share\pixmaps\nsis-header.bmp" | ||
!define MUI_FINISHPAGE_NOAUTOCLOSE | ||
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM | ||
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY} | ||
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup | ||
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "IXCoin Core" | ||
!define MUI_FINISHPAGE_RUN $INSTDIR\ixcoin-qt.exe | ||
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico" | ||
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "c:\ixcoin-0.9.2.1\share\pixmaps\nsis-wizard.bmp" | ||
!define MUI_UNFINISHPAGE_NOAUTOCLOSE | ||
|
||
# Included files | ||
!include Sections.nsh | ||
!include MUI2.nsh | ||
!if "32" == "64" | ||
!include x64.nsh | ||
!endif | ||
|
||
# Variables | ||
Var StartMenuGroup | ||
|
||
# Installer pages | ||
!insertmacro MUI_PAGE_WELCOME | ||
!insertmacro MUI_PAGE_DIRECTORY | ||
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuGroup | ||
!insertmacro MUI_PAGE_INSTFILES | ||
!insertmacro MUI_PAGE_FINISH | ||
!insertmacro MUI_UNPAGE_CONFIRM | ||
!insertmacro MUI_UNPAGE_INSTFILES | ||
|
||
# Installer languages | ||
!insertmacro MUI_LANGUAGE English | ||
|
||
# Installer attributes | ||
OutFile c:\ixcoin-0.9.2.1\ixcoin-${VERSION}-win32-setup.exe | ||
!if "32" == "64" | ||
InstallDir $PROGRAMFILES64\IXCoin | ||
!else | ||
InstallDir $PROGRAMFILES\IXCoin | ||
!endif | ||
CRCCheck on | ||
XPStyle on | ||
BrandingText " " | ||
ShowInstDetails show | ||
VIProductVersion ${VERSION}.1 | ||
VIAddVersionKey ProductName "IXCoin Core" | ||
VIAddVersionKey ProductVersion "${VERSION}" | ||
VIAddVersionKey CompanyName "${COMPANY}" | ||
VIAddVersionKey CompanyWebsite "${URL}" | ||
VIAddVersionKey FileVersion "${VERSION}" | ||
VIAddVersionKey FileDescription "" | ||
VIAddVersionKey LegalCopyright "" | ||
InstallDirRegKey HKCU "${REGKEY}" Path | ||
ShowUninstDetails show | ||
|
||
# Installer sections | ||
Section -Main SEC0000 | ||
SetOutPath $INSTDIR | ||
SetOverwrite on | ||
File c:\ixcoin-0.9.2.1\release\ixcoin-qt.exe | ||
File /oname=COPYING.txt c:\ixcoin-0.9.2.1\COPYING | ||
File /oname=readme.txt c:\ixcoin-0.9.2.1\doc\README_windows.txt | ||
SetOutPath $INSTDIR\daemon | ||
File c:\ixcoin-0.9.2.1\release\ixcoind.exe | ||
File c:\ixcoin-0.9.2.1\release\ixcoin-cli.exe | ||
SetOutPath $INSTDIR\doc | ||
File /r c:\ixcoin-0.9.2.1\doc\*.* | ||
SetOutPath $INSTDIR | ||
WriteRegStr HKCU "${REGKEY}\Components" Main 1 | ||
|
||
# Remove old wxwidgets-based-ixcoin executable and locales: | ||
Delete /REBOOTOK $INSTDIR\ixcoin.exe | ||
RMDir /r /REBOOTOK $INSTDIR\locale | ||
SectionEnd | ||
|
||
Section -post SEC0001 | ||
WriteRegStr HKCU "${REGKEY}" Path $INSTDIR | ||
SetOutPath $INSTDIR | ||
WriteUninstaller $INSTDIR\uninstall.exe | ||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application | ||
CreateDirectory $SMPROGRAMS\$StartMenuGroup | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" $INSTDIR\ixcoin-qt.exe | ||
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).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}" | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" Publisher "${COMPANY}" | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" URLInfoAbout "${URL}" | ||
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayIcon $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)" NoRepair 1 | ||
WriteRegStr HKCR "ixcoin" "URL Protocol" "" | ||
WriteRegStr HKCR "ixcoin" "" "URL:IXCoin" | ||
WriteRegStr HKCR "ixcoin\DefaultIcon" "" $INSTDIR\ixcoin-qt.exe | ||
WriteRegStr HKCR "ixcoin\shell\open\command" "" '"$INSTDIR\ixcoin-qt.exe" "%1"' | ||
SectionEnd | ||
|
||
# Macro for selecting uninstaller sections | ||
!macro SELECT_UNSECTION SECTION_NAME UNSECTION_ID | ||
Push $R0 | ||
ReadRegStr $R0 HKCU "${REGKEY}\Components" "${SECTION_NAME}" | ||
StrCmp $R0 1 0 next${UNSECTION_ID} | ||
!insertmacro SelectSection "${UNSECTION_ID}" | ||
GoTo done${UNSECTION_ID} | ||
next${UNSECTION_ID}: | ||
!insertmacro UnselectSection "${UNSECTION_ID}" | ||
done${UNSECTION_ID}: | ||
Pop $R0 | ||
!macroend | ||
|
||
# Uninstaller sections | ||
Section /o -un.Main UNSEC0000 | ||
Delete /REBOOTOK $INSTDIR\ixcoin-qt.exe | ||
Delete /REBOOTOK $INSTDIR\COPYING.txt | ||
Delete /REBOOTOK $INSTDIR\readme.txt | ||
RMDir /r /REBOOTOK $INSTDIR\daemon | ||
RMDir /r /REBOOTOK $INSTDIR\doc | ||
DeleteRegValue HKCU "${REGKEY}\Components" Main | ||
SectionEnd | ||
|
||
Section -un.post UNSEC0001 | ||
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" | ||
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" | ||
Delete /REBOOTOK "$SMSTARTUP\IXCoin.lnk" | ||
Delete /REBOOTOK $INSTDIR\uninstall.exe | ||
Delete /REBOOTOK $INSTDIR\debug.log | ||
Delete /REBOOTOK $INSTDIR\db.log | ||
DeleteRegValue HKCU "${REGKEY}" StartMenuGroup | ||
DeleteRegValue HKCU "${REGKEY}" Path | ||
DeleteRegKey /IfEmpty HKCU "${REGKEY}\Components" | ||
DeleteRegKey /IfEmpty HKCU "${REGKEY}" | ||
DeleteRegKey HKCR "ixcoin" | ||
RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup | ||
RmDir /REBOOTOK $INSTDIR | ||
Push $R0 | ||
StrCpy $R0 $StartMenuGroup 1 | ||
StrCmp $R0 ">" no_smgroup | ||
no_smgroup: | ||
Pop $R0 | ||
SectionEnd | ||
|
||
# Installer functions | ||
Function .onInit | ||
InitPluginsDir | ||
!if "32" == "64" | ||
${If} ${RunningX64} | ||
; disable registry redirection (enable access to 64-bit portion of registry) | ||
SetRegView 64 | ||
${Else} | ||
MessageBox MB_OK|MB_ICONSTOP "Cannot install 64-bit version on a 32-bit system." | ||
Abort | ||
${EndIf} | ||
!endif | ||
FunctionEnd | ||
|
||
# Uninstaller functions | ||
Function un.onInit | ||
ReadRegStr $INSTDIR HKCU "${REGKEY}" Path | ||
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuGroup | ||
!insertmacro SELECT_UNSECTION Main ${UNSEC0000} | ||
FunctionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.