Skip to content

Commit

Permalink
Registry path changed and Readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
gardart committed Jan 23, 2019
1 parent 3d2cdba commit 6a235e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Deploy-Application.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ Try {
[string]$appArch = ''
[string]$appLang = 'EN'
[string]$appRevision = '01'
[string]$appScriptVersion = '1.0.1'
[string]$appScriptDate = '21/03/2018'
[string]$appScriptVersion = '1.0.2'
[string]$appScriptDate = '23/01/2019'
[string]$appScriptAuthor = 'Gardar Thorsteinsson<gardart@gmail.com>'
##*===============================================
## Variables: Install Titles (Only set here to override defaults set by the toolkit)
Expand Down Expand Up @@ -176,10 +176,10 @@ Try {
Stop-ServiceAndDependencies -Name 'nscp'
Copy-File -Path "$dirSupportFiles\*.*" -Destination "$envProgramFiles\NSClient++\"
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

# Update registry key for Adagios agent version (OKconfig version)
Set-RegistryKey -Key 'HKEY_LOCAL_MACHINE\SOFTWARE\OpinKerfi\Adagios' -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() }

## Display a message at the end of the install
If (-not $useDefaultMsi) { Show-InstallationPrompt -Message 'Installation completed successfully. Remember to add the ip address of your Nagios server to the "allowed hosts" variable located in the file $envProgramFiles\NSClient++\allowed_hosts.ini. At last, restart the NSClient++ service.' -ButtonRightText 'OK' -Icon Information -NoWait }
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Project website is at http://adagios.org
## Installation

### Download this repo as zip file to your windows server
https://github.com/gardart/nagios-nsclient-install/archive/master.zip
https://github.com/opinkerfi/adagios-agent-windows/archive/master.zip

### Install with Powershell
```
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri "https://github.com/gardart/adagios-agent-windows/archive/master.zip" -outfile "$env:TEMP\master.zip" -Verbose
Invoke-WebRequest -Uri "https://github.com/opinkerfi/adagios-agent-windows/archive/master.zip" -outfile "$env:TEMP\master.zip" -Verbose
Expand-Archive -Path "$env:TEMP\master.zip" -DestinationPath "$env:TEMP" -Force -Verbose
& "$env:TEMP\adagios-agent-windows-master\Deploy-Application.exe"
```
Expand Down

0 comments on commit 6a235e7

Please sign in to comment.