Forum Discussion
C0nstructi0nITGuy
Mar 14, 2022Copper Contributor
Intune Package uninstall failure on uninstall assignment
Hello,
I'm new to this community. Having an issue with Intune and the uninstall assignment with a particular program. Up till now its all been pretty straight forward, write up a batch installer/ uninstaller, package the app, assign the install uninstall commands, and then publish to Intune.
The issue is with Bluebeam Revu 18. The company provides an uninstall script but it does not seem to be working in Intune. When you package it up and go to test on the test environment, it keeps failing the uninstall. I was wondering if there were limitations to the amount of commands Intune could run during the uninstall process or if there are certain commands that cant be run. Please see the script below.
__________________________________________________________________________________________
TASKKILL /F /IM "BBPrint.exe"
REM If upgrading 10.0 or 10.1, and you installed to a custom path, please fix the INSTALLDIR path below:
SET INSTALLDIR=%ProgramFiles%\Bluebeam Software\Bluebeam Revu
SET ADMINPATH=Pushbutton PDF\PbMngr5.exe
SET VUADMINPATH=Bluebeam Vu Admin.exe
SET WCV=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\InstallShield
SET WCV64=HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\InstallShield
SET WCVF=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders
SET WGF=%WINDIR%\Installer
SET ISII=%ProgramFiles%\InstallShield Installation Information
SET ISII64=%ProgramFiles(x86)%\InstallShield Installation Information
SET UNINSTALLKEY=HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall
REM On 64-bit systems, eXtreme registers in the 32-bit node in the registry.
SET UNINSTALLKEY64=HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
REM ==========================================
REM Bluebeam v18 Base Release 18.7.0
REM ==========================================
REM Uninstall Bluebeam Revu 18.7.0:
SET GUID={17F7A5C6-E209-4A58-B902-46AF8363C2E4}
REG QUERY %UNINSTALLKEY%\%GUID%>nul 2>nul
IF "%ERRORLEVEL%"=="0" msiexec.exe /x %GUID% /qn
REM Uninstall Bluebeam Revu 18.7.0 x64:
SET GUID={5682AD5E-66AD-4267-93CC-8D90CD78EF4E}
REG QUERY %UNINSTALLKEY%\%GUID%>nul 2>nul
IF "%ERRORLEVEL%"=="0" msiexec.exe /x %GUID% /qn
REM ==========================================
REM Bluebeam v18 Base Release 18.2.1 (Japan)
REM ==========================================
REM Uninstall Bluebeam Revu 18.2.1:
SET GUID={30E3091F-7AAF-42CD-88A8-227E698ABF06}
REG QUERY %UNINSTALLKEY%\%GUID%>nul 2>nul
IF "%ERRORLEVEL%"=="0" msiexec.exe /x %GUID% /qn
REM Uninstall Bluebeam Revu 18.2.1 x64:
SET GUID={459B4880-C6AB-4076-989E-6F190ABB2066}
REG QUERY %UNINSTALLKEY%\%GUID%>nul 2>nul
IF "%ERRORLEVEL%"=="0" msiexec.exe /x %GUID% /qn
REM ==========================================
REM Bluebeam v18 Base Release 18.0.3
REM ==========================================
REM Uninstall Bluebeam Revu 18.0.3:
SET GUID={6F6332BC-7C57-4611-B433-8E90955BF6D5}
REG QUERY %UNINSTALLKEY%\%GUID%>nul 2>nul
IF "%ERRORLEVEL%"=="0" msiexec.exe /x %GUID% /qn
REM Uninstall Bluebeam Revu 18.0.3 x64:
SET GUID={7F5E49F6-A466-4553-B9E0-53D7380944E3}
REG QUERY %UNINSTALLKEY%\%GUID%>nul 2>nul
IF "%ERRORLEVEL%"=="0" msiexec.exe /x %GUID% /qn
REM ==========================================
REM Bluebeam v18 Beta 2
REM ==========================================
REM Uninstall Bluebeam Revu 18.0.2:
SET GUID={56465A31-194B-42A9-B0BB-30FE23A69EEA}
REG QUERY %UNINSTALLKEY%\%GUID%>nul 2>nul
IF "%ERRORLEVEL%"=="0" msiexec.exe /x %GUID% /qn
REM Uninstall Bluebeam Revu 18.0.2 x64:
SET GUID={6C5C5113-BEA3-4D55-B55F-0FDD033AE159}
REG QUERY %UNINSTALLKEY%\%GUID%>nul 2>nul
IF "%ERRORLEVEL%"=="0" msiexec.exe /x %GUID% /qn
REM ==========================================
REM Bluebeam v18 Beta 1
REM ==========================================
REM Uninstall Bluebeam Revu 18.0.1:
SET GUID={AF5E7F9C-5B10-42CE-8461-BB3D8376D80E}
REG QUERY %UNINSTALLKEY%\%GUID%>nul 2>nul
IF "%ERRORLEVEL%"=="0" msiexec.exe /x %GUID% /qn
REM Uninstall Bluebeam Revu 18.0.1 x64:
SET GUID={B3AAB52B-0671-42A4-8024-132218BD759F}
REG QUERY %UNINSTALLKEY%\%GUID%>nul 2>nul
IF "%ERRORLEVEL%"=="0" msiexec.exe /x %GUID% /qn
REM ==========================================
REM Bluebeam v18
REM ==========================================
REM Uninstall Bluebeam Revu 18.0.0:
SET GUID={E6F96FCB-B7DC-4773-8D4C-439DF2715FE2}
REG QUERY %UNINSTALLKEY%\%GUID%>nul 2>nul
IF "%ERRORLEVEL%"=="0" msiexec.exe /x %GUID% /qn
REM Uninstall Bluebeam Revu 18.0.0 x64:
SET GUID={14059DC8-0F22-4FC3-BED7-1E23BD5C01EA}
REG QUERY %UNINSTALLKEY%\%GUID%>nul 2>nul
IF "%ERRORLEVEL%"=="0" msiexec.exe /x %GUID% /qn
- And there's nothing in the logs with more information about this? C:\ProgramData\Microsoft\IntuneManagementExtension\Logs
- C0nstructi0nITGuyCopper Contributorgot it figured out, it was an issue in my detection rules. Harm mentioned the log files, upon review I was getting errors for detection errors. Thanks for the help everyone.
- salperez717Copper Contributor
I know this is old, but if you don't mind me asking what detection rules did you use? I am having a similar issue.C0nstructi0nITGuy
- Good to hear, logs are always important 😉
- Mmmm.. In the script it's searches for the x64 of 32 bits variant... What happens when you try to launch a 32 bits version of powershell on your device and try to do the same. (as I am assuming you just used the x64 version. What happens when you try to launch
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe and try to launch that script
As the IME is 32bits... And you are mentioned you packaged it....
Just wondering what happens - Mr_HelaasSteel ContributorHi,
Did you run the script locally from a specific directory?
Is this script copied to the uninstalling command or is the uninstall script located in your package?
Is the uninstalling script copied to your local disk?
Kind regards,
René - There's no real limit, perhaps in time if the uninstall takes too long... But if you run it part-by-part in a admin prompt on a machine on which the software is installed? Just to see where it fails?
- C0nstructi0nITGuyCopper ContributorThats the thing though, the script runs fine on the virtual environment. It is only failing over in Intune.
- And you put all the lines of code above in a uninstall.cmd and it does nothing or something?