From b5aaeb9fe58a43717de109c7398f44b19193bc99 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 6 Mar 2012 01:12:11 +0300 Subject: Fix shortcuts in portable windows version. --- packaging/windows/evol.nsi | 6 ++++-- packaging/windows/setup.nsi | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'packaging') diff --git a/packaging/windows/evol.nsi b/packaging/windows/evol.nsi index 5b84a2ff7..8a84b7673 100644 --- a/packaging/windows/evol.nsi +++ b/packaging/windows/evol.nsi @@ -358,8 +358,10 @@ SectionEnd Section /o "Debugger" SecDebug SetOutPath "$INSTDIR" File "${DLLDIR}\gdb.exe" - CreateShortCut "$SMPROGRAMS\EvolOnline\EvolOnline (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplus.exe"' "$INSTDIR\manaplus.exe" 1 - CreateShortCut "$DESKTOP\EvolOnline (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplus.exe"' "$INSTDIR\manaplus.exe" 1 + ${If} ${SectionIsSelected} ${SecShortcuts} + CreateShortCut "$SMPROGRAMS\EvolOnline\EvolOnline (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplus.exe"' "$INSTDIR\manaplus.exe" 1 + CreateShortCut "$DESKTOP\EvolOnline (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplus.exe"' "$INSTDIR\manaplus.exe" 1 + ${EndIf} SectionEnd Section /o "Evol Online music" SecEvolMusic diff --git a/packaging/windows/setup.nsi b/packaging/windows/setup.nsi index e160204cb..c3d5dbf30 100644 --- a/packaging/windows/setup.nsi +++ b/packaging/windows/setup.nsi @@ -359,8 +359,10 @@ SectionEnd Section /o "Debugger" SecDebug SetOutPath "$INSTDIR" File "${DLLDIR}\gdb.exe" - CreateShortCut "$SMPROGRAMS\Mana\ManaPlus (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplus.exe"' "$INSTDIR\manaplus.exe" - CreateShortCut "$DESKTOP\ManaPlus (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplus.exe"' "$INSTDIR\manaplus.exe" + ${If} ${SectionIsSelected} ${SecShortcuts} + CreateShortCut "$SMPROGRAMS\Mana\ManaPlus (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplus.exe"' "$INSTDIR\manaplus.exe" + CreateShortCut "$DESKTOP\ManaPlus (debug).lnk" '"$INSTDIR\gdb.exe"' '"$INSTDIR\manaplus.exe"' "$INSTDIR\manaplus.exe" + ${EndIf} SectionEnd Section /o "Evol Online music" SecEvolMusic -- cgit v1.2.3-70-g09d2