rakudo / star

Rakudo Star (Raku distribution)
https://rakudo.org/
Artistic License 2.0
266 stars 41 forks source link

Win installer does not set up file associations #115

Closed zoffixznet closed 1 year ago

zoffixznet commented 6 years ago

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 commented 6 years ago

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.

stmuk commented 6 years ago

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

stmuk commented 6 years ago

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).

AntonOks commented 1 year ago

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