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:chris.mo...@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:jacob.hoo...@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:phildgwil...@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


On Mon, Jul 6, 2015 at 9:52 AM, Chris Moxon <chris.mo...@eque2.com> wrote:
> 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.
> ----------------------------------------------------------------------
> -------- 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-users@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-users@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-users@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-users@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-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to