Installer: Write Cppcheck version and install path to registry.
As suggested by mcartoixa at forums. This helps 3rd party software to find the Cppcheck in Windows environment. Note that this commit writes to HKCU instead of suggested HKLM.
This commit is contained in:
parent
fc57e06cdd
commit
469be78254
|
@ -19,6 +19,12 @@
|
|||
<File Id='cppcheck.exe' Name='cppcheck.exe' DiskId='1' Source='$(var.CliBuildDir)\cppcheck.exe' KeyPath='yes' />
|
||||
<Environment Id='UpdatePath' Name='PATH' Action='set' System='yes' Part='last' Value='[INSTALLDIR]' />
|
||||
</Component>
|
||||
<Component Id='RegistryEntries' Guid='$(var.registrykeysGUID)'>
|
||||
<RegistryKey Root="HKCU" Key="SOFTWARE\$(var.ProductNameShort)" Action="createAndRemoveOnUninstall">
|
||||
<RegistryValue Name="IntallationPath" Value="[INSTALLDIR]" Type="string" KeyPath="yes" />
|
||||
<RegistryValue Name="Version" Value="$(var.ProductVersion)" Type="string" />
|
||||
</RegistryKey>
|
||||
</Component>
|
||||
<Component Id='GuiExecutable' DiskId='1' Guid='$(var.guiGUID)'>
|
||||
<File Id='cppcheckguiexe' Name='cppcheckgui.exe' Source='$(var.GuiBuildDir)\cppcheck-gui.exe' KeyPath='yes'>
|
||||
<Shortcut Id='startmenuGui' Directory="ProgramMenuDir" Name='$(var.ProductNameShort)'
|
||||
|
@ -75,6 +81,7 @@
|
|||
Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR' >
|
||||
<Feature Id='MainProgram' Title='Command line interface' Description='Command line tool' Level='1'>
|
||||
<ComponentRef Id='cppcheck.exe' />
|
||||
<ComponentRef Id='RegistryEntries' />
|
||||
<ComponentRef Id='GuiExecutable' />
|
||||
<ComponentRef Id='GuiTranslations' />
|
||||
<ComponentRef Id='BaseDocs' />
|
||||
|
|
|
@ -13,4 +13,5 @@
|
|||
<?define guiGUID = "D7D3FF8E-1D82-4215-B59B-4715A748C540" ?>
|
||||
<?define guiTranslationsGUID = "24738151-890D-4fcc-824C-DA7FF63E0D7F" ?>
|
||||
<?define basedocsGUID = "9F62B23C-CD2B-4826-A567-6AB6F75A2AEA" ?>
|
||||
<?define registrykeysGUID = "8CB515B1-6EF6-4A2A-97A0-F8A13E3A505E" ?>
|
||||
</Include>
|
||||
|
|
Loading…
Reference in New Issue