Wix - Setting Compatibility Mode on shortcut for all users -


i have msi has installscope set "permachine" , creates shortcut available users:

<directory id="programmenufolder">    <directory id="companyshortcutsdir" name="my company" /> </directory>   <component id="cmp_mainexeshortcut"            directory="companyshortcutsdir"            guid="{b857cd9e-xxxx-yyyy-f2090c50c985}">    <shortcut id="myexestartshortcut"             name="my product"             description="$(var.wix_prodname)"             target="[applicationfolder]myapp.exe"             workingdirectory="applicationfolder"             icon="my.ico" />    <removefolder id="removecompanyshortcutsdir"                 on="uninstall" />    <registryvalue root="hkcu"                  key="software\mycompany"                  name="mainexeshortcut"                  type="integer"                  value="1"                  keypath="yes" /> </component>  

and shortcut indeed appear users - far !!

but have fragment of code:

    <component id="cmp_mainexeshortcutcompat"           directory="companyshortcutsdir"           guid="{c748b7c6-xxxx-yyyy-7cb1823774dc}">       <registryvalue root="hkmu"          key="software\microsoft\windows nt\currentversion\appcompatflags\layers"          name="[applicationfolder]myapp.exe"          type="string"          value="~ win7rtm"           keypath="yes"/> </component> 

who's purpose set "compatibility mode" on shortcut "windows 7" - happens user installed our product, doesn't set on shortcut other users login pc.

does know how can set flag on shortcut users ?

many thanks,

chris.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -