I think I have something working in my solution so thought I should create
a complete working samplefirst 3.0 here (in case it can actually help
someone with the same dilemma). It does exactly what I wanted it to -
creates shortcuts in a folder off All Programs pointing to the installed
components.
Please let me know if there is anything unpleasant about this approach.
Thanks.
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Name="Foobar 1.0" Id="257ABFBA-71CC-4C5C-9DEB-398932990DBF"
Language="1033" Codepage="1252" Version="1.0.0" Manufacturer="Acme Ltd.">
<Package Keywords="Installer" Description="Acme's Foobar
1.0Installer" Comments="Foobar is a registered trademark of Acme Ltd."
Manufacturer="Acme Ltd." InstallerVersion="100" Languages="1033"
Compressed="yes" SummaryCodepage="1252" />
<Media Id="1" Cabinet="Sample.cab" EmbedCab="yes" DiskPrompt="CD-ROM
#1" />
<Property Id="DiskPrompt" Value="Acme's Foobar 1.0 Installation [1]"
/>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="Acme" Name="Acme">
<Directory Id="INSTALLDIR" ShortName="Foobar10" Name="Foobar
1.0">
<Component Id="MainExecutable"
Guid="6D4B73E9-D410-465D-BC07-CED8AFD1BC23">
<RegistryKey Root="HKCU" Key="Software\RMS
ConnectPro\Uninstall">
<RegistryValue Value="0" Type="string" KeyPath="yes"
/>
</RegistryKey>
<File Id="FoobarEXE" ShortName="Foobar10.exe" Name="
FoobarAppl10.exe" DiskId="1" Source="FoobarAppl10.exe" Vital="yes">
<Shortcut Id="startmenuFoobar10"
Directory="ProgramMenuDir" ShortName="Foobar10" Name="Foobar 1.0"
WorkingDirectory="INSTALLDIR" Icon="Foobar10.exe" IconIndex="0" />
<Shortcut Id="desktopFoobar10"
Directory="DesktopFolder" ShortName="Foobar10" Name="Foobar 1.0"
WorkingDirectory="INSTALLDIR" Icon="Foobar10.exe" IconIndex="0" />
</File>
<RemoveFolder Id="ProgramMenuDir" On="uninstall" />
</Component>
<Component Id="HelperLibrary"
Guid="FBF62A3C-8D14-4A59-B272-66D81F8F41A4">
<File Id="HelperDLL" Name="Helper.dll" DiskId="1"
Source="Helper.dll" Vital="yes" />
</Component>
<Component Id="Manual"
Guid="37EDF628-97C8-4FC4-AE6B-3B74EF351FC1">
<RegistryKey Root="HKCU" Key="Software\RMS
ConnectPro\Uninstall">
<RegistryValue Value="0" Type="string" KeyPath="yes"
/>
</RegistryKey>
<File Id="Manual" Name="Manual.pdf" DiskId="1" Source="
Manual.pdf">
<Shortcut Id="startmenuManual"
Directory="ProgramMenuDir" ShortName="Manual" Name="Instruction Manual" />
</File>
</Component>
</Directory>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder" Name="Programs">
<Directory Id="ProgramMenuDir" Name="Foobar 1.0">
<Component Id="ProgramMenuDirComponent"
Guid="1C43BD4D-2BFB-4902-80D9-76EBEC8628D9">
<RegistryKey Root="HKCU" Key="Software\RMS
ConnectPro\Uninstall">
<RegistryValue
Value="{25ADFC0F-BFD4-44A6-91CE-BF653D34BBD0}" Type="string" KeyPath="yes"
/>
<!-- The value means nothing. Just thought a guid was
an appropriate dummy registry entry -->
</RegistryKey>
<RemoveFolder Id='RemoveProgramMenuDir'
Directory='ProgramMenuDir' On='uninstall' />
</Component>
</Directory>
</Directory>
<Directory Id="DesktopFolder" Name="Desktop" />
</Directory>
<Feature Id="Complete" Level="1">
<ComponentRef Id="MainExecutable" />
<ComponentRef Id="HelperLibrary" />
<ComponentRef Id="Manual" />
<ComponentRef Id="ProgramMenuDirComponent" />
</Feature>
<Icon Id="Foobar10.exe" SourceFile="FoobarAppl10.exe" />
</Product>
</Wix>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users