Forum Discussion
AB21805
Jun 23, 2021Bronze Contributor
installing visual studio code via intune
Hi all, Im struggling to install visual studio code exe via intune! Any suggestions on how I can do this? MSIs are easy but exes Im struggling! Thanks in advance
- Jun 24, 2021Hey AB21805,
package the x64 installer into a .intunewin file with the tool "Microsoft Win32 Content Prep Tool"
https://github.com/microsoft/Microsoft-Win32-Content-Prep-Tool
and use this for the install command:
VSCodeSetup-x64-1.57.1.exe /verysilent /norestart /mergetasks=!runcode /log="%temp%\VSCodeInstall.log"
and this for the uninstall command:
"C:\Program Files\Microsoft VS Code\unins000.exe" /verysilent /norestart
The detection method should check for file exists:
"C:\Program Files\Microsoft VS Code\Code.exe"
best,
Oliver
AB21805
Bronze Contributor
Hi, just a quick one and maybe quite obvious but how do you know the location of the uninstall/install and the file name of the uninstall? Is this simply because you download it locally first?
Jun 25, 2021
Correct, I did a quick install in the Windows Sandbox to check out path etc. 👍
- AB21805Jun 25, 2021Bronze Contributorill check it out!