Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I want the installer to create a service. I usually do this manually just by running the command prompt as an Administrator and going to the location of the
.bat
file and typing
service.bat install
Is there a way to execute this batch file inside an installer? If so, how? What do I add to my script? The location of this service file is {the location of my installed app}\bin
and inside there is this service.bat
file that needs to be executed.
To execute a batch file in Inno Setup during installation, use the [Run]
section entry:
[Run]
Filename: "{app}\bin\service.bat"; Parameters: "install"; Flags: runhidden
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.