Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamically assigning name to shortcut at run time in WIX

Tags:

wix

wix3.7

I want to assign different names to a shortcut based on user input. Is this feasible using the WiX toolset? I have tried assigning value of property to Name attribute of Shortcut element but it does not work.

like image 658
user1668102 Avatar asked Oct 28 '25 05:10

user1668102


1 Answers

The Name column of the Shortcut Table isn't of type Formatted therefore it isn't possible to use [PROPERTY] to mutate it at runtime.

The only ways I know how to do it are:

  1. Skip the shortcut table and write a custom action to handle it yourself.
  2. Write a custom action to dynamically author the ShortCut table at runtime using SQL TEMPORARY syntax.
  3. There might be an extension out there that has implemented #2.
like image 168
Christopher Painter Avatar answered Oct 30 '25 13:10

Christopher Painter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!