Forum Discussion
Uninstall application using intune
Find the install and uninstall command line for the BoxSync software for silent install and uninstall... e.g. boxsync.exe /install /silent or boxsync /uninstall /silent and create your app. The app will check if you have specified a detection method if it is installed and will trigger a uninstall if you do a uninstall assignment.
The samples above are just samples I don't know the correct uninstall command for boxsync. I suggest you search at the vendor FAQ or Manual to get the command line. Otherwise try google there will be for sure someone how knows the command line and posted it somewhere.
Hello,
I just gave it a try.
Detection rule
Rule type: file
C:\Program Files\Box\Box Sync
Detection method: file or folder exists.
Install command:
BoxSyncSetup.exe /install /quiet /norestart
Uninstall command:
MsiExec.exe /X{BFA57077-F78C-4B92-815E-7BCDA6B9686E}
the status message I get is "not installed" and box sync are not removed.
- Nov 20, 2018
Might you be able to share the Agent logfile?
C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\IntuneManagementExtension.log
seems like the detection rule does not work...
- AnonymousNov 20, 2018Correct, detection rule does not work.
<![LOG[[Win32App] Start detectionManager SideCarFileDetectionManager]LOG]!><time="12:01:09.3039743" date="11-20-2018" component="IntuneManagementExtension" context="" type="1" thread="3" file="">
<![LOG[[Win32App] Path doesn't exists: C:\Program Files\Box\Box Sync\Box Sync applicationDetected: False]LOG]!><time="12:01:09.3072059" date="11-20-2018" component="IntuneManagementExtension" context="" type="2" thread="3" file="">
<![LOG[[Win32App] Checked under Path: C:\Program Files\Box\Box Sync, filePath:C:\Program Files\Box\Box Sync\Box Sync, agent was checking under expanded: C:\Program Files\Box\Box Sync\Box Sync, applicationDetected: False]LOG]!><time="12:01:09.3079395" date="11-20-2018" component="IntuneManagementExtension" context="" type="1" thread="3" file="">
the path is correct c:\program files\box\box sync- Nov 20, 2018
It looks like your detection rule definition is wrong. The agent looks for C:\Program Files\Box\Box Sync\Box Sync.
I think this comes from the wrong entry in the field Path.
You should enter in Path: C:\Program Files\Box
and you should enter in File or folder: Box Sync
This will result in the full path: C:\Program Files\Box\Box Sync and not the wrong one from above.
best,
Oliver