Rob has a blog entry about this. http://robmensching.com/blog/archive/2007/04/27/How-to-create-an-uninstall-shortcut-and-pass-all-the.aspx
Rob Anil Prasad wrote: > Hi All, > > I am creating a shortcut using following syntax in WiX. > > > > > > <Directory Id="DocsFolder" Name="Docs" LongName="Documents"> > > <Component Guid="MyGUID" Id="ChmFileId" DiskId='1'> > > <File Id='CHMFile' Name='File.chm' LongName='file.chm' > Checksum='yes' Vital='yes' src='full_path_to_src' > > > <Shortcut Id="StartMenuCHM" Directory="ProgramMenuDir" > Name="SMFile.chm" Advertise="no" LongName='This component Doc' /> > > </File> > > </Component> > > </Directory> > > > > > > Now when I run MSI validation using ORCA, I am getting these errors, > which I’m not able to make sense out of it. > > > > 1. ICE43 ERROR Component ChmFileId has non-advertised > shortcuts. It should use a registry key under HKCU as its KeyPath, not a > file. > > Why do I need to create registry key for installing shortcut? > > > > 2. ICE57 ERROR Component ‘ChmFileId’ has both per-user and > per-machine data with a per-machine KeyPath. > > What does this error means? > > > > Is there better way of doing this than what I have done? > > Thanks a lot, > > Anil > > > > > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 ------------------------------------------------------------------------- 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