On Mon, Feb 7, 2011 at 3:16 PM, Clinton Stimpson <span dir="ltr"><<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Monday, February 07, 2011 01:10:28 pm Crni Gorac wrote:<br>
> Is it possible, on Windows and with NSIS back-end for CPack, to have<br>
> small check-box on the last page of the installer that would, if<br>
> checked, cause the installed application to be launched after the<br>
> installation completed?<br>
<br>
</div>I'm not sure if you can use the default NSIS template, but you should be able<br>
to with your own.<br>
<div class="im"><br>
> If not, is it then possible somehow with<br>
> CPack/NSIS to unconditionally launch the application after the<br>
> installation completed?<br>
><br>
<br>
</div>install(PROGRAMS ${myprog} DESTINATION bin)<br>
SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS "ExecWait<br>
'\\\"$INSTDIR\\\\bin\\\\${myprog}\\\"'")<br>
<font color="#888888"><br>
--<br>
Clinton Stimpson<br>
Elemental Technologies, Inc<br>
Computational Simulation Software, LLC<br>
<a href="http://www.csimsoft.com" target="_blank">www.csimsoft.com</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br><br>The commit to fix this bug is in the 2.8.4-rc2 release candidate:<br><a href="http://public.kitware.com/Bug/view.php?id=11144">http://public.kitware.com/Bug/view.php?id=11144</a><br>
<br>With it, you can set CPACK_NSIS_MUI_FINISHPAGE_RUN to an executable in your installation directory, and it will generate a page with a checkbox on it, giving the end user the choice of running or not running...<br><br>