From b6e62387d4ab4646ba61cc3f43b2353ffa07499d Mon Sep 17 00:00:00 2001 From: daid303 Date: Thu, 4 Oct 2012 14:39:03 +0200 Subject: [PATCH] Execute cura after installing. --- scripts/win32/installer.nsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/win32/installer.nsi b/scripts/win32/installer.nsi index 899b103..e0f0f82 100644 --- a/scripts/win32/installer.nsi +++ b/scripts/win32/installer.nsi @@ -44,6 +44,11 @@ SetCompressor /SOLID lzma !define MUI_FINISHPAGE_NOAUTOCLOSE !define MUI_UNFINISHPAGE_NOAUTOCLOSE +;Run Cura after installing +!define MUI_FINISHPAGE_RUN +!define MUI_FINISHPAGE_RUN_TEXT "Start Cura ${VERSION}" +!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink" + ; Pages ;!insertmacro MUI_PAGE_WELCOME !insertmacro MUI_PAGE_DIRECTORY @@ -95,6 +100,10 @@ Section "Cura ${VERSION}" SectionEnd +Function LaunchLink + ExecShell "" "$SMPROGRAMS\Cura ${VERSION}\Cura ${VERSION}.lnk" +FunctionEnd + Section "Install Arduino Drivers" ; Set output path to the driver directory. SetOutPath "$INSTDIR\drivers\"