Search code examples
batch-filensis

Running console app with parameters from NSIS installer


I am creating one installer for my project. Deployment of project needs some changes that are too complex with NSIS.

So for making it easy I have written one console app in C#. This app will do all the complex changes required with use of some parameters.

I just want to ask what is the way to call this console app with some parameters from my installer?

Is it possible by creating some batch file or what?


Solution

  • ExecWait '"$instdir\myapp.exe" /foo "hello world" /bar' is the basic method.

    Use nsExec if you want to hide the console window and ExecDos or ExecCmd if you need more control...