Skip to content

Commit be765f4

Browse files
authored
Merge pull request #9876 from NuGet/dev
[ReleasePrep][2024.03.21] RI dev to main
2 parents bd5dbd7 + 08c104b commit be765f4

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/AccountDeleter/Scripts/Functions.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ Function Install-NuGetService() {
2121

2222
Write-Host Installing service $ServiceName...
2323

24-
$installService = "nssm install $ServiceName $ScriptToRun"
25-
cmd /C $installService
24+
& .\nssm.exe install $ServiceName $ScriptToRun
2625

2726
Set-Service -Name $ServiceName -DisplayName "$ServiceTitle - $ServiceName" -Description "Runs $ServiceTitle." -StartupType Automatic
2827
sc.exe failure $ServiceName reset= 30 actions= restart/5000

src/GitHubVulnerabilities2Db/Scripts/Functions.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ Function Install-NuGetService() {
2121

2222
Write-Host Installing service $ServiceName...
2323

24-
$installService = "nssm install $ServiceName $ScriptToRun"
25-
cmd /C $installService
24+
& .\nssm.exe install $ServiceName $ScriptToRun
2625

2726
Set-Service -Name $ServiceName -DisplayName "$ServiceTitle - $ServiceName" -Description "Runs $ServiceTitle." -StartupType Automatic
2827
sc.exe failure $ServiceName reset= 30 actions= restart/5000

src/GitHubVulnerabilities2v3/Scripts/Functions.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ Function Install-NuGetService() {
2121

2222
Write-Host Installing service $ServiceName...
2323

24-
$installService = "nssm install $ServiceName $ScriptToRun"
25-
cmd /C $installService
24+
& .\nssm.exe install $ServiceName $ScriptToRun
2625

2726
Set-Service -Name $ServiceName -DisplayName "$ServiceTitle - $ServiceName" -Description "Runs $ServiceTitle." -StartupType Automatic
2827
sc.exe failure $ServiceName reset= 30 actions= restart/5000

src/VerifyGitHubVulnerabilities/Scripts/Functions.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ Function Install-NuGetService() {
2121

2222
Write-Host Installing service $ServiceName...
2323

24-
$installService = "nssm install $ServiceName $ScriptToRun"
25-
cmd /C $installService
24+
& .\nssm.exe install $ServiceName $ScriptToRun
2625

2726
Set-Service -Name $ServiceName -DisplayName "$ServiceTitle - $ServiceName" -Description "Runs $ServiceTitle." -StartupType Automatic
2827
sc.exe failure $ServiceName reset= 30 actions= restart/5000

0 commit comments

Comments
 (0)