Old 9th April 2015, 10:10   #1
Junior Member
Join Date: Apr 2015
Posts: 1
Question How to copy a batch file into .exe setup file?

Dear Sir/Madam,

I don't know about NSIS, but now I need to learn about it in my new job.

I had done to code XML to overwrite to .properties file and replace values in another XML via command >configure (batch file)

Finally, I cannot compile above with .nsi to get an EXE file with batch file inside to execute.
Could you explain or give me an example how can I do?

I'm sorry if my English not good, but I hope you understand me.
If you want to know more info please reply to me.

Thanks in advance,

enjoy_sonic is offline   Reply With Quote
Old 9th April 2015, 16:06   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,332
Use the File instruction to include files in the installer and use ExecWait or one of the exec plugins to execute the batch files.

There is plenty of information about this here on the forum and on stackoverflow, it should not be hard to find.

To actually learn NSIS you should read the entire help file and look at example1.nsi and go from there...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

bat, batch, exe, nsis, xml

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