I've just copied part of my script and inserted the placeholders.
It works fine for me. Actually I've used version 2.0 but AFAIK that should
not matter for this.

I can recheck my configuration and post it, if it could help.

Br,
F.
On Sep 2, 2015 9:47 AM, "Berkay Elbir" <berkayel...@gmail.com> wrote:

> Thank you for your answer. Actually, I tried to do this in Qt
> installer(1.5.0), updated the installscript with this:
>
> component.addOperation("RegisterFileType", "fl", "@TargetDir@\\A.exe" +
> "'%1'", "myFiles", "text/plain","@TargetDir@/A_icon.ico", "ProgId=A.fl");​
>
> as Federico suggested. But it gives parse error with this line. I did not
> understand what is the problem. I did not think about the QSettings that
> can be another way.
>
> On Tue, Sep 1, 2015 at 8:56 PM, Jason H <jh...@gmx.com> wrote:
>
>>
>> You just need to make the association in the registry. At a fundamental
>> level, you create a key in the right branch that associates the extension
>> to your exe.
>> I used to know it back in the day, HKEY_LOCAL_MACHINE/... (Win95) But
>> Since then they've added protections such that if you are installing for
>> the machine, you need admin privielges to edit that branch of the registry.
>> Nowdays it's in HKEY_CURRENT_USER or something to that effect so that you
>> can install the association on a per-user basis and not need admin. Most
>> installers support adding a simple association. QSettings is capable, IIRC,
>> if your installer doesn't have the capabilty.
>> *Sent:* Monday, August 31, 2015 at 11:45 AM
>> *From:* "Berkay Elbir" <berkayel...@gmail.com>
>> *To:* interest@qt-project.org
>> *Subject:* [Interest] Launch Qt Desktop Application(Windows) by clicking
>> custom file
>> Hello all,
>>
>> I want to ask you that How can I launch my Qt desktop
>> application(Windows) when double click to a custom file that is used by my
>> application?
>>
>> For example, when I double click myFile.x then my application will launch
>> and open this file.
>>
>> Thanks in advance.
>>
>> Best Regards,
>>
>> Berkay Elbir
>> _______________________________________________ Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>
>
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to