Discussion:
[WiX-users] Setting Compatibility Mode on shortcut for all users
Chris Moxon
2015-07-06 16:52:30 UTC
Permalink
I have a msi that has its InstallScope set to "perMachine" and it creates a shortcut which is available to all the 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 the shortcut does indeed appear for all the users - so far so good !!

But I also have this 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 is to set the "Compatibility Mode" on the shortcut to be "Windows 7" - but this only happens for the user that installed our product, it doesn't get set on the shortcut for the other users who are likely to login to the PC.
Does anyone know how I can set this flag on the shortcut for all the users ?
Many Thanks,
Chris.


If you've received this email by mistake, we're sorry for bothering you. It may contain information that's confidential, so please delete it without sharing it. And if you let us know, we can try to stop it from happening again. Thank you.

We may monitor any emails sent or received by us, or on our behalf. If we do, this will be in line with relevant law and our own policies.

Eque2 Limited. Registered in England at Freetrade Exchange, 37 Peter Street, Manchester, M2 5GB. Registered number 08179642.
Phil Wilson
2015-07-06 20:11:05 UTC
Permalink
It might be "works as designed". Raymond Chen appears adamant that it
shouldn't be done in an install anyway:

http://blogs.msdn.com/b/oldnewthing/archive/2010/03/11/9976571.aspx
---------------
Phil Wilson
Post by Chris Moxon
<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 the shortcut does indeed appear for all the users - so far so good !!
<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 is to set the "Compatibility Mode" on the shortcut to be "Windows 7" - but this only happens for the user that installed our product, it doesn't get set on the shortcut for the other users who are likely to login to the PC.
Does anyone know how I can set this flag on the shortcut for all the users ?
Many Thanks,
Chris.
If you've received this email by mistake, we're sorry for bothering you. It may contain information that's confidential, so please delete it without sharing it. And if you let us know, we can try to stop it from happening again. Thank you.
We may monitor any emails sent or received by us, or on our behalf. If we do, this will be in line with relevant law and our own policies.
Eque2 Limited. Registered in England at Freetrade Exchange, 37 Peter Street, Manchester, M2 5GB. Registered number 08179642.
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
Hoover, Jacob
2015-07-06 20:21:20 UTC
Permalink
Wouldn't the "right" way be to manifest the EXE declaring which version of Windows it is compatible with, and let the newer OS's decide if they need to shim the app?

-----Original Message-----
From: Phil Wilson [mailto:***@gmail.com]
Sent: Monday, July 06, 2015 3:11 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Setting Compatibility Mode on shortcut for all users

It might be "works as designed". Raymond Chen appears adamant that it shouldn't be done in an install anyway:

http://blogs.msdn.com/b/oldnewthing/archive/2010/03/11/9976571.aspx
---------------
Phil Wilson
Post by Chris Moxon
<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 the shortcut does indeed appear for all the users - so far so good !!
<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 is to set the "Compatibility Mode" on the shortcut to be "Windows 7" - but this only happens for the user that installed our product, it doesn't get set on the shortcut for the other users who are likely to login to the PC.
Does anyone know how I can set this flag on the shortcut for all the users ?
Many Thanks,
Chris.
If you've received this email by mistake, we're sorry for bothering you. It may contain information that's confidential, so please delete it without sharing it. And if you let us know, we can try to stop it from happening again. Thank you.
We may monitor any emails sent or received by us, or on our behalf. If we do, this will be in line with relevant law and our own policies.
Eque2 Limited. Registered in England at Freetrade Exchange, 37 Peter Street, Manchester, M2 5GB. Registered number 08179642.
----------------------------------------------------------------------
-------- Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
Chris Moxon
2015-07-07 13:41:02 UTC
Permalink
I just tried setting Windows 7 compatibility in the app manifest and removing the tick-box on the shortcut - but alas that makes our application fail. It's using a third party ODBC driver that doesn't seem to work unless we have the tick-box selected on the short-cut.

-----Original Message-----
From: Hoover, Jacob [mailto:***@greenheck.com]
Sent: 06 July 2015 21:21
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Setting Compatibility Mode on shortcut for all users

Wouldn't the "right" way be to manifest the EXE declaring which version of Windows it is compatible with, and let the newer OS's decide if they need to shim the app?

-----Original Message-----
From: Phil Wilson [mailto:***@gmail.com]
Sent: Monday, July 06, 2015 3:11 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Setting Compatibility Mode on shortcut for all users

It might be "works as designed". Raymond Chen appears adamant that it shouldn't be done in an install anyway:

http://blogs.msdn.com/b/oldnewthing/archive/2010/03/11/9976571.aspx
---------------
Phil Wilson
Post by Chris Moxon
<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 the shortcut does indeed appear for all the users - so far so good !!
<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 is to set the "Compatibility Mode" on the shortcut to be "Windows 7" - but this only happens for the user that installed our product, it doesn't get set on the shortcut for the other users who are likely to login to the PC.
Does anyone know how I can set this flag on the shortcut for all the users ?
Many Thanks,
Chris.
If you've received this email by mistake, we're sorry for bothering you. It may contain information that's confidential, so please delete it without sharing it. And if you let us know, we can try to stop it from happening again. Thank you.
We may monitor any emails sent or received by us, or on our behalf. If we do, this will be in line with relevant law and our own policies.
Eque2 Limited. Registered in England at Freetrade Exchange, 37 Peter Street, Manchester, M2 5GB. Registered number 08179642.
----------------------------------------------------------------------
-------- Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


If you've received this email by mistake, we're sorry for bothering you. It may contain information that's confidential, so please delete it without sharing it. And if you let us know, we can try to stop it from happening again. Thank you.

We may monitor any emails sent or received by us, or on our behalf. If we do, this will be in line with relevant law and our own policies.

Eque2 Limited. Registered in England at Freetrade Exchange, 37 Peter Street, Manchester, M2 5GB. Registered number 08179642.
Hoover, Jacob
2015-07-07 15:55:52 UTC
Permalink
You might need to deploy a shim db, though you'd have to define the specific compatibly settings you need.

https://technet.microsoft.com/en-us/library/dd837647(v=ws.10).aspx

https://technet.microsoft.com/en-us/library/dd837648(WS.10).aspx


-----Original Message-----
From: Chris Moxon [mailto:***@eque2.com]
Sent: Tuesday, July 07, 2015 8:41 AM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Setting Compatibility Mode on shortcut for all users

I just tried setting Windows 7 compatibility in the app manifest and removing the tick-box on the shortcut - but alas that makes our application fail. It's using a third party ODBC driver that doesn't seem to work unless we have the tick-box selected on the short-cut.

-----Original Message-----
From: Hoover, Jacob [mailto:***@greenheck.com]
Sent: 06 July 2015 21:21
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Setting Compatibility Mode on shortcut for all users

Wouldn't the "right" way be to manifest the EXE declaring which version of Windows it is compatible with, and let the newer OS's decide if they need to shim the app?

-----Original Message-----
From: Phil Wilson [mailto:***@gmail.com]
Sent: Monday, July 06, 2015 3:11 PM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Setting Compatibility Mode on shortcut for all users

It might be "works as designed". Raymond Chen appears adamant that it shouldn't be done in an install anyway:

http://blogs.msdn.com/b/oldnewthing/archive/2010/03/11/9976571.aspx
---------------
Phil Wilson
Post by Chris Moxon
<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 the shortcut does indeed appear for all the users - so far so good !!
<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 is to set the "Compatibility Mode" on the shortcut to be "Windows 7" - but this only happens for the user that installed our product, it doesn't get set on the shortcut for the other users who are likely to login to the PC.
Does anyone know how I can set this flag on the shortcut for all the users ?
Many Thanks,
Chris.
If you've received this email by mistake, we're sorry for bothering you. It may contain information that's confidential, so please delete it without sharing it. And if you let us know, we can try to stop it from happening again. Thank you.
We may monitor any emails sent or received by us, or on our behalf. If we do, this will be in line with relevant law and our own policies.
Eque2 Limited. Registered in England at Freetrade Exchange, 37 Peter Street, Manchester, M2 5GB. Registered number 08179642.
----------------------------------------------------------------------
-------- Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


If you've received this email by mistake, we're sorry for bothering you. It may contain information that's confidential, so please delete it without sharing it. And if you let us know, we can try to stop it from happening again. Thank you.

We may monitor any emails sent or received by us, or on our behalf. If we do, this will be in line with relevant law and our own policies.

Eque2 Limited. Registered in England at Freetrade Exchange, 37 Peter Street, Manchester, M2 5GB. Registered number 08179642.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Chris Moxon
2015-07-07 13:48:50 UTC
Permalink
Well perhaps Raymond Chen lives in a different world to the one I do. Yes in an ideal world, we would fix our app so that it doesn't need the compatibility tick-box checked - but the problem with our app is that it uses a third party ODBC driver that is not compatible - we cannot change that part of our product ( & the third party in question aren't bothered about changing it either ) so we cannot fix our app. Setting the tick-box on the shortcut for the current user is a quick, easy ( & cost effective ) solution to our needs - we just need to try and get it set for all users.

-----Original Message-----
From: Phil Wilson [mailto:***@gmail.com]
Sent: 06 July 2015 21:11
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Setting Compatibility Mode on shortcut for all users

It might be "works as designed". Raymond Chen appears adamant that it shouldn't be done in an install anyway:

http://blogs.msdn.com/b/oldnewthing/archive/2010/03/11/9976571.aspx
---------------
Phil Wilson
Post by Chris Moxon
<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 the shortcut does indeed appear for all the users - so far so good !!
<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 is to set the "Compatibility Mode" on the shortcut to be "Windows 7" - but this only happens for the user that installed our product, it doesn't get set on the shortcut for the other users who are likely to login to the PC.
Does anyone know how I can set this flag on the shortcut for all the users ?
Many Thanks,
Chris.
If you've received this email by mistake, we're sorry for bothering you. It may contain information that's confidential, so please delete it without sharing it. And if you let us know, we can try to stop it from happening again. Thank you.
We may monitor any emails sent or received by us, or on our behalf. If we do, this will be in line with relevant law and our own policies.
Eque2 Limited. Registered in England at Freetrade Exchange, 37 Peter Street, Manchester, M2 5GB. Registered number 08179642.
----------------------------------------------------------------------
-------- Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


If you've received this email by mistake, we're sorry for bothering you. It may contain information that's confidential, so please delete it without sharing it. And if you let us know, we can try to stop it from happening again. Thank you.

We may monitor any emails sent or received by us, or on our behalf. If we do, this will be in line with relevant law and our own policies.

Eque2 Limited. Registered in England at Freetrade Exchange, 37 Peter Street, Manchester, M2 5GB. Registered number 08179642.
Wheeler, Blaine (DSHS/DCS)
2015-07-07 15:10:55 UTC
Permalink
Although making the appropriate shortcut during installation is the best answer normally - If it isn't working this way could you create the per user shortcut a different way after installation completes. Maybe Active Directory policy or power shell during logon or ????

-----Original Message-----
From: Chris Moxon [mailto:***@eque2.com]
Sent: Tuesday, July 07, 2015 6:49 AM
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Setting Compatibility Mode on shortcut for all users

Well perhaps Raymond Chen lives in a different world to the one I do. Yes in an ideal world, we would fix our app so that it doesn't need the compatibility tick-box checked - but the problem with our app is that it uses a third party ODBC driver that is not compatible - we cannot change that part of our product ( & the third party in question aren't bothered about changing it either ) so we cannot fix our app. Setting the tick-box on the shortcut for the current user is a quick, easy ( & cost effective ) solution to our needs - we just need to try and get it set for all users.

-----Original Message-----
From: Phil Wilson [mailto:***@gmail.com]
Sent: 06 July 2015 21:11
To: General discussion about the WiX toolset.
Subject: Re: [WiX-users] Setting Compatibility Mode on shortcut for all users

It might be "works as designed". Raymond Chen appears adamant that it shouldn't be done in an install anyway:

http://blogs.msdn.com/b/oldnewthing/archive/2010/03/11/9976571.aspx
---------------
Phil Wilson
Post by Chris Moxon
<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 the shortcut does indeed appear for all the users - so far so good !!
<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 is to set the "Compatibility Mode" on the shortcut to be "Windows 7" - but this only happens for the user that installed our product, it doesn't get set on the shortcut for the other users who are likely to login to the PC.
Does anyone know how I can set this flag on the shortcut for all the users ?
Many Thanks,
Chris.
If you've received this email by mistake, we're sorry for bothering you. It may contain information that's confidential, so please delete it without sharing it. And if you let us know, we can try to stop it from happening again. Thank you.
We may monitor any emails sent or received by us, or on our behalf. If we do, this will be in line with relevant law and our own policies.
Eque2 Limited. Registered in England at Freetrade Exchange, 37 Peter Street, Manchester, M2 5GB. Registered number 08179642.
----------------------------------------------------------------------
-------- Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


If you've received this email by mistake, we're sorry for bothering you. It may contain information that's confidential, so please delete it without sharing it. And if you let us know, we can try to stop it from happening again. Thank you.

We may monitor any emails sent or received by us, or on our behalf. If we do, this will be in line with relevant law and our own policies.

Eque2 Limited. Registered in England at Freetrade Exchange, 37 Peter Street, Manchester, M2 5GB. Registered number 08179642.

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
Continue reading on narkive:
Loading...