Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script: Setup Improvements #1895

Merged
merged 4 commits into from
Sep 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed share/pixmaps/GrcInstallBanner.jpg
Binary file not shown.
Binary file removed share/pixmaps/addressbook16.bmp
Binary file not shown.
Binary file removed share/pixmaps/addressbook16mask.bmp
Binary file not shown.
Binary file removed share/pixmaps/addressbook20.bmp
Binary file not shown.
Binary file removed share/pixmaps/addressbook20mask.bmp
Binary file not shown.
Binary file removed share/pixmaps/check.ico
Binary file not shown.
Binary file removed share/pixmaps/favicon.ico
Binary file not shown.
Binary file removed share/pixmaps/gradient75.png
Binary file not shown.
Binary file removed share/pixmaps/gradientmiddle.png
Binary file not shown.
Binary file removed share/pixmaps/grc-small.png
Binary file not shown.
Binary file removed share/pixmaps/grc.png
Binary file not shown.
Binary file removed share/pixmaps/grclogo.png
Binary file not shown.
Binary file removed share/pixmaps/grcsimple - Copy.png
Binary file not shown.
Binary file removed share/pixmaps/grcsm.png
Binary file not shown.
Binary file removed share/pixmaps/gridcoin horizontal green.png
Binary file not shown.
Binary file removed share/pixmaps/gridcoin horizontal.jpg
Binary file not shown.
Binary file removed share/pixmaps/gridcoin horizontal.png
Binary file not shown.
Binary file removed share/pixmaps/gridcoin-bc.ico
Binary file not shown.
Binary file modified share/pixmaps/gridcoin.ico
Binary file not shown.
Binary file removed share/pixmaps/gridcoin.png
Binary file not shown.
Binary file removed share/pixmaps/gridcoin128.png
Binary file not shown.
Binary file removed share/pixmaps/gridcoin16.ico
Binary file not shown.
Binary file removed share/pixmaps/gridcoin256.png
Binary file not shown.
Binary file removed share/pixmaps/gridcoin32.ico
Binary file not shown.
Binary file removed share/pixmaps/gridcoin32.png
Binary file not shown.
Binary file removed share/pixmaps/gridcoin64.ico
Binary file not shown.
Binary file modified share/pixmaps/nsis-header.bmp
Binary file not shown.
Binary file modified share/pixmaps/nsis-wizard.bmp
Binary file not shown.
Binary file removed share/pixmaps/nsis-wizard.png
Binary file not shown.
Binary file removed share/pixmaps/send16.bmp
Binary file not shown.
Binary file removed share/pixmaps/send16mask.bmp
Binary file not shown.
Binary file removed share/pixmaps/send16masknoshadow.bmp
Binary file not shown.
Binary file removed share/pixmaps/send20.bmp
Binary file not shown.
Binary file removed share/pixmaps/send20mask.bmp
Binary file not shown.
Binary file removed share/pixmaps/splash.jpg
Binary file not shown.
Binary file removed share/pixmaps/splash.png
Binary file not shown.
13 changes: 11 additions & 2 deletions share/setup.nsi.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ SetCompressor /SOLID lzma
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_RIGHT
!define MUI_HEADERIMAGE_BITMAP "${ICONDIR}\nsis-header.bmp"
!define MUI_WELCOMEFINISHPAGE_BITMAP "${ICONDIR}\nsis-wizard.bmp"
!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY}
Expand Down Expand Up @@ -161,13 +162,21 @@ Function .onInit
${If} ${RunningX64}
; disable registry redirection (enable access to 64-bit portion of registry)
SetRegView 64
ReadRegStr $INSTDIR HKCU "${REGKEY}" "Path"
StrCmp $INSTDIR "" 0 rununin
StrCpy $INSTDIR $PROGRAMFILES64\GridcoinResearch
${Else}
MessageBox MB_OK|MB_ICONSTOP "Cannot install 64-bit version on a 32-bit system."
Abort
${EndIf}
!else
ReadRegStr $INSTDIR HKCU "${REGKEY}" "Path"
StrCmp $INSTDIR "" 0 rununin
StrCpy $INSTDIR $PROGRAMFILES\GridcoinResearch
!endif
Exec $INSTDIR\uninst.exe
Delete $INSTDIR\*"
rununin:
Exec $INSTDIR\uninst.exe
Delete $INSTDIR\*"
FunctionEnd

# Uninstaller functions
Expand Down