Skip to content

Commit 4e992c2

Browse files
authored
Merge pull request #914 from BlueDotBrigade/copilot/add-weevil-option-to-open-with
Register Weevil as `.log` Open With app in MSI
2 parents 38b7dca + 1d1d0cb commit 4e992c2

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Src/BlueDotBrigade.Weevil.Installer/Product.wxs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
<ComponentRef Id="WeevilShortcut" />
3333
<ComponentRef Id="ScriptsPathComponent" />
34+
<ComponentRef Id="WeevilLogFileAssociation" />
3435
<ComponentGroupRef Id="RegistryKeys" />
3536
</Feature>
3637
</Package>
@@ -100,6 +101,53 @@
100101
</Component>
101102
</ComponentGroup>
102103
</Fragment>
104+
<Fragment>
105+
<DirectoryRef Id="INSTALLFOLDER">
106+
<Component Id="WeevilLogFileAssociation" Guid="84FACF5A-7EF5-4285-84B6-FC96F4A08177">
107+
<RegistryKey Root="HKLM" Key="Software\RegisteredApplications">
108+
<RegistryValue Name="Weevil" Type="string" Value="Software\BlueDotBrigade\Weevil\Capabilities" />
109+
</RegistryKey>
110+
111+
<RegistryKey Root="HKLM" Key="Software\BlueDotBrigade\Weevil\Capabilities">
112+
<RegistryValue Name="ApplicationName" Type="string" Value="Weevil" KeyPath="yes" />
113+
<RegistryValue Name="ApplicationDescription" Type="string" Value="View and analyze log files using Weevil." />
114+
<RegistryKey Key="FileAssociations">
115+
<RegistryValue Name=".log" Type="string" Value="BlueDotBrigade.Weevil.LogFile" />
116+
</RegistryKey>
117+
</RegistryKey>
118+
119+
<RegistryKey Root="HKLM" Key="Software\Classes\BlueDotBrigade.Weevil.LogFile">
120+
<RegistryValue Type="string" Value="Log File" />
121+
<RegistryValue Name="FriendlyTypeName" Type="string" Value="Log File" />
122+
<RegistryKey Key="DefaultIcon">
123+
<RegistryValue Type="string" Value="&quot;[InstallFolderBin]WeevilGui.exe&quot;,0" />
124+
</RegistryKey>
125+
<RegistryKey Key="shell">
126+
<RegistryValue Type="string" Value="open" />
127+
<RegistryKey Key="open">
128+
<RegistryKey Key="command">
129+
<RegistryValue Type="string" Value="&quot;[InstallFolderBin]WeevilGui.exe&quot; &quot;%1&quot;" />
130+
</RegistryKey>
131+
</RegistryKey>
132+
</RegistryKey>
133+
</RegistryKey>
134+
135+
<RegistryKey Root="HKLM" Key="Software\Classes\.log\OpenWithProgids">
136+
<RegistryValue Name="BlueDotBrigade.Weevil.LogFile" Type="string" Value="" />
137+
</RegistryKey>
138+
139+
<RegistryKey Root="HKLM" Key="Software\Classes\Applications\WeevilGui.exe">
140+
<RegistryValue Name="FriendlyAppName" Type="string" Value="Weevil" />
141+
<RegistryKey Key="SupportedTypes">
142+
<RegistryValue Name=".log" Type="string" Value="" />
143+
</RegistryKey>
144+
<RegistryKey Key="shell\open\command">
145+
<RegistryValue Type="string" Value="&quot;[InstallFolderBin]WeevilGui.exe&quot; &quot;%1&quot;" />
146+
</RegistryKey>
147+
</RegistryKey>
148+
</Component>
149+
</DirectoryRef>
150+
</Fragment>
103151
<Fragment>
104152
<UI>
105153
<Dialog Id="TelemetryDialog" Width="370" Height="270" Title="[ProductName] Setup">

0 commit comments

Comments
 (0)