Create Shortcut - AppUserModelID: no variables possible
Posted: 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
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