2018-02-26 10:42:50 -06:00
|
|
|
!include "MUI2.nsh"
|
|
|
|
!include "LogicLib.nsh"
|
|
|
|
Unicode true
|
|
|
|
CRCCheck on
|
|
|
|
ManifestSupportedOS all
|
|
|
|
XPStyle on
|
|
|
|
Name "MusicDL"
|
2019-06-24 13:36:12 -05:00
|
|
|
OutFile "music_dl_0.6_setup.exe"
|
2018-02-26 10:42:50 -06:00
|
|
|
InstallDir "$PROGRAMFILES\musicDL"
|
|
|
|
InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\musicDL" "InstallLocation"
|
|
|
|
RequestExecutionLevel admin
|
|
|
|
SetCompress auto
|
|
|
|
SetCompressor /solid lzma
|
|
|
|
SetDatablockOptimize on
|
|
|
|
VIAddVersionKey ProductName "MusicDL"
|
2019-05-06 02:20:01 -05:00
|
|
|
VIAddVersionKey LegalCopyright "Copyright 2019 Manuel Cortez."
|
2019-06-24 13:36:12 -05:00
|
|
|
VIAddVersionKey ProductVersion "0.6"
|
|
|
|
VIAddVersionKey FileVersion "0.6"
|
|
|
|
VIProductVersion "0.6.0.0"
|
|
|
|
VIFileVersion "0.6.0.0"
|
2018-02-26 10:42:50 -06:00
|
|
|
!insertmacro MUI_PAGE_WELCOME
|
|
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
|
|
var StartMenuFolder
|
|
|
|
!insertmacro MUI_PAGE_STARTMENU startmenu $StartMenuFolder
|
|
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
|
|
!define MUI_FINISHPAGE_LINK "Visit MusicDL website"
|
|
|
|
!define MUI_FINISHPAGE_LINK_LOCATION "https://manuelcortez.net/music_dl"
|
|
|
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\musicDL.exe"
|
|
|
|
!insertmacro MUI_PAGE_FINISH
|
|
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
|
|
!insertmacro MUI_LANGUAGE "Spanish"
|
|
|
|
!insertmacro MUI_LANGUAGE "Russian"
|
|
|
|
!insertmacro MUI_RESERVEFILE_LANGDLL
|
|
|
|
Section
|
|
|
|
SetShellVarContext All
|
|
|
|
SetOutPath "$INSTDIR"
|
2020-07-07 17:52:15 -05:00
|
|
|
File /r dist\*
|
2018-02-26 10:42:50 -06:00
|
|
|
CreateShortCut "$DESKTOP\musicDL.lnk" "$INSTDIR\musicDL.exe"
|
|
|
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN startmenu
|
|
|
|
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
|
|
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\MusicDL.lnk" "$INSTDIR\musicDL.exe"
|
|
|
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\MusicDL on the web.lnk" "http://manuelcortez.net/music_dl"
|
|
|
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
|
|
|
!insertmacro MUI_STARTMENU_WRITE_END
|
|
|
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
|
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\musicDL" "DisplayName" "MusicDL"
|
|
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\musicDL" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
|
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "InstallLocation" $INSTDIR
|
|
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "Publisher" "Manuel Cortéz"
|
2019-06-24 13:36:12 -05:00
|
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\musicDL" "DisplayVersion" "0.6"
|
2018-02-26 10:42:50 -06:00
|
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\musicDL" "URLInfoAbout" "https://manuelcortez.net/music_dl"
|
|
|
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\musicDL" "VersionMajor" 0
|
|
|
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\musicDL" "VersionMinor" 1
|
|
|
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\musicDL" "NoModify" 1
|
|
|
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\musicDL" "NoRepair" 1
|
|
|
|
SectionEnd
|
|
|
|
Section "Uninstall"
|
|
|
|
SetShellVarContext All
|
|
|
|
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\musicDL"
|
|
|
|
RMDir /r /REBOOTOK $INSTDIR
|
|
|
|
Delete "$DESKTOP\MusicDL.lnk"
|
|
|
|
!insertmacro MUI_STARTMENU_GETFOLDER startmenu $StartMenuFolder
|
|
|
|
RMDir /r "$SMPROGRAMS\$StartMenuFolder"
|
|
|
|
SectionEnd
|
|
|
|
Function .onInit
|
|
|
|
!insertmacro MUI_LANGDLL_DISPLAY
|
|
|
|
FunctionEnd
|