Skip to content
Documentation
Updated 5 minutes to read
Markdown

Step 9: Remove legacy v6 IIS applications and Windows services

Section titled “ Step 9: Remove legacy v6 IIS applications and Windows services”

After Step 8 has verified v7, remove the old Nodinite v6 installation: the v6 Core Services IIS applications and application pools, the v6 Logging and Monitoring Windows services, the old TLS web site, and the v6 agent Windows services. The v7 web sites stay untouched.

First, save the v6 agent folders for Step 13: remove-legacy deletes the services, and with them the record of where each agent was installed.

Terminal window
Get-CimInstance Win32_Service -Filter "Name LIKE 'Nodinite%' AND Name <> 'NodiniteUpdateService'" |
ForEach-Object { Split-Path -Parent ($_.PathName.Trim('"')) } |
Sort-Object -Unique | Set-Content -Path "Nodinite-AgentFolders.txt"

Then, from the root of the extracted agents bundle, preview the removal, and run it:

Terminal window
.\Nodinite.Installer.Cli.exe remove-legacy --config .\nodinite01\config.cli.json --dry-run
.\Nodinite.Installer.Cli.exe remove-legacy --config .\nodinite01\config.cli.json

The command reads the environment name and the Legacy Nodinite 6 environment path from the configuration (Step 1) and runs three phases: it removes the v6 IIS applications, their application pools, and virtual directories; it stops and deletes the old v6 Windows services, including the Logging Service, the Monitoring Service, and the v6 agent services; and, only when you add --delete-files, it deletes the v6 files.

CLI remove-legacy output with three phases
Example of remove-legacy removing the v6 Web Client, Web API, and Log API applications and pools, the v6 Logging and Monitoring Windows services, and skipping file deletion because --delete-files was not specified.

Use this only when you can't run remove-legacy.

Nodinite v6 web applications in IIS Manager
Example of old Nodinite v6 web applications to remove in IIS Manager.

  1. Open IIS Manager on the Nodinite application server and expand Sites.
  2. Find the site hosting the v6 applications, usually Default Web Site.
  3. Remove /Nodinite/ENV/WebClient, /Nodinite/ENV/WebAPI, /Nodinite/ENV/LogAPI, and /NodiniteUpdate/UpdateClient.

IIS application pools including v6-era pools
Example of v6-era IIS application pools to remove after their web applications are deleted.

Remove the v6-era pools, for example Nodinite - %ENVIRONMENTNAME% - Web API, only when they have 0 applications. Never remove a pool that serves a v7 web site.

In v6, a dedicated IIS web site often terminated TLS. In v7, the CLI binds the certificate to each Core Service web site (Step 10: Configure TLS).

  1. In IIS Manager, identify the custom v6 Nodinite TLS web site.
  2. Remove any web applications under it, then remove the site.
  3. Open Bindings on Default Web Site and other sites, and remove bindings that use the Nodinite host name or the old certificate.

Manual Fallback: Remove Old Agent Windows Services

Section titled “Manual Fallback: Remove Old Agent Windows Services”

Use this only when you can't run remove-legacy, or when v6 agent services remain afterwards in services.msc.

The script lists the remaining Nodinite* Windows services, writes a removal script, and saves each service's folder to Nodinite-AgentFolders.txt for Step 13.

Terminal window
try {
$services = Get-Service | Where-Object { $_.Name -like "Nodinite*" -and $_.Name -ne "NodiniteUpdateService" }
} catch {
Write-Warning "Some services could not be queried. Continuing with available services."
$services = @()
}
$outputScript = "Remove-Nodinite-Services.ps1"
Set-Content -Path $outputScript -Value "# Auto-generated script to stop and remove Nodinite Windows services`n"
foreach ($service in $services) {
Add-Content -Path $outputScript -Value "Stop-Service -Name '$($service.Name)' -Force"
Add-Content -Path $outputScript -Value "sc.exe delete '$($service.Name)'`n"
}
$folderPaths = foreach ($service in $services) {
$wmiService = Get-CimInstance Win32_Service -Filter "Name='$($service.Name)'"
if ($wmiService -and $wmiService.PathName) {
Split-Path -Parent ($wmiService.PathName.Trim('"'))
}
}
$folderPaths | Sort-Object -Unique | Set-Content -Path "Nodinite-AgentFolders.txt"
Write-Host "Generated: $outputScript and Nodinite-AgentFolders.txt"
  1. Open Remove-Nodinite-Services.ps1 and Nodinite-AgentFolders.txt, and remove the entries for:
  2. Open PowerShell 7 as administrator and run ./Remove-Nodinite-Services.ps1.
  3. Verify the removal in services.msc.
  • remove-legacy completed, or the v6 applications and pools removed manually
  • NodiniteUpdate removed with Programs and Features
  • Custom v6 TLS web site and old host name bindings removed; host name and certificate subject noted
  • Old v6 agent Windows services removed by remove-legacy, or with the manual fallback (IBM DataPower and Dynamics CRM kept)
  • Nodinite-AgentFolders.txt saved for Step 13

TLS configuration fails because a host name is still bound in IIS. Check the bindings on all IIS sites and remove duplicate host name bindings before you retry Step 10.

IIS reports that the pool still has applications. Remove the remaining applications first, then restart IIS Manager and retry.

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...