Seite 1 von 1
prevent startmenu entry
Verfasst: 06 Jul 2021, 08:07
von Gernot
Is there a possibility to prevent automatically generated startmenu entry at the installation of Visual Studio Code?
Code: Alles auswählen
[WinBatch_Setup]
"%ScriptPath%\data\VSCodeSetup-x64-1.57.1.exe" /VERYSILENT /NORESTART /MERGETASKS=!runcode
Re: prevent startmenu entry
Verfasst: 14 Jul 2021, 14:56
von SisterOfMercy
That is an innosetup installer.
Run it on a testmachine with /SAVEINF=c:\visualcode.inf
Afterwards you have a visualcode.inf file which you can modify. Set NoIcons to 1. And remove the desktopicon task. Also remove the install directory, as this is not needed. Example:
Code: Alles auswählen
[Setup]
Lang=en
Group=MPC-HC x64
NoIcons=1
SetupType=custom
Components=main,mpciconlib
Tasks=
This is what you then put in the opsi script. (of course you have to define $InstallDir64$, but I assume you use one of the templates)
Code: Alles auswählen
[Winbatch_install_64]
"%ScriptPath%\files\MPC-BE-x64.exe" /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /DIR="$InstallDir64$" /LOADINF="%ScriptPath%\files\mpc64.inf"