Questions about File Association - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

chen
Posts: 18
Joined: Mon Nov 26, 2007 6:02 pm

Questions about File Association

Hi

I created a new file extension that will be associated with our application. I followed the "New File Association Wizard" to create the new file association. But after I install the msi package. When I double clicked on my file with that extension, it launches msiexec every time. Why does it behave like that? Is there any way to prevent it from happenning?

If I want to manually set up the file association using Registry, what are keys/value that I should enter?

Thanks,

Ping Chen
chen
Posts: 18
Joined: Mon Nov 26, 2007 6:02 pm

Here is what installer put in the registry for the new ProgId:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\MyApp.FileType]
@="A Testing File Type"

[HKEY_CLASSES_ROOT\MyApp.FileType\shell]
@="&Open"

[HKEY_CLASSES_ROOT\MyApp.FileType\shell\&Open]
@="Open"

[HKEY_CLASSES_ROOT\MyApp.FileType\shell\&Open\command]
@="\"C:\\Program Files\\MyApp\\MyApp.exe\" \"%1\""
"command"=hex(7):50,00,45,00,51,00,38,00,6c,00,66,00,6e,00,79,00,41,00,39,00,\
  32,00,29,00,46,00,53,00,21,00,63,00,30,00,47,00,5a,00,71,00,43,00,6f,00,72,\
  00,65,00,43,00,6f,00,6d,00,70,00,6f,00,6e,00,65,00,6e,00,74,00,73,00,3e,00,\
  35,00,42,00,42,00,37,00,2a,00,6b,00,55,00,39,00,60,00,3d,00,21,00,26,00,7b,\
  00,60,00,5f,00,29,00,42,00,5f,00,27,00,2c,00,20,00,22,00,25,00,31,00,22,00,\
  00,00,00,00
I was wondering what is the value of command key is for. It seems to be pointing at the installer package.

Another interesting observation: the installer package also put some default values in the application's registries. After I double click on the data file and it launches the installer program, these default values are restored. If the application doesn't change these values, the next double click will not launch the installer program.

Hope these extra info will help to identify my problem.


Thanks,

Ping Chen
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please send us the AIP which shows this problem (if it doesn't contain confidential information) or a small test case which reproduces the behavior to support at advancedinstaller dot com so we can investigate the problem.

Also, can you please give me more details about what you mean by "it launches msiexec every time"? What happens exactly?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”