How can we improve the PI Server?

Utility to completely uninstall all OSIsoft PI products from a machine

It would be helping to have a utility do a complete uninstall of all the PI products from a machine including registry keys and hidden files.

3 votes
Sign in
Signed in as (Sign out)

We’ll send you updates on this idea

Soumya BilwarSoumya Bilwar shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

1 comment

Sign in
Signed in as (Sign out)
Submitting...
  • AdiAdi commented  ·   ·  Flag as inappropriate

    This batch file I wrote uninstalls most of the PI client tools and deletes registry entries.
    Taskkill.exe /IM Procbook.exe /f >nul 2>&1
    Taskkill.exe /IM PIDesktopAlert.exe /f >nul 2>&1
    Taskkill.exe /IM Excel.exe /f >nul 2>&1
    Taskkill.exe /IM SMTHost.exe /f >nul 2>&1
    Taskkill.exe /IM PIOLEDBENTAgent64.exe /f >nul 2>&1
    Taskkill.exe /IM PISQLCommander.exe /f >nul 2>&1
    Taskkill.exe /IM AFExplorer.exe /f >nul 2>&1
    Taskkill.exe /IM PISDKUtility.exe /f >nul 2>&1
    Taskkill.exe /IM OSIsoft.PISysTray.exe /f >nul 2>&1
    Taskkill.exe /IM "Collective Manager.exe" /f >nul 2>&1
    Net stop pinetmgr /yes

    Echo Uninstalling previous version of PI tools
    Echo Remove Processbook
    wmic product where "Name like 'PI ProcessBook%%'" call uninstall /nointeractive
    Echo Remove PI Notification
    wmic product where "Name like 'PI Notifications%%'" call uninstall /nointeractive
    Echo Remove PI Datalink
    wmic product where "Name like 'PI DataLink%%'" call uninstall /nointeractive
    Echo Remove PI SMT
    wmic product where "Name like 'PI System Management%%'" call uninstall /nointeractive
    Echo Remove PI Oledb
    wmic product where "Name like 'PI OLEDB%%'" call uninstall /nointeractive
    wmic product where "Name like 'PI ODBC%%'" call uninstall /nointeractive
    Echo Remove PI AFSE
    wmic product where "Name like 'PI AF Client%%'" call uninstall /nointeractive
    del "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\My Software\PI System\PI*.*" /s /f /q
    del "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PI System\PI*.*" /s /f /q

Feedback and Knowledge Base