Skip to content
⌘ NSIS Forum Archive

How to copy a batch file into .exe setup file?

2 posts

enjoy_sonic#

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,

Joy.
Anders#
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...