OK, I found the problem: I copy/pasted the code into a new sample and forgot to change the GUID :( Once I use a unique GUID everything works fine.
MeCoco On 1/10/2011 6:02 PM, MeCoco wrote: > Hi all, > > I wrote the needed code to create 2 shortcuts: one in the Start Menu and > the other one on the desktop. The problem is that when uninstalling the > product the shortcuts are not deleted, they both remain in the system. > > The code looks like: > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="ProgramFilesFolder"> > <Directory Id="INSTALLDIR" Name="$(var.InstallDirectoryName)"> > > <Component Id="MyDoc.txt" Guid="MY-GUID"> > <File Id="MyDoc.txt" Source="MyDoc.txt" KeyPath="yes" Checksum="yes" /> > </Component> > > </Directory> > </Directory> > > <Directory Id="ProgramMenuFolder"> > <Directory Id="ApplicationProgramsFolder" Name="$(var.ProductName)"/> > </Directory> > <Directory Id="PersonalFolder"> > <Directory Id="UserLocalAppData" Name="MyAgent" /> > </Directory> > <Directory Id="DesktopFolder" /> > > </Directory> > > <!-- Program Shortcut --> > <Component Id="ApplicationShortcut" Guid="{MY-GUID}" > Directory="ApplicationProgramsFolder"> > <!-- Start menu shortcut --> > <Shortcut Id="ApplicationStartMenuShortcut" > Name="$(var.ProductName)" > Description="$(var.ProductName) Application" > Target="[INSTALLDIR]MyDoc.txt" > WorkingDirectory="INSTALLDIR"/> > <!-- Desktop shortcut --> > <Shortcut Id="DesktopShortcut" > Name="$(var.ProductName)" > Description="$(var.ProductName) Application" > Directory="DesktopFolder" > Target="[INSTALLDIR]MyDoc.txt" > WorkingDirectory="INSTALLDIR"/> > <CreateFolder Directory="UserLocalAppData" /> > <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/> > <RemoveFolder Id="UserLocalAppData" Directory="UserLocalAppData" > On="uninstall"/> > <RegistryValue Root="HKCU" Key="Software\Microsoft\Installer" > Name="$(var.ProductName)" Type="integer" Value="1" KeyPath="yes"/> > </Component> > > <!--Install per machine--> > <Property Id="ALLUSERS" Value="1" /> > > <!--Application features--> > <Feature Id="MainApp" Level="1" Title="$(var.ProductName)" > Absent="disallow" ConfigurableDirectory="INSTALLDIR"> > <ComponentRef Id="MyDoc.txt" /> > <ComponentRef Id="ApplicationShortcut"/> > </Feature> > > > Can pls somebody point me where am I doing smth wrong? The shortcuts are > never deleted, neither when uninstalling the program from add/remove > programs, nor when uninstalling it via an upgrade. > Thank you! > MeCoco > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users