Creating a service with parameters

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Post Reply
User avatar
TonySpeight
Posts: 5
Joined: Wed Dec 13, 2017 9:13 am

Creating a service with parameters

Post by TonySpeight »

Hello, I have created a script which works just as I want as an exe. To run as an exe you need to provide a parameter to the install location of XML files. I want to create this as a service and when i have the service will only start the exe. How can I configure the MSI build to start my service as C:\MyCustom.exe -Param C:\Temp ?

jvierra
Posts: 14672
Joined: Tue May 22, 2007 9:57 am
Answers: 6
Has voted: 1 time
Been upvoted: 5 times
Contact:

Re: Creating a service with parameters

Post by jvierra »

This post will explain how to do this:

https://serverfault.com/questions/14336 ... ows/143409

Post Reply