After searching through the repository, I was not able to find any previous discussions around associating a file extension with your squirrel-installed application. Before writing code, are there any existing biases/reasoning against implementing this in Squirrel?
Since the command line for the shell/open registry entry should likely follow the same semantics as the shortcut target, I think it would be ideal to have two similar methods in Squirrel like Create/RemoveFileAssociation.
Obviously there are some complexities and limitations (if the file type is already associated or has defaults) but otherwise it's a fairly straightforward local-user registry addition.
Happy to make a first pass pull-request if this feature is desirable.
Any news on this?
This would be a very useful implementation. It makes no sense that you can't make file associations to an installer.
You don't need to add any additional code in Squirrel to do this, check out https://github.com/Squirrel/Squirrel.Windows/blob/master/docs/using/custom-squirrel-events.md. Register the file association on install/update and remove it on uninstall.
@paulcbetts Are there any examples on how to do this? I feel like the docs aren't clear enough on how to perform custom events.
Most helpful comment
@paulcbetts Are there any examples on how to do this? I feel like the docs aren't clear enough on how to perform custom events.