/build/static/layout/Breadcrumb_cap_w.png

Remove shortcuts of Java in start menu

Hello,
How can i remove shortcuts in start menu for java 1.7.0-45
(i use installshild )

Thank you


0 Comments   [ + ] Show comments

Answers (3)

Posted by: indierox 9 years ago
Second Degree Green Belt
1
See Jaybee's answer - this worked well for me.

www.itninja.com/question/java-jre-7-40

You can add a Custom Action (1122) to your Transform file, where you run this command:

cmd.exe /C rmdir "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Java" /S

to remove the Start Menu shortcuts. In the InstallUIExecuteSequence table you set the Sequence ID of this Custom Action to '3183'. Which is then between the InstallJava custom action (3181), which apparently create these shortcuts, and InstallFinalize (3185 - See more at: http://www.itninja.com/question/java-jre-7-40#sthash.wBBNfzkJ.dpuf

Posted by: anonymous_9363 7 years ago
Red Belt
0
>What would need to be added to this to make it where the folder is deleted from start menu?
Nothing. It can't be done with arguments to MSIEXEC. You would need to either do the deletion within a command file (as per indierox's answer) or add a Custom Action to a transform.

I would strongly recommend that you use a transform, particularly as you'll probably want to deploy the two, er, deployment files if for no other reason than to prevent the brain-dead "out-of-date" messages that your users will eventually receive. These two files are documented to death here and elsewhere. Use system-level files rather than user-level files, unless you want to get into even more complication with Active Setup, etc., etc.
Posted by: anonymous_9363 9 years ago
Red Belt
0
You'll no doubt be aware that the installing MSI is merely a container for a ZIP and a CA to extract the content of that ZIP so editing the Shortcut table - the usual route - won't help as it doesn't exist!

Long and short? Whatever method you use to execute the MSI will need to be amended to include a step to remove the shortcuts, be that CMD, VBS, PS, whatever.

Comments:
  • I know this is old but what would the command line be?
    I currently use this as my install file command
    msiexec.exe /qb- /l"vx%LogPath%\Java.log REBOOT=ReallySupress UILEVEL=67 ALLUSERS=2 JAVAUPDATE=0 /l jre....msi

    What would need to be added to this to make it where the folder is deleted from start menu? - jokerZwild 7 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ