Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Pass image parameters to InstallService #1

Merged
merged 1 commit into from
Feb 3, 2016

Conversation

cwegener
Copy link
Contributor

@cwegener cwegener commented Feb 2, 2016

Description: Make InstallService a variadic function to allow passing of image parameters through to (*Mgr).CreateService

Example snippet:

params := []string{"-config", "C:\\my.conf"}
err := winsvc.InstallService("C:\\svc.exe", "SvcName", "Svc Desc", params...)

Since InstallService has been turned into a variadic function, the following call to InstallService still works fine:

err := winsvc.InstallService("C:\\svc.exe", "SvcName", "Svc Desc")

chai2010 added a commit that referenced this pull request Feb 3, 2016
Feature - Pass image parameters to InstallService
@chai2010 chai2010 merged commit 7be3e98 into chai2010:master Feb 3, 2016
@chai2010
Copy link
Owner

chai2010 commented Feb 3, 2016

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants