Hello, I have created a script

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.
This topic is 3 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
DanielJohnson
Posts: 6
Last visit: Tue Feb 02, 2021 11:54 pm

Hello, I have created a script

Post by DanielJohnson »

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 ?
User avatar
NeilDPetty
Posts: 1
Last visit: Tue Feb 06, 2024 2:11 pm

Re: Hello, I have created a script

Post by NeilDPetty »

This page might help you :

search on serverfault com for how-to-start-a-service-with-certain-start-parameters-on-windowsmeters-on-windows
Sorry I cannot add links in yet:

Unless there is an option to build the script as an exe with an inserted Variable rather than using a parameter.
This topic is 3 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked