This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function Install-Service { | |
| param( | |
| [Parameter(Mandatory=$true)][string]$NSSMPath, | |
| [Parameter(Mandatory=$true)][string]$serviceName , | |
| [Parameter(Mandatory=$true)][string]$serviceExecutable , | |
| [Parameter(Mandatory=$false)][string]$serviceExecutableArgs , | |
| [Parameter(Mandatory=$false)][string]$serviceAppDirectory, | |
| [Parameter(Mandatory=$false)][string]$serviceDescription | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2018/03/23 16:02:11 [INFO] Packer version: 1.2.1 | |
| 2018/03/23 16:02:11 Packer Target OS/Arch: windows amd64 | |
| 2018/03/23 16:02:11 Built with Go Version: go1.10 | |
| 2018/03/23 16:02:11 Using internal plugin for digitalocean | |
| 2018/03/23 16:02:11 Using internal plugin for googlecompute | |
| 2018/03/23 16:02:11 Using internal plugin for oneandone | |
| 2018/03/23 16:02:11 Using internal plugin for parallels-pvm | |
| 2018/03/23 16:02:11 Using internal plugin for vmware-iso | |
| 2018/03/23 16:02:11 Using internal plugin for amazon-chroot | |
| 2018/03/23 16:02:11 Using internal plugin for azure-arm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires -Version 7 | |
| # Version 1.0.7 | |
| # check if newer version | |
| $gistUrl = "https://api.github.com/gists/569c2288c015150eba622e860a4a6d2b" | |
| $latestVersionFile = Join-Path -Path ~ -ChildPath ".latest_profile_version" | |
| $versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)" | |
| if (Test-Path $latestVersionFile) { |