star icon indicating copy to clipboard operation
star copied to clipboard

Win installer does not set up file associations

Open zoffixznet opened this issue 6 years ago • 3 comments

This is on Windows Server 2008, but likely applies to other Windows versions.

After installing Strawberry Perl, I can create foo.pl with some code in a folder, double click it, and Windows will execute that file with Perl 5 interpreter. Also, if I right click on the file, the context menu shows "Execute Perl Program" as the first item.

After installing 2018.04.1 Rakudo Star MSI, the same is not the case for neither .p6 nor .pl6 extensions. Double clicking such files simply tells me Windows can't open this file.

zoffixznet avatar Jun 26 '18 12:06 zoffixznet

Actually, this affects command line execution too:

In cmd.exe, I can just type foo.pl to run a Perl 5 program, yet I have to include perl6 in perl6 foo.p6 to execute a Perl 6 program.

zoffixznet avatar Jun 26 '18 12:06 zoffixznet

A quick google suggests this is a one liner using "ftype" which should be easy enough to add to WIX.

stmuk avatar Jul 02 '18 20:07 stmuk

It could use "ftype" and "assoc" but this doesn't appear easy to add to star-product.wxs (which is a awful looking XML file).

stmuk avatar Jul 30 '18 11:07 stmuk

closing as it's stone-age old an no one seems to work on it...

AntonOks avatar Apr 15 '23 19:04 AntonOks