/build/static/layout/Breadcrumb_cap_w.png

Delete Java folder in Start Menu

I am trying to remove the Java folder under Start Menu for Java 7u71 but I´t wont work.
I am using Orca to edit my mst. 

Added a Custom Action table
Action : DeleteUpdateShortcut
Type: 1122        (have tried 98 also)
Source: SystemFolder
Target: cmd.exe /C rmdir "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Java" /S

And then in the InstallExecuteSequence table
Action : DeleteUpdateShortcut
Sequence:3183

In the in the InstallExecuteSequence table yhe"InstallFinalize" is  sequence 3185.

But it wont work. Am I choosing the wrong sequence numbers?

My other setting are:

AUTOUPDATECHECK - Java Update mechanism – till off {0}
JAVAUPDATE till 0
JU till 0


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: EdT 9 years ago
Red Belt
0
You should run this custom action after InstallFinalise, as changes are not made to the system until InstallFinalize is reached (In a simplistic sense - I won't bore you with the details).  The other thing to check is whether the variable %PROGRAMDATA% is resolved correctly. You may need to hard code this value.
Posted by: Rain 9 years ago
Yellow Belt
0

It worked! Thanks EdT!

Changed to as follows:

Action : DeleteUpdateShortcut
Type: 1122

Source:SystemFolder
Target: cmd.exe /C rmdir
"C:\ProgramData\Microsoft\Windows\StartMenu\Programs\Java\Check For Updates.lnk" /Q

Andthen in the InstallExecuteSequence table
Action : DeleteUpdateShortcut
Sequence:3186


Comments:
  • Has anyone done this for Java version 8? If so, can you kindly supply the correct actions and sequence numbers. Thank you. - b1gkahuna 6 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