1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

One-click uninstall all NI products ?

Discussion in 'General Chat' started by MJ-Guillaume, Aug 17, 2020.

  1. MJ-Guillaume

    MJ-Guillaume NI Product Owner

    Messages:
    26
    Hello,

    I'm troubleshooting an issue with some NI software, and now it's time to try the final step: to wipe all traces of NI software out of my computer, and reinstall them after that.

    The process to uninstall 59 pieces of software one after another from the Windows control panel is a torture for me, so I tried to write a simple Powershell script:
    Code:
    # Look for all Native Instruments installed softwares
    $programmes = Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -like "Native Instruments*"}
    
    # Process each software
    foreach ($programme in $programmes)
    {
        echo $programme
        $programme.Uninstall()
    }
    
    …but it doesn't work. Even running this script in Powershell in admin mode makes no differences, the return value of the Uninstall method is always 1603 instead of 0.

    So, by chance, has anybody already succeeded to do such task ?
     
    Last edited: Aug 17, 2020