Forum Discussion
Uninstall application using intune
Hi,
that should be possible, package the Box Sync software via Intune Win32 support (.intunewin) and specify the uninstall command line correctly. As a detection rule use something to identify if it is installed like .exe file in the Program path, then target with assignment "uninstall" to you devices where it is actually installed and this should trigger the uninstall. I can't see why this should not work.
best,
Oliver
- DeetrainFeb 25, 2020Copper Contributor
Oliver KieselbachHi Oliver,
I have a set of application of exe files, convert them into intunewin, unfortunately it doesnt automatically populate the install and uninstall command. I tried looking at the vendors and finding an msi to convert for these applications but no luck there. What do you think I should do?
- markhazzy1970Oct 28, 2021Copper Contributor
Deetrain What we do is create a batch file to install exe's works well and saves having to find the string
And convert the batch file to Intune win and set that as the install/uninstall commands
- FrozeninsaneMar 26, 2025Copper Contributor
Hellomarkhazzy1970 do you mind sharing an example of a batch file that installs exe files?
- Feb 26, 2020
Hey Deetrain,
actually this is a typical software packaging task. You need to find the install parameters yourself, exactly speaking the silent install parameters and then construct the install and uninstall command line. This can be a tricky task sometimes. Typically you would look at the vendors docs to find any hints for silent install or search the internet for the software and silent install command (often someone else had the same problem before and posted it in some forum). Next, if this leads to no success, you would like to find out which installer they are using, even when it is an exe file they are often Nullsoft, InstallShield etc. installers. When you get to know which installer it is, it is pretty easy to lookup the silent switches for these installers online. If that doesn't help it really gets tricky, then you have to reverse engineer the setup but there is no recipe how to do that... normally professional software packaging services have their ways for analyzing but yeah this can be tricky then.
best,
Oliver
- computernations63Mar 11, 2020Copper Contributor
When trying to find the uninstall information for software packages I typically install the software on a test machine and then go to the registry to get the uninstall information that you will need for the Intune uninstall command.
This registry location is a good place to get software installation/uninstallation information from computer with existing software to build Intune apps. Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
You should see folders here that represent the software packages that have been installed. Look for the UnintallString key and you should see the information that you need for the uninstall command. You will also find lots of other useful information about the software here as well.
- AnonymousNov 15, 2018
Hello Oliver,
I uploaded BoxSync trhough Win32.
I am at the stage where I need to fill in install command and Uninstall Command and both field are required.
What should I type in there?- Nov 19, 2018
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.
- AnonymousNov 20, 2018
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.