From e8acae284d9c5030522e97319244b8a0941d7c61 Mon Sep 17 00:00:00 2001 From: LawnCable Date: Wed, 29 Aug 2018 23:28:24 +0200 Subject: update installer script --- LawncableLauncher.nsi | 34 +++++++--------------------------- package.json | 1 + 2 files changed, 8 insertions(+), 27 deletions(-) diff --git a/LawncableLauncher.nsi b/LawncableLauncher.nsi index e88c792..5217a11 100644 --- a/LawncableLauncher.nsi +++ b/LawncableLauncher.nsi @@ -21,11 +21,6 @@ ;Request application privileges for Windows Vista RequestExecutionLevel admin -;-------------------------------- -;Variables - - Var StartMenuFolder - ;-------------------------------- ;Interface Settings @@ -38,13 +33,6 @@ ;!insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_DIRECTORY - ;Start Menu Folder Page Configuration - !define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU" - !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\LawnCablesManaLauncher" - !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" - - !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder - !insertmacro MUI_PAGE_INSTFILES Function finishpageaction @@ -110,18 +98,14 @@ Section "Install" WriteRegStr HKLM ${REG_UNISTALL_KEY} "Publisher" "TMW2.ORG -> ManaLauncher Team" WriteRegStr HKLM ${REG_UNISTALL_KEY} "UninstallString" "$\"$INSTDIR\uninstall.exe$\"" WriteRegStr HKLM ${REG_UNISTALL_KEY} "DisplayIcon" "$\"$INSTDIR\icon.ico$\"" + WriteRegStr HKLM ${REG_UNISTALL_KEY} "URLInfoAbout" "https://tmw2.org" + WriteRegDWORD HKLM ${REG_UNISTALL_KEY} "NoModify" 1 + WriteRegDWORD HKLM ${REG_UNISTALL_KEY} "NoRepair" 1 + WriteRegStr HKLM ${REG_UNISTALL_KEY} "UpdateInfo" "https://tmw2.org" - !insertmacro MUI_STARTMENU_WRITE_BEGIN Application + ;Create shortcut + CreateShortcut "$SMPROGRAMS\LawnCablesManaLauncher.lnk" "$INSTDIR\LawnCablesManaLauncher.exe" - ;Create shortcuts - CreateDirectory "$SMPROGRAMS\$StartMenuFolder" - CreateShortcut "$SMPROGRAMS\$StartMenuFolder\LawnCablesManaLauncher.lnk" "$INSTDIR\LawnCablesManaLauncher.exe" - CreateShortcut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe" - - - - - !insertmacro MUI_STARTMENU_WRITE_END SectionEnd @@ -138,12 +122,8 @@ Section "Uninstall" RMDir /r "$APPDATA\mana-launcher" ${EndIf} - !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder - Delete "$Desktop\LawnCablesManaLauncher.lnk" - Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" - Delete "$SMPROGRAMS\$StartMenuFolder\LawnCablesManaLauncher.lnk" - RMDir "$SMPROGRAMS\$StartMenuFolder" + Delete "$SMPROGRAMS\LawnCablesManaLauncher.lnk" DeleteRegKey /ifempty HKCU "Software\LawnCablesManaLauncher" diff --git a/package.json b/package.json index ab88f22..f619a5c 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "mana-launcher", "version": "1.0.0", "private": true, + "homepage": "https://tmw2.org", "description": "A launcher for manaplus.", "main": "dist/main.js", "scripts": { -- cgit v1.2.3-70-g09d2