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
Jun 24, 2021
Hey 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
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
Jun 24, 2021Bronze Contributor
I have tried this but cant figure out where im going wrong!
When creating the intunewin I used the set up file as the install.bat
Any ideas where im going wrong?
- Jun 24, 2021Just like Oliver is advising. ANother possibility would be to create a win32 app..
IN the screenshots you send, the install command is wrong, it should be
VSCodeSetup-ia32-1.57.1.exe /verysilent /norestart /mergetasks=!runcode /log="%temp%\VSCodeInstall.log"- AB21805Jun 24, 2021Bronze ContributorIs it the VSCodeSetup-ia32-1.57.1.exe part I have wrong? I have named it VSCodeUserSetup-ia32-1.57.1.exe as the file is called this when I downloaded it?
Do I need to change the name of the MSI and do over again?- Jun 24, 2021I downloaded und used the x64 installer not the 32-bit version. If you are using the 32-bit version (it is seen on the name VSCodeUserSetup-ia32-*) then you have to adjust the uninstall and install commands.
install:
VSCodeSetup-ia32-1.57.1.exe /verysilent /norestart /mergetasks=!runcode /log="%temp%\VSCodeInstall.log"
uninstall:
"C:\Program Files (x86)\Microsoft VS Code\unins000.exe" /verysilent /norestart
the detection rule should also point to the x86 folder:
"C:\Program Files (x86)\Microsoft VS Code\Code.exe"
best,
Oliver