Skip to content

Uninstall Printix #3

Description

@Johan-Claesson

Hello, had an issue at a customer, so used some inspiration from your script. However, most of the devices needed the following to get the uninstaller to get the job done:

$uninstallerPath = "C:\Program Files\printix.net\Printix Client\unins000.exe"
if (Test-Path $uninstallerPath) {
    Log-Message "Uninstalling existing Printix Client version $currentVersion..."
    Start-Process -FilePath $uninstallerPath -ArgumentList "/verysilent" -Wait
    Log-Message "Printix Client uninstalled successfully."
    Remove-Item -Path "C:\ProgramData\printix.net\" -Recurse -Force
    Remove-Item -Path "HKLM:\SOFTWARE\printix.net\" -Recurse -Force
    Remove-Item -Path "C:\Program Files\printix.net\" -Recurse -Force
}

Get-Process -Name "msiexec" | Stop-Process -force
Get-Process -name "*printix*" | Stop-Process -Force
Get-Service "msiserver" | Stop-Service -Force

I will now convert all of our printix-installations to your script as it seems to work much better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions