I think my question would be why the user is forced into a (somewhat unfriendly) specification of command line parameters as opposed to a friendlier scenario using (for example) a configuration file, or a configuration interface that stores things somewhere appropriate.
You may want to take a closer look at the design here. What is the user specifying via the shortcut which can apparently not be handled through a better mechanism? Just my $.02. Regards, Richard -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Paulsen Sent: Tuesday, June 19, 2007 12:39 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] preventing the overwrite of Shortcut 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users * C O N F I D E N T I A L I T Y N O T I C E * ----------------------------------------------------------- The content of this e-mail is intended solely for the use of the individual or entity to whom it is addressed. If you have received this communication in error, be aware that forwarding it, copying it, or in any way disclosing its content to any other person, is strictly prohibited. Quixote Traffic Corporation is neither liable for the contents, nor for the proper, complete and timely transmission of (the information contained in) this communication. If you have received this communication in error, please notify the author by replying to this e-mail immediately and delete the material from any computer. ------------------------------------------------------------------------- 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 WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users