summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLawnCable <lawncable.tmw2@simonlaux.de>2018-08-29 23:28:24 +0200
committerLawnCable <lawncable.tmw2@simonlaux.de>2018-08-29 23:28:24 +0200
commite8acae284d9c5030522e97319244b8a0941d7c61 (patch)
tree3fcc0d81a8933c091ac64d2b11d9beba4adbcb7d
parent7fb2d12ee026ac0ae840a2849269130f51b4e816 (diff)
downloadelectron-e8acae284d9c5030522e97319244b8a0941d7c61.tar.gz
electron-e8acae284d9c5030522e97319244b8a0941d7c61.tar.bz2
electron-e8acae284d9c5030522e97319244b8a0941d7c61.tar.xz
electron-e8acae284d9c5030522e97319244b8a0941d7c61.zip
update installer script
-rw-r--r--LawncableLauncher.nsi34
-rw-r--r--package.json1
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
@@ -22,11 +22,6 @@
RequestExecutionLevel admin
;--------------------------------
-;Variables
-
- Var StartMenuFolder
-
-;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
@@ -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": {