Hi,
I'm trying to create a shortcut to a folder, and have somewhat succeeded, but
not entirely to my liking, and there are a few things that I don't understand
being fairly new to the msi installer world.
At the bottom is a .hxs file that does compile and work. So here's my small
list of questions:
- I initially tried creating an advertised shortcut to the folder. This did
compile, but no shortcut appeared when installing. Huh, anybody got a clue? Are
advertised shortcuts to a folder possible at all? I haven't found much useful
info on this type of shortcut.
- Next approach was creating an unadvertised shortcut. But then initially ICE
gives an ICE43 error, telling:
"Error 2 ICE43: Component CadLibShortcuts has non-advertised shortcuts. It
should use a registry key under HKCU as its KeyPath, not a file.
C:\wout\views\wwview1\src\CadLib\WixProject\WixProject.wxs 19 1 WixProject"
Huh? What is the registry key used for? Clearly I'm missing something. But...
by just fighting the symptoms and creating a registry key in HKCU, it does
work. But, I would like to install for all users however. So what's the deal
with the HKCU? I just want to create a simple shortcut!!!
All help is appreciated!
Wout
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="edab67da-c9ec-44b9-b966-d4960c4b5d48" Name="CadLib 2.0.18"
Language="1033" Version="1.0.0.0" Manufacturer="Wout Ware"
UpgradeCode="569d54e7-ccbc-47b9-b8f6-509faa71f1dd">
<Package
Keywords="Installer"
Description="CadLib 2.0.18 Installer"
InstallerVersion="200"
Compressed="yes" />
<Media Id="1" Cabinet="WixProject.cab" EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="WoutWare" Name="Wout Ware">
<Directory Id="INSTALLLOCATION" Name="CadLib">
<Component Id="ProductComponent"
Guid="da126df2-0bdd-4a1c-bf64-00c6e1e4985a">
<File Id="CadLib.dll" Name="CadLib.dll" DiskId="1"
Source="../../../bin/CadLib/CadLib.dll" Vital="yes" />
</Component>
<Component Id="CadLibShortcuts"
Guid="d1efa6d7-63d3-4929-b010-1aab8a6d5f48">
<RegistryKey Key="SOFTWARE\Wout Ware\CadLib\2.0.18\Install"
Root="HKCU" Action="none">
<RegistryValue Id="UnadvertisedShortcut"
Name="UnadvertisedShortcut" Type="integer" Value="1" Action="write"
KeyPath="yes" />
</RegistryKey>
<CreateFolder>
<Shortcut Id="CadLibFolder" Directory="DesktopFolder"
Name="CadLib" Advertise="no" />
</CreateFolder>
</Component>
</Directory>
</Directory>
</Directory>
<!--
<Directory Id="ProgramMenuFolder" Name="PMenu" LongName="Programs">
<Directory Id="ProgramMenuDir" Name="Foobar10" LongName="Foobar 1.0" />
</Directory>
-->
<Directory Id="DesktopFolder" Name="Desktop" />
</Directory>
<Feature Id="ProductFeature" Title="Binaries" Level="1">
<ComponentRef Id="ProductComponent" />
<ComponentRef Id="CadLibShortcuts" />
</Feature>
</Product>
</Wix>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users