Wix create non advertised shortcut for all users / per machine

Posted by mcdon on Stack Overflow See other posts from Stack Overflow or by mcdon
Published on 2010-01-13T16:12:25Z Indexed on 2010/05/13 9:14 UTC
Read the original article Hit count: 556

Filed under:
|
|
|
|

In WIX, how do you create a non advertised shortcut in the allusers profile? So far I've only been able to accomplish this with advertised shortcuts. I prefer advertised shortcuts because you can go to the shortcut's properties and use "find target".

In the tutorials I've seen use a registry value for the keypath of a shortcut. The problem is they use HKCU as the root. When HKCU is used, and another user uninstalls the program (since it's installed for all users) the registry key is left behind. When I use HKMU as the root I get an ICE57 error, but the key is removed when another user uninstalls the program. I seem to be pushed towards using HKCU though HKMU seems to behave correctly (per-user vs all-users).

When I try to create the non advertised shortcut I get various ICE error such as ICE38, ICE43, or ICE 57. Most articles I've seen recommend "just ignore the ice errors". There must be a way to create the non advertised shortcuts, without creating ICE errors.

Please post sample code for a working example.

© Stack Overflow or respective owner

Related posts about wix

Related posts about wix3