Skip to content

Commit

Permalink
Make the MSI installer create a start menu shortcut.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuetschard authored and AWoloszyn committed Jul 27, 2017
1 parent fa0f6af commit 569fec4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kokoro/windows/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ zip -r gapid-%VERSION%-windows.zip gapid

REM Create an MSI installer.
copy %SRC%\kokoro\windows\gapid.wxs .
%WIX%\heat.exe dir gapid -ag -cg gapid -dr GAPID -template fragment -sreg -sfrag -srd -o component.wxs
copy %SRC%\kokoro\windows\gapid.ico .
%WIX%\heat.exe dir gapid -ag -cg gapid -dr GAPID -template fragment -sreg -sfrag -srd -suid -o component.wxs
%WIX%\candle.exe gapid.wxs component.wxs
%WIX%\light.exe gapid.wixobj component.wixobj -b gapid -ext WixUIExtension -cultures:en-us -o gapid-%VERSION%.msi

Expand Down
Binary file added kokoro/windows/gapid.ico
Binary file not shown.
19 changes: 19 additions & 0 deletions kokoro/windows/gapid.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,35 @@
Comments="Installs the Graphics API Debugger" Manufacturer="Google, Inc"
InstallerVersion="100" Languages="1033" Compressed="yes" SummaryCodepage="1252" />
<MediaTemplate EmbedCab="yes" />

<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="GAPID" Name="gapid" />
</Directory>
<Directory Id="ProgramMenuFolder">
<Directory Id="ApplicationProgramsFolder" Name="GAPID" />
</Directory>
</Directory>

<DirectoryRef Id="ApplicationProgramsFolder">
<Component Id="ApplicationShortcut" Guid="*">
<Shortcut Id="ApplicationStartMenuShortcut" Name="GAPID" Description="Graphics API Debugger"
Target="[!gapid.bat]" WorkingDirectory="APPLICATIONROOTDIRECTORY" Icon="gapid.ico" />
<RemoveFolder Id="CleanUpShortCut" Directory="ApplicationProgramsFolder" On="uninstall" />
<RegistryValue Root="HKCU" Key="Software\Google\GAPID" Name="installed" Type="integer" Value="1" KeyPath="yes" />
</Component>
</DirectoryRef>

<Icon Id="gapid.ico" SourceFile="gapid.ico" />

<Feature Id="GAPID" Title="Graphics API Debugger" Level="1">
<ComponentGroupRef Id="gapid" />
<ComponentRef Id="ApplicationShortcut" />
</Feature>

<Property Id="WIXUI_INSTALLDIR" Value="GAPID" />
<Property Id="ARPPRODUCTICON" Value="gapid.ico" />

<!-- From WixUI_InstallDir.wxs - without a license dialog -->
<UI Id="gapid">
<TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
Expand Down

0 comments on commit 569fec4

Please sign in to comment.