Skip to content

Commit

Permalink
Added registry key for OKconfig version
Browse files Browse the repository at this point in the history
  • Loading branch information
gardart committed Jan 23, 2019
1 parent 2e7c3a3 commit 3d2cdba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Deploy-Application.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ Try {
## <Perform Post-Installation tasks here>
Stop-ServiceAndDependencies -Name 'nscp'
Copy-File -Path "$dirSupportFiles\*.*" -Destination "$envProgramFiles\NSClient++\"
Copy-File -Path "$dirSupportFiles\Scripts" -Destination "$envProgramFiles\NSClient++" -Recurse
Copy-File -Path "$dirSupportFiles\Scripts" -Destination "$envProgramFiles\NSClient++" -Recurse
Set-RegistryKey -Key 'HKEY_LOCAL_MACHINE\SOFTWARE\OpinKerfi\OKconfig' -Name 'CurrentVersion' -Value $appScriptVersion -Type String -ContinueOnError:$True
Start-ServiceAndDependencies -Name 'nscp'
#Stop-ServiceAndDependencies -Name 'nscp'
#Test-ServiceExists -Name 'nscp' -PassThru | Where-Object {$_ } | ForEach-Object {$_.Delete() }
Expand Down

0 comments on commit 3d2cdba

Please sign in to comment.