user2895359
user2895359

Reputation: 37

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?

Upvotes: 1

Views: 601

Answers (1)

Ingo Kegel
Ingo Kegel

Reputation: 48105

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")

Upvotes: 1

Related Questions