chiark / gitweb /
Execute cura after installing.
authordaid303 <daid303@gmail.com>
Thu, 4 Oct 2012 12:39:03 +0000 (14:39 +0200)
committerdaid303 <daid303@gmail.com>
Thu, 4 Oct 2012 12:39:03 +0000 (14:39 +0200)
scripts/win32/installer.nsi

index 899b103fdb0b7fedfae97616554d195df4804a79..e0f0f828511be0840c29aca3fc87a385dcef3411 100644 (file)
@@ -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\"