Open mica opened 1 month ago
@mica Can you go back amend your description above to include:
Without both of those we cannot look at this issue.
Thanks.
Not sure how relevant it would be, as the error is within another program—one that just happens to crash if passed a third parameter, even when it's an empty string. For example, & .\infekt-win64.exe file.txt
works fine, whereas & .\infekt-win64.exe file.txt ""
doesn't.
The issue is that in line 78 of Install-ChocolateyFileAssociation.ps1, it's registering $fileType="$executable" "%1" "%*"
where $fileType="$executable" "%1"
would suffice.
@mica Just to be clear, without reproducible steps, we are unable to accept this issue.
Ok, I've edited above, thanks!
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue will be closed in 14 days if it continues to be inactive.
Checklist
What You Are Seeing?
The value being created by
Install-ChocolateyFileAssociation
atHKEY_CLASSES_ROOT\infekt-win64.exe\Shell\Open\Command\
has one too many parameters ("path\to\exe" "%1" "%*"
vs"path\to\exe" "%1"
). This is causing the app to throw a "too many positional options have been specified" error when opening associated files.What is Expected?
.nfo files should be able to open in the app without issue
How Did You Get This To Happen?
Here's part of the chocolateyInstall.ps1—hopefully enough to reproduce:
You can create an empty .nfo text file and attempt to open it to reproduce the error message.
Then if you edit the value at
HKEY_CLASSES_ROOT\infekt-win64.exe\Shell\Open\Command\
, removing"%*"
, it will open fine.System Details