Our product places some commonly accessed documents in "C:\Documents and
Settings\All Users\Documents\CompanyName\ProductName" using
<Directory Id="WIX_DIR_COMMON_DOCUMENTS">
<Directory Id="CompanyDocs" Name="CompanyName">
<Directory Id="ProductDocs" Name="ProductName">
... blah...
Since on XP (the most common OS for our customers) that path is a royal pain
to navigate to, we install a shortcut on the desktop to our documents:
<Directory Id="WIX_DIR_COMMON_DOCUMENTS">
<Directory Id="CompanyDocs" Name="CompanyName">
<Directory Id="ProductDocs" Name="ProductName">
<Component Id="ProductDocsShortcutCmp" Guid="{some_guid_here}">
<Shortcut Id="StreamDocsShortcut" Advertise="no"
Description="Shortcut to ProductName Documents" Name="ProductName Documents"
Directory="DesktopFolder" />
<RegistryValue KeyPath="yes" Id="documentsShortcut"
Action="write" Root="HKCU"
Key="Software\CompanyName\ProductName\documentsShortcut" Name="MSIHACK"
Type="string" Value="1"/>
<RemoveRegistryKey Action="removeOnUninstall" Root="HKCU"
Key="Software\CompanyName\ ProductName\documentsShortcut"/>
</Component>
However, using this method, if a user wants to remove the shortcut from
their desktop (because they like an un-cluttered desktop) MSI automatically
"repairs" the component and puts the shortcut back.
How can I solve this problem so individual users are free to delete the
shortcut if they don't want it and still install the shortcut for ALLUSERS ?
Thanks in advance..
Scott
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users