Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, April 20, 2017 3:05 PM
I am attempting to uninstall Audacity and lame using a batch file. It fails with the following errors in the AppEnforce.log file:
Invalid executable file "audacity-uninstall.bat"
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 User Experience is configured with the following settings:
Installation behavior: install for system
Logon requirement: Whether or not a user is logged on
Installation program C:\Program Files (x86)\Audacity\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
REM uninstall command for LAME mp3 encoding library 3.99.3:
start /wait "C:\Program Files (x86)\Lame For Audacity\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART
Thanks for the Help.
All replies (6)
Thursday, April 20, 2017 3:07 PM | 1 vote
The batch file did not come through correctley:
@ECHO OFF
REM uninstall command for version 2.1.3:
start /wait "C:\Program Files (x86)\Audacity\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
REM uninstall command for LAME mp3 encoding library 3.99.3:
start /wait "C:\Program Files (x86)\Lame For Audacity\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART
Thursday, April 20, 2017 3:58 PM
I modified the batch file as that one had errors. The batch file runs correctly when I run it on the computer locally from a command prompt logged on as local/system. Still getting same error when run from software center.
Update batch file:
@ECHO OFF
REM uninstall command for version 2.1.3:
"C:\Program Files (x86)\Audacity\unins000.exe" /silent
REM uninstall command for LAME mp3 encoding library 3.99.3:
"C:\Program Files (x86)\Lame For Audacity\unins000.exe" /silent
Thursday, April 20, 2017 4:32 PM
You could simply do it like this without .bat file, for both of the apps:
Also, what's your detection method? I think you could use the existence of unins000.exe like this:
Notice that in my example, Program Files is called through variable and to point that to the correct place (architecture), I have the redirection check-box checked on the deployment type and on the detection method.
If you need to wrap both uninstallations into one, I'd choose to use PowerShell instead with Start-Process -cmdlet.
Friday, April 21, 2017 3:28 PM
I recreated the deployment and decided to use a dependency for Lame. When I attempt to install the app it fials with the following errors:
Method EnforceApp failed with error 87D01106
CAppProvider::ExecMethodAsync failed. Error 87d01106
Friday, April 21, 2017 3:28 PM
It works without the dependency.
Friday, April 21, 2017 3:41 PM
It works without the dependency.
Note that the dependency chain does not work for uninstallation, it only works for installations. And if your installation works without the dependency, then try correcting the deployment type and detection method for the dependency. And like I said earlier, if you really want this all to work without two separate applications, wrap 'em up correctly (I'd prefer PowerShell), use the correct detection method, TEST, TEST and TEST (both the installation and the uninstallation).