miakki
24th May 2004 06:40 UTC
Execute a file
Hi all!
This is probably an easy one;
I have made an NSIS-installer using Venis, but I'll have to add one thing. I need the installer to execute a file. This file is included in the installer. (It's an .exe that will open up a litle proggie)
What are the correct code to do this?
And where do I place this code in the .nsi? (If that matters)
I would really appreciate some help here, as you might have noticed I'm an total beginner..
Thanks!!
Davion
24th May 2004 06:55 UTC
Where Do you want to open that file? On this it depends where the code for this should be
ovidiu
24th May 2004 06:57 UTC
'Exec' or 'ExecWait' would do the job :D
miakki
24th May 2004 06:59 UTC
I would just like for the file to be lauched, during or after the installation (I guess that it can't be open prior installation since it's in the setup.exe)
Makes any sense? =)
miakki
24th May 2004 07:03 UTC
Well..
This is what I did put in the end of my script, didn't work tough..
------------------------------
Function .onGUIEnd
Execwait "$INSTDIR\thefile.exe"
FunctionEnd
BrandingText "Nullsoft Install System v2.0"
; eof
Davion
24th May 2004 07:20 UTC
I don't know what doesn't work, but what about using only exec cause execwait waits until its executed before the installer ends I think
miakki
24th May 2004 07:32 UTC
Ok, thanks Davion!
And what would be the right funktion?
Function .onGUIEnd, .onInit or what?
Thanks appreciate the help!
miakki
24th May 2004 07:35 UTC
Think I got it!
Thanks for the help!!