Archive: Execute a file


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!!


Where Do you want to open that file? On this it depends where the code for this should be


'Exec' or 'ExecWait' would do the job :D


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? =)


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


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


Ok, thanks Davion!

And what would be the right funktion?

Function .onGUIEnd, .onInit or what?

Thanks appreciate the help!


Think I got it!

Thanks for the help!!