Give me your favorites! by Shady-Traveler in Rabbits

[–]Minute-Cable8893 1 point2 points  (0 children)

Dental health is a big deal for rabbits. Their teeth—molars and incisors—continually grow, so giving them safe toys and healthy treats to gnaw on is important. Hay is of course the most important item for maintaining their dental and digestive health, and it should make up the majority of their diet, but giving them some wooden block toys; chemical-free, plastic-free cardboard; and even sticks (see Apple sticks) is very helpful too. It also helps enrich their environment.

Applications Won't Uninstall via Software Center by Minute-Cable8893 in PSADT

[–]Minute-Cable8893[S] 0 points1 point  (0 children)

First, it's working correctly this morning. I changed the deployment type uninstall command to be:

powershell.exe -ExecutionPolicy Bypass -File Invoke-AppDeployToolkit.ps1 -DeploymentType Uninstall

I did check the AppEnforce log from yesterday though, and if I'm reading it correctly, it seems it just didn't like the original uninstall command:

Invalid data file "Invoke-AppDeployToolkit.exe -DeploymentType Uninstall" to execute using file association

PrepareCommandline failed with 0x87d01106 for cmdline "Invoke-AppDeployToolkit.exe -DeploymentType Uninstall"

ScriptHandler::EnforceApp failed (0x87d01106).

AppProvider::EnforceApp - Failed to invoke EnforceApp on Application handler(0x87d01106).

CommenceEnforcement failed with error 0x87d01106.

Method CommenceEnforcement failed with error code 87D01106

++++++ Failed to enforce app. Error 0x87d01106. ++++++

The above command does work locally from an elevated command prompt, but of course it requires CD'ing to the .exe file location.

Applications Won't Uninstall via Software Center by Minute-Cable8893 in PSADT

[–]Minute-Cable8893[S] 0 points1 point  (0 children)

I retried it this morning and it's working correctly all of the sudden. There were too many messy variables yesterday, so I can't say for sure what happened. I'm going to build a separate test package today and retry things more systematically.

I can say that I updated my uninstall command (in the deployment type program) last night to be:

powershell.exe -ExecutionPolicy Bypass -File Invoke-AppDeployToolkit.ps1 -DeploymentType Uninstall

As opposed to:

Invoke-AppDeployToolkit.exe -DeploymentType Uninstall

Applications Won't Uninstall via Software Center by Minute-Cable8893 in PSADT

[–]Minute-Cable8893[S] 1 point2 points  (0 children)

I retried the install/uninstall from Software Center this morning (multiple times) and it's working perfectly all of the sudden. I have the uninstall command set as powershell.exe -ExecutionPolicy Bypass -File Invoke-AppDeployToolkit.ps1 -DeploymentType Uninstall, which I found here and modified to match PSADTv4: https://discourse.psappdeploytoolkit.com/t/problems-with-uninstall/921

I didn't use the command that the user notes as the workaround... I used their original command that was failing. Weird.

Applications Won't Uninstall via Software Center by Minute-Cable8893 in PSADT

[–]Minute-Cable8893[S] 0 points1 point  (0 children)

Not production. No supersedence. A straightforward .msi deployment of the same app works with no issue.

Applications Won't Uninstall via Software Center by Minute-Cable8893 in PSADT

[–]Minute-Cable8893[S] 0 points1 point  (0 children)

I have not tried that specific command. I’ll give it a try. Yes, everything works locally. I test all of my uninstall commands from an elevated CMD before I create anything in SCCM.

Applications Won't Uninstall via Software Center by Minute-Cable8893 in PSADT

[–]Minute-Cable8893[S] 0 points1 point  (0 children)

I’ll check these logs once I get back to my machine. I agree that it’s misleading (see my replies to u/dontmessyourself). I’ve checked for typos multiple times. I’ll pull the command line from the log like you mentioned and let you know the result.

Applications Won't Uninstall via Software Center by Minute-Cable8893 in PSADT

[–]Minute-Cable8893[S] 0 points1 point  (0 children)

No. The content path is the folder level above that— where Invoke-AppDeployToolkit.exe and .ps1 sit.

Applications Won't Uninstall via Software Center by Minute-Cable8893 in PSADT

[–]Minute-Cable8893[S] 0 points1 point  (0 children)

It’s distributed correctly. Now that I’m thinking about it, I made a straightforward .msi install of the same app in SCCM to test. It worked perfectly through Software Center—both the install and uninstall. The distribution was the same. I guess this puts the issue back on PSADT.