Java 10.2 URL Action asks questions - Advanced Installer Community
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Java 10.2 URL Action asks questions

Our application registers a Mime Type that launches the exe. As the last step of the Advanced Installer I would like to run the application using the Mime Type. I configured AdvancedInstaler to launch the MimeType and the results are not quite what I expected. The Installer does query the url and attempt to launch the file with a dialog that I was not expecting. I am being asked to OK the Launch of the associated Mime File. See the attached dialog in yellow. The application is signed and the user agreed to install it.
Attachments
Dialog about running a mime type
Dialog about running a mime type
DialogColorsAndQuestionsAbout.PNG (59.31 KiB) Viewed 12101 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Java 10.2 URL Action asks questions

Hello,

This may happen due to security settings of Internet Explorer on target machine. Can you please try to manually launch the related URL, after package installation, and see if the behavior still persist?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java 10.2 URL Action asks questions

Does AdvancedInstaller register the CLSID and PROGID with the mime File Association. I am using Open for the association.

http://msdn.microsoft.com/en-us/library ... s.85).aspx

from:

Executing a Downloaded File

In Windows XP SP2 and later, after downloading a file, Internet Explorer consults the registry to find out which ProgID and CLSID is associated with the MIME type of the file. The browser then finds the ProgID and CLSID associated with the file name extension. If these ProgIDs do not match, and the CLSIDs do not match, Internet Explorer prompts the user before executing the file, as a safety precaution. Internet Explorer launches only the program associated with the MIME type of the downloaded file and not the program associated with the file name extension (if they are different programs). In Windows XP SP2 and later, if the MIME handler rejects the file, and the MIME handler and shell extension handler don't match, Internet Explorer shows an error dialog. Prior to Windows XP SP2, Internet Explorer opened the file using the shell extension handler if the MIME handler rejected the file.

If the MIME handler rejects the file with an error code of INET_E_CANNOT_LOAD_DATA, then Internet Explorer does not load the shell extension handler even if the ProgIDs or CLSIDs match. This is an extra security measure designed to prevent the shell extension handler from executing corrupt files.

If the file is marked as "content-disposition=attachment" in the HTTP header, Internet Explorer does not look at the MIME handler, shows a file download prompt, and, if instructed to run the attachment, it executes the file.
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java 10.2 URL Action asks questions

This is a pressing issue for us and as we try more features we are not getting good results. The previous URL indicates that one can set the mime type processing so that it is trusted. Of course the developer has to code the associated action to be secure so that it is not vulnerable, that is not the issue and that type of functionality should not be prevented. It is up to the deployer.

The Associated Actions options do set the action but it is unclear from looking at the registry what to use for the CLSID.

I have attached some screen Shots of relevant items and have opened a case with MSFT about this also.

The goal is to launch a mime associated file with no user interaction required. The MSFT documents indicate that this is possible.

The registry entries specified in Advanced Installer are not being set.
This is the config for the application
This is the config for the application
RegistrySettingAdvancedInstaller.PNG (28.19 KiB) Viewed 12083 times
Attachments
I was expecting these values to be set
I was expecting these values to be set
UnsetRegistry.png (18.32 KiB) Viewed 12083 times
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java 10.2 URL Action asks questions

I have been unable to make progress on this. I understand the response about unclick the ask before run but that is not the issue. MSFT provides registry entries to make your plugin trusted. My questions are:

1) When I set registry entries as shown above they are not showing up as being set
2) DO you generate a CLSID for the Application and do anything with it?
3) Am I misunderstanding file associations and mime associations I want the browser to run the associated file without prompts as previously explained. There are a number of additional registry settings for this is there any support for this or if not how do I get 1 above to work so that I can set the registry entries?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Java 10.2 URL Action asks questions

Hello,

In order to define a MIME type for your files extension you can install your application files extension using our "Files Associations" page. For example, you can add your extension in our "File Associations" page and, then you can set the desired MIME type in the "MIME Type" field from "Extension Properties" right pane.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java 10.2 URL Action asks questions

I think I am performing the steps you indicate above. The fact that I click on the .pah mime type and it starts the launch sequence verifies that. The issue is that I am trying to set additional mime types to prevent the dialog that asks do you want to run.
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java 10.2 URL Action asks questions

This question is resolved. I had to open a case with Microsoft to resolve it. A suggestion going forward would be to discuss how to achieve the following with your product.
  • Oneclick type deployments that use different mechanism for Firefox and Chrome. The Microsoft Oneclick technology is very good and it is penalized by the adhoc approaches of Chrome and Firefox
    Provide more links to docs and examples on how to have users trust executables. I have included a number of links that describe how this could be done.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Java 10.2 URL Action asks questions

Hello,
Oneclick type deployments that use different mechanism for Firefox and Chrome. The Microsoft Oneclick technology is very good and it is penalized by the adhoc approaches of Chrome and Firefox
Provide more links to docs and examples on how to have users trust executables. I have included a number of links that describe how this could be done.
I'm afraid we don't have predefined support for this. Also, if you want to create the previous posted registry entries in order to add your file extension to Internet Exporer trusted list, then you can create them in our "Registry" page. Please keep in mind that a 32-bit package type will redirect (on 64-bit machines) the registry entries under Wow6432Node. However, if you want to install on a 64-bit machine a registry entry in the same location as on a 32-bit machine, then you should check the "64-bit Component" option of its associated component, from "Organization -> Component Properties" pane.

Also, another approch to achieve what you want is to develop your own custom action.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
digitalrinaldo
Posts: 88
Joined: Sun Jan 13, 2013 2:51 am

Re: Java 10.2 URL Action asks questions

I have created a 32 bit package so that I can install on 32 bit and 74 bit. The java runtime that is installed is 32 bit, that is the default shipping version for Windows from Oracle. ON Mac the default is 64 bits -- there is no 32 bit version. So do I have to enable the 64bit option on 64bit targets? It seems like that would be out of my control and I would need to make two versions.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Java 10.2 URL Action asks questions

Hello,

Can you please test (on MAC) your MAC OS build which includes the 32-bit java product and see if successfully starts? If on your MAC OS target machine exist a 32-bit JRE, then it should be correctly launched.

Also, if you want to create a 64-bit java product to be included in your MAC OS build you can proceed like this:
- Go to "Java Products" page and select the 32-bit java product.
- From its "Mac OS X" tab disable the "Include the Java Product in the Mac OS build" option.
- Select again your 32-bit java product and from its context menu use the "New Synced Product" option.
- Select the new synced product and from its "Mac OS X" tab enable the "Include the Java Product in the Mac OS build" option.
- From its "Settings" tab set the "Platform" field to "64-bit".
- Build and run your project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”