File tree Expand file tree Collapse file tree
GitHubVulnerabilities2Db/Scripts
GitHubVulnerabilities2v3/Scripts
VerifyGitHubVulnerabilities/Scripts Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments