Skip to content
⌘ NSIS Forum Archive

Execute a file

8 posts

miakki#

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!!
miakki#
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#
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#
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#
Ok, thanks Davion!

And what would be the right funktion?

Function .onGUIEnd, .onInit or what?

Thanks appreciate the help!