/build/static/layout/Breadcrumb_cap_w.png

Prevent Java Quick Starter Service jre1.7.0_04

I am trying to deploy the latest Java build using the MSI and editing it with Orc.  I have my MST, but it looks like you can no longer prevent the install of the Java Quick Starter service by modifying the UninstallJQS entry under the InstallExecuteSequence table as the entry no longer exists.  Also, there are no entries for MSIUninstallJQS under Target in the CustomAction table.  Has anyone had any luck with modifying the MSI to accomplish this?  In previous versions, we have created a CustomAction and modified the sequence of entries in the InstallExecuteSequence table, but I can't seem to find that in this version. Current version is Java 7 Update 4


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: mazessj 11 years ago
Blue Belt
1

I haven't attemped JRE 7 yet. Is JQS still included?

Maybe this will help. In JRE 6u31, instead of commenting-out custom actions, I added one to execute a command to uninstall JQS (by executing "[bin]jqs.exe" -unregister) near the end of the installation. I conditionalized it to run only when NOT Installed AND VersionNT <= 502 to prevent it from running on Vista and above where JQS is not installed by default. So it allows JQS to be installed initially, but then it uninstalls it.

Considering that the JQS service is a Windows-specific thing, I would be surprised if its installation wasn't part of some custom action. Hopefully Oracle hasn't embedded it into the main JRE installation.


Comments:
  • JQS is still included.
    I tried your suggestion, but the JQS service is not being unregistered. I'm not sure if I have it correct though.
    In Custom Action table, I added an action called UnregisterJQS, type 226, source ProgramFilesFolder, taget "[ProgramFilesFolder]\Java\jre7\bin\jqs.exe" -unregister
    Then in InstallExecuteSequence, I added the action UnregisterJQS with the conditions you suggested and gave it a sequence number one before the InstallFinalize, 3184.
    I was not sure if the type I used in the Custom Action was correct though. With JRE6U31, was your Custom Action type set to 226? I have also tried setting the Custom Action source to INSTALLDIR and the target to "[bin]jqs.exe" -unregister, but did not have any luck there either. - mattcloutier 11 years ago
Posted by: mattcloutier 11 years ago
White Belt
0

Thanks! I kept on making minor changes until I got it right.  The key was to set the sequence number to after the InstallFinialize action in InstallExecuteSequence.  InstallFinialize is listed as 3185, so I set my custom action at 3187.  I re-ran the install and saw the additional command window open and run the -unregister command.  Success!  Thanks for the help

 
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