I have a Wix installer that includes something like this:
<Component Id="MyShortcuts" NeverOverwrite="yes" Guid="{someguid}">
<RegistryKey Action="create" Id="MyShortCutsRegKey"
Key="Software\TheCompany\TheProduct 1.0\My" Root="HKCU">
<RegistryValue Id="MyShortcutsKeyVal" KeyPath="yes"
Name="MyShortcuts" Type="string" Value="present" />
</RegistryKey>
<Shortcut Id="MyStartMenu" Directory=" TheProduct MenuDirectory"
Name="TheProduct 1.0" Icon="TheProduct.exe" IconIndex="0"
WorkingDirectory="INSTALLLOCATION" Advertise="no" Target="[#TheProduct.exe]"
/>
<Shortcut Id="MyDesktop" Directory="DesktopFolder" Name="TheProduct
1.0" Icon="TheProduct.exe" IconIndex="0" WorkingDirectory="INSTALLLOCATION"
Advertise="no" Target="[#TheProduct.exe]" />
</Component>
After installation, my users frequently add command-line flags to the
shortcut. When they upgrade to a new version, their shortcuts are
overwritten, losing the command-line flags. I added the NeverOverwrite
attribute to the Component, but it didn't have any effect.
All my upgrades are done with Product Id="*", so they're all "major"
upgrades.
Am I doing something wrong with my Wix? Failing that, is there any
reasonable way to preserve the command-line parameters my users have added
to the shortcut?
Thanks,
Jeff Paulsen
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users