I need to remove an existing shortcut produced by other software on Install. Is this possible without using Custom Actions?
Asked
Active
Viewed 502 times
0
-
You might find something in [this answer](https://stackoverflow.com/questions/195919/removing-files-when-uninstalling-wix) that's helpful. Ultimately, it may indeed require a custom action. – lurker Oct 19 '17 at 13:41
1 Answers
1
You can accomplish this using the RemoveFiles table. You will need to know where the shortcut, .lnk file lives to do this. The link that lurker provided should help get you going.

Daniel Lee
- 674
- 1
- 9
- 25
-
1Correct. Although I would question "why". Deleting a resource that you don't own is a component rule violation and won't prevent a repair of the other product from putting it back. It also seems potentially unethical although I don't know the exact scenario to make that judgement in this case. – Christopher Painter Oct 21 '17 at 16:59
-
Thanks Daniel. At last I did same as you mentioned. Although read your solution later, but marking it as the answer. :) – Farrukh Waheed Oct 22 '17 at 07:23
-
@ChristopherPainter: Well, in our situation we are replacing a shortcut of our own product already delivered to customers with a plugin tool. The scenario is that we have to deliver this plugin in a separate installer. In future, it would be part of our product. – Farrukh Waheed Oct 22 '17 at 07:27
-
I would look at the concept of micropackages and bootstrappers/chainers. It should be possible to split your product line out into multiple installers and chain them together in different combinations to support the use cases you want. – Christopher Painter Oct 22 '17 at 12:16