Page 1 of 1

Create Shortcut - AppUserModelID: no variables possible

Posted: Fri Feb 12, 2016 5:22 am
by InstallAware@Jelich.info
Hi Support Team,

my MSI script contains the following lines:

~InstallAware Clipboard Data~
~Set Variable~
~{9E4B3ADB-F5D4-49DC-9E73-751FC69F9063}~
~MY_APP_ID$MYAH$MYAH$FALSE~
~Company.Product.App.v3~

~InstallAware Clipboard Data~
~Create Shortcut~
~{DE8BF363-0242-41FA-B2A0-7CEAF8482E8F}~
~$TARGETDIR$\GuckstDu.exe|FALSE~
~Guckst Du~
~$SHORTCUTFOLDER$|FALSE~
~~
~/MySwitch~
~|FALSE~
~|FALSE~
~|$MY_APP_ID$~
~0|78~

The created shotcut does not work as expected. It is able to start the program, but the task bar contains another icon for the running process. I'd expect that the process was handled by the Icon created by setup.

I inspected the binary content of the link file and noticed that it contains the text "$MY_APP_ID$". Therefore I added the following line to the script:

~InstallAware Clipboard Data~
~Create Shortcut~
~{2DD1B2F6-4557-4975-BF5F-00A84516E16E}~
~$TARGETDIR$\GuckstDu.exe|FALSE~
~Guckst Du 2~
~$SHORTCUTFOLDER$|FALSE~
~~
~/MySwitch~
~|FALSE~
~|FALSE~
~|Company.Product.App.v3~
~0|78~

This command does not use the variable but the variable content (Company.Product.App.v3) directly. The link created by this command works well.

Would you mind to consider to support variables in the Application User Model Identifier field of the Create Shortcut command?

Best regards
Michael

Re: Create Shortcut - AppUserModelID: no variables possible

Posted: Fri Feb 12, 2016 1:11 pm
by FrancescoT
Dear Michael,

Strange! Let me check this and I'll let you know.

Regards

Re: Create Shortcut - AppUserModelID: no variables possible

Posted: Tue Feb 21, 2017 11:34 am
by InstallAware@Jelich.info
Any findings?

Re: Create Shortcut - AppUserModelID: no variables possible

Posted: Wed Feb 22, 2017 10:09 am
by FrancescoT
Dear Michael,

it's in this way by design and I doubt it will be possible to have such possibility in future. There are some limitations with the "Create Shortcut" command, due the fact that most of its parameters have to resolved at build time.

Hope this helps you.

Regards