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:phildgwil...@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


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


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

Reply via email to