diff options
author | Robert Adam <dev@robert-adam.de> | 2021-07-11 12:53:12 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2021-07-15 10:12:29 +0300 |
commit | b4bca404ee92bcbae25583ccb12767810d4dcbd6 (patch) | |
tree | 8fd81a505fa4e499dc331f1dd2d7c0230b2212ea /installer/ClientInstaller.cs | |
parent | 002d3f2df7e88250e25cacc223d914eb4ce96a45 (diff) |
BUILD(installer): Add file assoc. for plugin-files
This allows to install .mumble_plugin bundles simply by double-
clicking on them in the explorer.
Diffstat (limited to 'installer/ClientInstaller.cs')
-rw-r--r-- | installer/ClientInstaller.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/installer/ClientInstaller.cs b/installer/ClientInstaller.cs index 36c0e91f7..67b7f37cc 100644 --- a/installer/ClientInstaller.cs +++ b/installer/ClientInstaller.cs @@ -154,7 +154,11 @@ public class ClientInstaller : MumbleInstall { var pluginFiles = new File[plugins.Length]; for (int i = 0; i < binaries.Count; i++) { - binaryFiles[i] = new File(@"..\..\" + binaries[i]); + if (binaries[i] == "mumble.exe") { + binaryFiles[i] = new File(@"..\..\" + binaries[i], new FileAssociation("mumble_plugin", "application/mumble", "Open", "\"%1\"")); + } else { + binaryFiles[i] = new File(@"..\..\" + binaries[i]); + } } for (int i = 0; i < licenses.Length; i++) { |