Unable to associate file extensions with a bdist_msi #2093
-
I have an application which is able to open files from command line. It uses argparse to get the file name.
I try to associate the application to '*.lc' files in Windows, using a .msi installer.
Unfortunately, while the executable from the build still opens files passed to it in command line, double clicking on a '*.lc' file does not work. It doesn't even start the application. I look forward to your advice on this. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Please, check this sample: https://github.com/marcelotduarte/cx_Freeze/tree/main/samples/msi_extensions The verb should be "open", "print", "view", ... |
Beta Was this translation helpful? Give feedback.
-
OK thank you. This way it does start the application. |
Beta Was this translation helpful? Give feedback.
-
Yes, the argument solved my problem. I had followed this sample and assumed argument was not necessary: https://github.com/marcelotduarte/cx_Freeze/blob/main/samples/msi_extensions/setup.py. But I should have tried it anyways. Thank you for your time. |
Beta Was this translation helpful? Give feedback.
In the sample cited, in the README,
4. optionally arguments, e.g. "%1" for proper quoting, but any other program arguments can be passed (see sample),
and in the setup.py has the use of argument, so in your case:
"argument": '"%1"',