Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20686

Re: Invalid comparison attribute 'StartsWith'

$
0
0

My main issue with the version numbers is that the program in question gets installed in a directory named after its version number and registry settings get placed in a subkey  named after its version number, however it does not remove subkeys from previous versions so I can't test for a subkey. I also can't go by product ID as they change the CLSID with each release. thinking about that made me realize that my approach above won't work anyway as the uninstall registry key where I can get a version number will only contain a version number from that specific version (CLSID). I went back to using Equals and added a second condition to check for containing the other version number and all seems well.

 

-<sdp:ApplicabilityRule SchemaVersion="1.0">

 

 

 

 

-<lar:Or>

 

 

<bar:RegSz Key="HKEY_LOCAL_MACHINE"Subkey="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{68C8359E-216F-4D63-8D99-4713CC8C45A4}"Value="DisplayVersion"RegType32="false"Comparison="EqualTo"Data="10.0.3911.58"/>

 

 

<bar:RegSz Key="HKEY_LOCAL_MACHINE"Subkey="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4DCBD31D-4A5A-46FC-9975-829F4C77FDAB}"Value="DisplayVersion"RegType32="false"Comparison="EqualTo"Data="10.0.3911.24"/>

 

</lar:Or>

</sdp:ApplicabilityRule>



thank you for your response.


Viewing all articles
Browse latest Browse all 20686

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>