X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=src%2Fwinsetup.nsi;h=abfafbca0b69fc64d98d2453384c1c6fea1329f4;hb=9ad21c9f459da2539c8b537af8e8bfb32b22f89d;hp=86da9420043da80a72d81b75d28f235d59cceedd;hpb=bc8471453c90b29dc162119866f0f2b73dec5081;p=jarrg-ian.git diff --git a/src/winsetup.nsi b/src/winsetup.nsi index 86da942..abfafbc 100644 --- a/src/winsetup.nsi +++ b/src/winsetup.nsi @@ -1,9 +1,9 @@ !include FileFunc.nsh !insertmacro GetParent -Name "JPCTB" -OutFile "jpctb-setup.exe" -InstallDir "$LOCALAPPDATA\JPCTB" +Name "JARRG" +OutFile "jarrg-setup.exe" +InstallDir "$LOCALAPPDATA\JARRG" RequestExecutionLevel user var YPPDIR @@ -20,23 +20,23 @@ Call FindJRE Call CheckYPP Call CopyJRE Call YPPShortcuts -WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JPCTB" \ -"DisplayName" "JPCTB - Java Pirate Commodity Trader with Bleach" -WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JPCTB" \ -"UninstallString" "$\"$INSTDIR\uninstall-jpctb.exe$\"" -WriteUninstaller "$INSTDIR\uninstall-jpctb.exe" +WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JARRG" \ +"DisplayName" "JARRG - Java Pirate Commodity Trader with Bleach" +WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JARRG" \ +"UninstallString" "$\"$INSTDIR\uninstall-jarrg.exe$\"" +WriteUninstaller "$INSTDIR\uninstall-jarrg.exe" SectionEnd Section "un." RMDir /r $INSTDIR\jre -Delete $INSTDIR\uninstall-jpctb.exe +Delete $INSTDIR\uninstall-jarrg.exe RMDIR $INSTDIR -Delete "$SMPROGRAMS\JPCTB.lnk" -Delete "$SMPROGRAMS\JPCTB Control Panel.lnk" -Delete "$DESKTOP\JPCTB.lnk" +Delete "$SMPROGRAMS\JARRG.lnk" +Delete "$SMPROGRAMS\JARRG Control Panel.lnk" +Delete "$DESKTOP\JARRG.lnk" -DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JPCTB" +DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JARRG" SectionEnd @@ -77,10 +77,10 @@ FunctionEnd Function YPPShortcuts SetOutPath $YPPDIR -CreateShortCut "$DESKTOP\JPCTB.lnk" "$INSTDIR\jre\bin\javaw.exe" \ +CreateShortCut "$DESKTOP\JARRG.lnk" "$INSTDIR\jre\bin\javaw.exe" \ "-jar getdown-dop.jar ." "$YPPDIR\app_icon.ico" 0 SW_SHOWNORMAL -CreateShortCut "$SMPROGRAMS\JPCTB.lnk" "$INSTDIR\jre\bin\javaw.exe" \ +CreateShortCut "$SMPROGRAMS\JARRG.lnk" "$INSTDIR\jre\bin\javaw.exe" \ "-jar getdown-dop.jar ." "$YPPDIR\app_icon.ico" 0 SW_SHOWNORMAL -CreateShortCut "$SMPROGRAMS\JPCTB Control Panel.lnk" \ +CreateShortCut "$SMPROGRAMS\JARRG Control Panel.lnk" \ "$INSTDIR\jre\bin\javaw.exe" "com.tedpearson.ypp.market.ControlPanel" FunctionEnd