Old 23rd July 2005, 21:14   #1
cellplex
Junior Member
 
Join Date: Jul 2005
Posts: 2
passing parameters to app in MUI_FINISHPAGE_RUN

Hi all, is there a way to pass some parameters to my application. These are working fine for creating the shortcuts with the installer as below

CreateShortCut "$SMPROGRAMS\Bla Bla \linky.lnk" "$INSTDIR\app.exe" " --opt t" "$INSTDIR\VC.ico"

But when it comes to launching the app with MUI_FINISHPAGE_RUN I can't seem to find the correct syntax to get the app to run or not cause the compiler to fail.

This one fails to launch the application
!define MUI_FINISHPAGE_RUN "$INSTDIR\app.exe --opt t"

This one causes the compiler to choke.
!define MUI_FINISHPAGE_RUN "$INSTDIR\app.exe" " --opt t"


Any help in getting the above lines correct so that "--opt t" is added to the app.exe when launched at the end of the installation?

Many thanks for your time.
cellplex is offline   Reply With Quote
Old 23rd July 2005, 21:34   #2
ZmAn3
Senior Member
 
Join Date: Oct 2003
Posts: 178
can you have it launch the lnk file instead?
ZmAn3 is offline   Reply With Quote
Old 23rd July 2005, 22:10   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Use MUI_FINISHPAGE_RUN_PARAMETERS.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump