From 2ba25f8aa2aa194627d7abba1c45319ff0488e3c Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 29 Apr 2012 18:19:34 +0300 Subject: [PATCH] Minor change to installer --- Build/Installer/Installer.nsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Build/Installer/Installer.nsi b/Build/Installer/Installer.nsi index 7878bdc8..7781fbae 100644 --- a/Build/Installer/Installer.nsi +++ b/Build/Installer/Installer.nsi @@ -726,7 +726,11 @@ SkipIniMove: SetShellVarContext all Call RemoveStartMenuShortcuts - CreateShortcut "$SMPROGRAMS\Rainmeter.lnk" "$INSTDIR\Rainmeter.exe" "" "$INSTDIR\Rainmeter.exe" 0 + StrCpy $0 "$SMPROGRAMS\Rainmeter.lnk" + ${If} ${FileExists} "$SMPROGRAMS\Rainmeter" + StrCpy $0 "$SMPROGRAMS\Rainmeter\Rainmeter.lnk" + ${EndIf} + CreateShortcut "$0" "$INSTDIR\Rainmeter.exe" "" "$INSTDIR\Rainmeter.exe" 0 SetShellVarContext current Call RemoveStartMenuShortcuts