mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-23 11:48:07 -06:00
Improved installer script. In the finish page, it shows a checkbox to run TW Blue, and a button to go to the website. Modified installer version to 0.50
This commit is contained in:
parent
0492e65aa0
commit
dd51516c30
@ -1,83 +1,87 @@
|
|||||||
!include "MUI2.nsh"
|
!include "MUI2.nsh"
|
||||||
!include "LogicLib.nsh"
|
!include "LogicLib.nsh"
|
||||||
!include "x64.nsh"
|
!include "x64.nsh"
|
||||||
CRCCheck on
|
CRCCheck on
|
||||||
XPStyle on
|
XPStyle on
|
||||||
Name "TW Blue"
|
Name "TW Blue"
|
||||||
OutFile "TWBlue_setup.exe"
|
OutFile "TWBlue_setup.exe"
|
||||||
InstallDir "$PROGRAMFILES\twblue"
|
InstallDir "$PROGRAMFILES\twblue"
|
||||||
InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "InstallLocation"
|
InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "InstallLocation"
|
||||||
RequestExecutionLevel admin
|
RequestExecutionLevel admin
|
||||||
SetCompress auto
|
SetCompress auto
|
||||||
SetCompressor /solid lzma
|
SetCompressor /solid lzma
|
||||||
SetDatablockOptimize on
|
SetDatablockOptimize on
|
||||||
VIAddVersionKey ProductName "TW Blue"
|
VIAddVersionKey ProductName "TW Blue"
|
||||||
VIAddVersionKey LegalCopyright "Copyright 2014 Manuel Cortez."
|
VIAddVersionKey LegalCopyright "Copyright 2014 Manuel Cortez."
|
||||||
VIAddVersionKey ProductVersion "0.48"
|
VIAddVersionKey ProductVersion "0.50"
|
||||||
VIAddVersionKey FileVersion "0.48"
|
VIAddVersionKey FileVersion "0.50"
|
||||||
VIProductVersion "0.48.0.0"
|
VIProductVersion "0.50.0.0"
|
||||||
!insertmacro MUI_PAGE_WELCOME
|
!insertmacro MUI_PAGE_WELCOME
|
||||||
!insertmacro MUI_PAGE_LICENSE "license.txt"
|
!insertmacro MUI_PAGE_LICENSE "license.txt"
|
||||||
!insertmacro MUI_PAGE_DIRECTORY
|
!insertmacro MUI_PAGE_DIRECTORY
|
||||||
var StartMenuFolder
|
var StartMenuFolder
|
||||||
!insertmacro MUI_PAGE_STARTMENU startmenu $StartMenuFolder
|
!insertmacro MUI_PAGE_STARTMENU startmenu $StartMenuFolder
|
||||||
!insertmacro MUI_PAGE_INSTFILES
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
!insertmacro MUI_PAGE_FINISH
|
!define MUI_FINISHPAGE_LINK "Visit TW Blue website"
|
||||||
!insertmacro MUI_UNPAGE_CONFIRM
|
!define MUI_FINISHPAGE_LINK_LOCATION "http://twblue.com.mx"
|
||||||
!insertmacro MUI_UNPAGE_INSTFILES
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\TWBlue.exe"
|
||||||
!insertmacro MUI_LANGUAGE "English"
|
!define MUI_FINISHPAGE_RUN_PARAMETERS "-i"
|
||||||
!insertmacro MUI_LANGUAGE "French"
|
!insertmacro MUI_PAGE_FINISH
|
||||||
!insertmacro MUI_LANGUAGE "Spanish"
|
!insertmacro MUI_UNPAGE_CONFIRM
|
||||||
!insertmacro MUI_LANGUAGE "Italian"
|
!insertmacro MUI_UNPAGE_INSTFILES
|
||||||
!insertmacro MUI_LANGUAGE "Finnish"
|
!insertmacro MUI_LANGUAGE "English"
|
||||||
!insertmacro MUI_LANGUAGE "Russian"
|
!insertmacro MUI_LANGUAGE "French"
|
||||||
!insertmacro MUI_LANGUAGE "PortugueseBR"
|
!insertmacro MUI_LANGUAGE "Spanish"
|
||||||
!insertmacro MUI_LANGUAGE "Polish"
|
!insertmacro MUI_LANGUAGE "Italian"
|
||||||
!insertmacro MUI_LANGUAGE "Hungarian"
|
!insertmacro MUI_LANGUAGE "Finnish"
|
||||||
!insertmacro MUI_LANGUAGE "Turkish"
|
!insertmacro MUI_LANGUAGE "Russian"
|
||||||
!insertmacro MUI_LANGUAGE "Arabic"
|
!insertmacro MUI_LANGUAGE "PortugueseBR"
|
||||||
!insertmacro MUI_LANGUAGE "Galician"
|
!insertmacro MUI_LANGUAGE "Polish"
|
||||||
!insertmacro MUI_LANGUAGE "Catalan"
|
!insertmacro MUI_LANGUAGE "Hungarian"
|
||||||
!insertmacro MUI_LANGUAGE "Basque"
|
!insertmacro MUI_LANGUAGE "Turkish"
|
||||||
!insertmacro MUI_RESERVEFILE_LANGDLL
|
!insertmacro MUI_LANGUAGE "Arabic"
|
||||||
Section
|
!insertmacro MUI_LANGUAGE "Galician"
|
||||||
SetShellVarContext All
|
!insertmacro MUI_LANGUAGE "Catalan"
|
||||||
SetOutPath "$INSTDIR"
|
!insertmacro MUI_LANGUAGE "Basque"
|
||||||
${If} ${RunningX64}
|
!insertmacro MUI_RESERVEFILE_LANGDLL
|
||||||
File /r TWBlue64\*
|
Section
|
||||||
${Else}
|
SetShellVarContext All
|
||||||
File /r TWBlue\*
|
SetOutPath "$INSTDIR"
|
||||||
${EndIf}
|
${If} ${RunningX64}
|
||||||
CreateShortCut "$DESKTOP\TW Blue.lnk" "$INSTDIR\TWBlue.exe" "-i"
|
File /r TWBlue64\*
|
||||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN startmenu
|
${Else}
|
||||||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
File /r TWBlue\*
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\TW Blue.lnk" "$INSTDIR\TWBlue.exe" "-i"
|
${EndIf}
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\TW Blue on the web.lnk" "http://twblue.com.mx"
|
CreateShortCut "$DESKTOP\TW Blue.lnk" "$INSTDIR\TWBlue.exe" "-i"
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN startmenu
|
||||||
!insertmacro MUI_STARTMENU_WRITE_END
|
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
||||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\TW Blue.lnk" "$INSTDIR\TWBlue.exe" "-i"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "DisplayName" "TW Blue"
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\TW Blue on the web.lnk" "http://twblue.com.mx"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "InstallLocation" $INSTDIR
|
!insertmacro MUI_STARTMENU_WRITE_END
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "Publisher" "Manuel Cortez"
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "DisplayVersion" "0.47"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "DisplayName" "TW Blue"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "URLInfoAbout" "http://twblue.com.mx"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "VersionMajor" 0
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "InstallLocation" $INSTDIR
|
||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "VersionMinor" 47
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "Publisher" "Manuel Cortez"
|
||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "NoModify" 1
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "DisplayVersion" "0.50"
|
||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "NoRepair" 1
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "URLInfoAbout" "http://twblue.com.mx"
|
||||||
SectionEnd
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "VersionMajor" 0
|
||||||
Section "Uninstall"
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "VersionMinor" 50
|
||||||
SetShellVarContext All
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "NoModify" 1
|
||||||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue"
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "NoRepair" 1
|
||||||
RMDir /r /REBOOTOK $INSTDIR
|
SectionEnd
|
||||||
Delete "$DESKTOP\TW Blue.lnk"
|
Section "Uninstall"
|
||||||
!insertmacro MUI_STARTMENU_GETFOLDER startmenu $StartMenuFolder
|
SetShellVarContext All
|
||||||
RMDir /r "$SMPROGRAMS\$StartMenuFolder"
|
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue"
|
||||||
SectionEnd
|
RMDir /r /REBOOTOK $INSTDIR
|
||||||
Function .onInit
|
Delete "$DESKTOP\TW Blue.lnk"
|
||||||
${If} ${RunningX64}
|
!insertmacro MUI_STARTMENU_GETFOLDER startmenu $StartMenuFolder
|
||||||
StrCpy $instdir "$programfiles64\twblue"
|
RMDir /r "$SMPROGRAMS\$StartMenuFolder"
|
||||||
${EndIf}
|
SectionEnd
|
||||||
!insertmacro MUI_LANGDLL_DISPLAY
|
Function .onInit
|
||||||
FunctionEnd
|
${If} ${RunningX64}
|
||||||
|
StrCpy $instdir "$programfiles64\twblue"
|
||||||
|
${EndIf}
|
||||||
|
!insertmacro MUI_LANGDLL_DISPLAY
|
||||||
|
FunctionEnd
|
||||||
|
Loading…
Reference in New Issue
Block a user