Skip to content

Commit 3ecd302

Browse files
Update for file associations
1 parent a73f850 commit 3ecd302

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

MSUScripter/MSUScripter.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.3.2" />
2020
<PackageReference Include="Deadpikle.AvaloniaProgressRing" Version="0.10.10" />
2121
<PackageReference Include="K4os.Hash.xxHash" Version="1.0.8" />
22-
<PackageReference Include="MattEqualsCoder.AppImageDesktopFileCreator" Version="0.1.1" />
22+
<PackageReference Include="MattEqualsCoder.AppImageDesktopFileCreator" Version="0.2.0" />
2323
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
2424
<PackageReference Include="MattEqualsCoder.AvaloniaControls" Version="1.8.1" />
2525
<PackageReference Include="MattEqualsCoder.GitHubReleaseChecker" Version="1.1.3" />

MSUScripter/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ internal static CreateDesktopFileResponse BuildLinuxDesktopFile()
178178
.AddIcon(assembly, "MSUScripter.Assets.icon.256.png", 256)
179179
.AddIcon(assembly, "MSUScripter.Assets.icon.svg")
180180
.AddUninstallAction(Directories.BaseFolder)
181+
.WithMimeType("application/x-msu-scripter-project", "MSU Scripter Project", "*.msup", true)
181182
.Build();
182183
}
183184

Setup/MSUScripter.iss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,11 @@ Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: de
6363
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
6464

6565
[UninstallDelete]
66-
Type: filesandordirs; Name: "{localappdata}\MSUScripter"
66+
Type: filesandordirs; Name: "{localappdata}\MSUScripter"
67+
68+
[Registry]
69+
Root: HKA; Subkey: "Software\Classes\.msup\OpenWithProgids"; ValueType: string; ValueName: "MsuScripterProject.msup"; ValueData: ""; Flags: uninsdeletevalue
70+
Root: HKA; Subkey: "Software\Classes\MsuScripterProject.msup"; ValueType: string; ValueName: ""; ValueData: "MSU Scripter Project"; Flags: uninsdeletekey
71+
Root: HKA; Subkey: "Software\Classes\MsuScripterProject.msup\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
72+
Root: HKA; Subkey: "Software\Classes\MsuScripterProject.msup\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
73+
Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".msup"; ValueData: ""

0 commit comments

Comments
 (0)