Create Shortcut - AppUserModelID: no variables possible

Got a problem you cannot solve? Try here.
InstallAware@Jelich.info
Posts: 41
Joined: Mon Apr 13, 2009 8:58 am

Create Shortcut - AppUserModelID: no variables possible

Postby InstallAware@Jelich.info » Fri Feb 12, 2016 5:22 am

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

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Create Shortcut - AppUserModelID: no variables possible

Postby FrancescoT » Fri Feb 12, 2016 1:11 pm

Dear Michael,

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

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

InstallAware@Jelich.info
Posts: 41
Joined: Mon Apr 13, 2009 8:58 am

Re: Create Shortcut - AppUserModelID: no variables possible

Postby InstallAware@Jelich.info » Tue Feb 21, 2017 11:34 am

Any findings?

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Create Shortcut - AppUserModelID: no variables possible

Postby FrancescoT » Wed Feb 22, 2017 10:09 am

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 47 guests