For your RemoveFile element to work you'll need to specify ".lnk" as part of 
the filename otherwise Windows Installer won't find the file.
However you shouldn't need a RemoveFile to remove a Shortcut which your 
installation creates unless it's modified in some way after installation. Same 
goes for the RegistryValue & RemoveRegistryKey. I've never needed to use them & 
don't see any issues with uninstallation & the How To guide at 
http://wix.sourceforge.net/manual-wix3/create_start_menu_shortcut.htm would 
mention them if required.

Palbinder Sandher 
Software Deployment Engineer
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 
Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 
0SP
Email Disclaimer

-----Original Message-----
From: Peter Glatzer [mailto:peter.glat...@gfb-consulting.de] 
Sent: 29 June 2011 13:31
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Remove Shortcut on uninstall

 

Hi i use wix 3.5 with this code to create a shortcut

<Directory Id="ProgramMenuDir" Name="XXX">
<Component Id="CompProgramMenu" Guid="e89955e2-daae-4b83-b3a4-644ee504c6ee">
<Shortcut Id="SQLManualStartMenuShortcut"
Name="!(loc.MANUALDESCRIPTION)"
Description="!(loc.MANUALDESCRIPTION)"
Target="[INSTALLLOCATION]documents\!(loc.ManualFile)"
WorkingDirectory="INSTALLLOCATION" />

<RemoveFile Id="SQLManualStartMenuShortcut" Directory="ProgramMenuDir"
Name="!(loc.MANUALDESCRIPTION)" On="uninstall"/>
<RemoveFolder Id="ProgramMenuDir" On="uninstall" />

<RegistryValue Root="HKCU"
Key="SOFTWARE\XXX"
Type="string"
KeyPath="yes"
Name="OracleManualLink"
Value="yes" />

<RemoveRegistryKey Root="HKCU" Key="SOFTWARE\XXX\OracleManualLink"
Action="removeOnUninstall" />

</Component>
</Directory>

But after uninstallation the shortcut always exists.
The Setup installs an AddIn so the shortcut directory is not empty after
remove the "SQLManualStartMenuShortcut"

 

Mit freundlichen GrĂ¼ssen 

 

Peter Glatzer

___________________________________________
GFB EDV Consulting und Services Gesellschaft mbH 
E-Mail  <mailto:angelika.j...@gfb-consulting.de>
peter.glat...@gfb-consulting.de
Web  <http://www.gfb-consulting.de/> www.gfb-consulting.de 

 

 

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to