Search code examples
installationstartupinstall4j

Install4J - Add a startup executable on Windows and OS X check box for end user


I added "Add a startup executable on Windows and OS X" action to the Finish Screen of my installer. The appplication starts up on reboot and thats good but I want to display a checkbox to end user to select/unselect at finish screen of my installer if user wants to add to startup or not just like desktop shortcuts etc. I am not able to find out how. Can somebody please help me how to achieve this?


Solution

  • Add a "Check box" form component to the "Finish screen" with your question to the user and set its "Variable name" property to "addStartupExecutable".

    Then, set the condition expression of the "Add a startup executable on Windows and OS X" action to

    context.getBooleanVariable("addStartupExecutable")