Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

File Association in Acrobat?

My installer seems to successfully associate a file extension with my main exe, and double-clicking a file with the named extension will cause my program to launch and open that file.

But, a customer is complaining that if they attach a file with that extension to an Acrobat PDF file (Tools > Attach), when they double-click on the attached file in the PDF, they get an error that there's no program associated with that extension.

This apparently worked fine for them when we were using the InstallShield installer.

Any ideas?

My current file association only creates an entry for the verb Open. I wonder if I need to create one for something else, or blank? The version of InstallShield we were using did not have a field for verb. But this could be completely unrelated to the problem.
Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Re: File Association in Acrobat?

Here's some more information.

I used the New File Association wizard to create an association with the verb "open". It ends up creating in the registry HKEY_CLASSES_ROOT\.[XX]\[MANUFACTURER].[APPDIR].[XX]\ShellNew (where XX is replaced by my extension, and things in []'s are correctly instantiated). There's also another key created: HKEY_CLASSES_ROOT\Applications\[MyProgram].exe\shell\open\command

However, when InstallShield does this, the HKEY_CLASSES_ROOT\.[XX] contains 2 keys: shell, and ShellNew. The shell key contains a subkey named "open", which in turn has a subkey named "command". "command" has 2 values: default = "C:\[Path]\[MyProgam].exe" "%1", and command = some encrypted ID followed by "%1".

I think this whole " HKEY_CLASSES_ROOT\.[XX]\shell\open\command" subtree is what is missing from my Advanced Installer implementation. What am I supposed to do in the File Association section of Advanced Installer to get this key to be created?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File Association in Acrobat?

Hello,

I'm not sure why this happens. I've tested you scenario but I cannot replicate the behavior. Can you replicate the behavior on multiple clean machines? If so, can you please give us a detailed step by step test case scenario so we can test and investigate this?

Also, it would be useful if you could isolate the behavior in a buildable sample and send it us alongside a test case so we can try to replicate and investigate this on our end.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Re: File Association in Acrobat?

Daniel,

Yes, this behavior occurs on any machine tested. I can send you links for the installer .aip file, the source components for the installer build, and the resultant .msi file. How can I get them to you?

The steps are:
  • Create AIP project and populate
  • Go to File Associations and use New File Association wizard
  • Enter extension (e.g., kk), description, and optionally icon
  • Select main exe, and set argument field to "%1"
  • Leave command and verb dialog with default open values
  • Build and install
  • See that double-clicking ".kk" from Windows Explorer launches program and opens file
  • Run Acrobat, and click Tools > Attach File and select the .kk file
  • Double-click that file in the attachments left pane, and press [OK], and get error message that there is no program associated with that extension
Rebooting accomplishes nothing. I have also tried clicking Default Program from the Advanced Installer File Association screen, and filling it out as well, but this didn't change any behavior.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File Association in Acrobat?

Hello,

I've tested your step by step test case scenario and, indeed I am able to replicate the behavior. This seems to be an Advanced Installer issue. A fix will be available in a future version of Advanced Installer, thank you for bringing this to our attention. We will let you know when a fix will be available.

Currently this happens only when creating the file association using our "New File Associations" wizard. When using the wizard the file associations registries are not correctly created. However, as a workaround, in order to avoid this issue you can simply remove the ProgID entry from "File Associations" page and add again your extension (i.e. kk) using the "New Extension" context menu option.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Re: File Association in Acrobat?

Thanks for checking into it and supplying the workaround!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File Association in Acrobat?

You're welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File Association in Acrobat?

Hello,

This was fixed in version 11.2 of Advanced Installer released on May 21st, 2014.

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

Return to “Common Problems”