How to handle package install failure when package is already installed?

How to handle package install failure when package is already installed?

New to EC and using a Gemini for a lot of guidance. 

I have a package I'm deploying. The package installs successfully when it's a new install but in subsequent checkins it shows as failed. I assume because the package has already been installed. The reason given is "Installation Failed - User cancelled installation." but it's a silent install so the user is not cancelling install. I've tested on a few machines already and confirmed that user gets no prompt. When I uninstall the package and it runs again it's successful once and then, again, subsequent check-ins give the error "Installation Failed - User cancelled installation".

What is the best approach to handle this? I tried some powershell scripts as part of pre-deployment to return 0 or 1 but couldn't get that to work. Not sure if that is the best approach and looking for some suggestions and guidance.
      • Sticky Posts

      • Pre-Installed Keeper Password Manager on Windows 10 exposes systems to passwords stealing

        Problem: There's a good reason why security analysts get nervous about bundled third-party software: it can introduce vulnerabilities that the companies can't control.  Google researcher Tavis Ormandy discovered that a Windows 10 image came bundled with a third-party password manager, Keeper, which came with a glaring browser plugin flaw -- a malicious website could steal passwords.  Solution: It is recommended to disable Content Delivery Manager (for PreInstalledApps enabled) using Desktop Central's
      • Find out if your Intel system is vulnerable to Intel SA-00086 vulnerability.

        Beware! This Thanksgiving, Intel decided to talk turkey about a string of vulnerabilities, Intel SA-00086, that external researchers discovered in their chips. Intel released the Intel SA-00086 detection tool that runs on Windows and Linux systems. But what they don’t provide is a solution to automate the detection for multiple computers.  As a system admin it is necessary to run the detection on 1000s of machines in your enterprise network. This can be done in a fraction of seconds with Desktop

                        New to ADSelfService Plus?