From 083290d77399ee0a0e9838e9711c4d7fc541a06f Mon Sep 17 00:00:00 2001 From: lordmulder Date: Mon, 29 Nov 2010 21:42:39 +0100 Subject: [PATCH] Installer fixes. --- etc/NSIS/setup.nsi | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/etc/NSIS/setup.nsi b/etc/NSIS/setup.nsi index 434b7759..b2abd59a 100644 --- a/etc/NSIS/setup.nsi +++ b/etc/NSIS/setup.nsi @@ -35,6 +35,18 @@ ShowInstDetails show !define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\orange.bmp" !define MUI_PAGE_CUSTOMFUNCTION_SHOW CheckForUpdate +VIAddVersionKey /LANG=${LANG_ENGLISH} "Author" "LoRd_MuldeR " +VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version." +VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "Free Software Foundation" +VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "LameXP v${LAMEXP_VERSION} ${LAMEXP_SUFFIX} [Build #${LAMEXP_BUILD}]" +VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${LAMEXP_DATE}.${LAMEXP_BUILD} (${LAMEXP_VERSION})" +VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "Copyright 2004-2010 LoRd_MuldeR" +VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" "GNU" +VIAddVersionKey /LANG=${LANG_ENGLISH} "OriginalFilename" "LameXP.${LAMEXP_DATE}.exe" +VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "LameXP - Audio Encoder Frontend" +VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductVersion" "${LAMEXP_VERSION}, Build #${LAMEXP_BUILD} (${LAMEXP_DATE})" +VIAddVersionKey /LANG=${LANG_ENGLISH} "Website" "http://mulder.at.gg/" + !include `UAC.nsh` !include `parameters.nsh` !include `${NSISDIR}\Contrib\zip2exe\Base.nsh` @@ -63,7 +75,7 @@ Function .onInit FunctionEnd Function .onInstSuccess - !insertmacro UAC_AsUser_ExecShell "open" "$INSTDIR\LameXP.exe" "" "$INSTDIR" SW_SHOWNORMAL + !insertmacro UAC_AsUser_Call Function LaunchApplication ${UAC_SYNCINSTDIR} FunctionEnd !insertmacro SECTION_BEGIN @@ -86,3 +98,8 @@ Function CheckForUpdate GetDlgItem $R1 $HWNDPARENT 1 SendMessage $R1 ${WM_SETTEXT} 0 "STR:Update" FunctionEnd + +Function LaunchApplication + ExecShell "explore" "$INSTDIR" + Exec '"$INSTDIR\LameXP.exe"' +FunctionEnd