prevent startmenu entry

Antworten
Gernot
Beiträge: 17
Registriert: 21 Mär 2021, 15:53

prevent startmenu entry

Beitrag 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
Benutzeravatar
SisterOfMercy
Beiträge: 1522
Registriert: 22 Jun 2012, 19:18

Re: prevent startmenu entry

Beitrag 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"
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Antworten