Archive: 'Run Application Now' option


'Run Application Now' option
I was wondering if someone could tell me how I add a screen at the end of install saying "Run Application Now"? I've seen other NSIS installers do it, but I can't find the command to do it.

Many thanks


Find all what you're asking about and much more on MUI documentation.
You should read it :-)


Thanks for the sarcastic reply, lots of help. It's hard to know what I should be searching for when i don't know what the command is called.... I've also tried searching the forum but again, if "Run now" doesn't return anything useful then what do I search for.


Originally posted by beaglelander
Thanks for the sarcastic reply, lots of help.
Sorry, no mean to be sarcastic at any rate.
The following copied from MUI documentation for your convenience.

MUI_FINISHPAGE_RUN exe_file
Application which the user can select to run using a checkbox. You don't need to put quotes around the filename when it contains spaces.

MUI_FINISHPAGE_RUN_TEXT text
Texts to display next to the 'Run program' checkbox.

MUI_FINISHPAGE_RUN_PARAMETERS parameters
Parameters for the application to run. Don't forget to escape double quotes in the value (use $\").

MUI_FINISHPAGE_RUN_NOTCHECKED
Do not check the 'Run program' checkbox by default

MUI_FINISHPAGE_RUN_FUNCTION function_name
Call a function instead of executing an application (define MUI_FINISHPAGE_RUN without parameters). You can use the function to execute multiple applications or you can change the checkbox name and use it for other things.

Thanks Red, sorry for the short fuse earlier - got some big deadlines to meet so a bit stressed out! I did try searching before posting


Alright mate, your code should look like this:

!define MUI_FINISHPAGE_RUN '$INSTDIR\MyApp.exe'

!define MUI_FINISHPAGE_RUN_TEXT 'text'
# Texts to display next to the 'Run program' checkbox

!define MUI_FINISHPAGE_RUN_PARAMETERS 'parameters'
# Parameters for the application to run.
# Don't forget to escape double quotes in the value (use $\").

!insertmacro MUI_PAGE_FINISH

Got it, works a treat! Thanks again :-)


For future improvements if you intent to install also on Vista
then plz follow this thread:

http://forums.winamp.com/showthread....hreadid=260722