I've all ready been using this, but I want a better solution to cope when Flash becomes version 10... the comparing of "9,0,43,0" against "10,0,0,0" says that 10 is lower as MSI always compares as strings.
Another problem is that Flash installers set all their com registration registry entries to have permissions of "Everyone"="Deny" and so if an installation fails because of this blockage, the version number gets successfully written back (as this is not protected) and it no longer matches the actuall version on the system, which I've discovered on a few systems. It's not clear wht Flash does this, but there's been an MS updqate that does the same: http://support.microsoft.com/kb/923789 It seems to me that a reg query followed by a version query based on that result would be a commonly useful feature.... Wilson, Phil wrote: > > There's no wildcarding in the MSI file search. > > There's a CurrentVersion string in HKLM\Software\Macromedia\FlashPlayer > in comma-separated format, 9,0,16,0 on my system, but without seeing > more examples of that string I don't know if a registry search to get > that value and requiring it to be greater than "8,0,24,0" will work as a > string comparison. > > Phil Wilson > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gareth at > Serif > Sent: Friday, August 17, 2007 3:38 AM > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] AppSearch nesting > > > Thanks for your feedback Phil. you're right though, I did start with > the > CLSID in order to find out which of the many file names could be > installed > is (or isn't)... everytime there's a new version of flash they rename > the > ocx file (flash8.ocx, flash8a.ocx, flash8b.ocx, etc.). > > Is there anyway you can perform the FileSearch with wildcards? > Something > like "flash*.ocx". > > Cheers, > Gareth > > > > > Wilson, Phil wrote: >> >> It looks like you're mixing up FileSearch/DirectorySearch and >> RegistrySearch. >> >> An MSI AppSearch for a registry item has no version limitations - it >> returns the path to the file. That's what you've got. >> >> A Directory/File search can limit version ranges, but you start with a >> DirectorySearch path, something like (no angle brackets): >> >> Property ID = "FLASH" >> DirectorySearch Path="[SystemFolder]Macromed\Flash" >> Depth, Id etc .... >> FileSearch Name ="flash.ocx" MinVersion="8.0.24.0" >> >> And FLASH is set if it's found with those version restrictions. There > is >> no nesting of AppSearch. >> >> Something you'll need to watch out for is that they rename the OCXs, >> which is probably why you started with a CLSID search. So you can do >> several FileSearches in that folder for flash.ocx, flash9.ocx etc and >> use any of the resulting properties for success, or pass that path >> you've got into a custom action to go get the version. I don't know > if >> WiX has any additional search helpers for this, but the MSI AppSearch > on >> the registry won't do a version check for you. >> >> Phil Wilson >> >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Gareth > at >> Serif >> Sent: Tuesday, August 14, 2007 4:29 AM >> To: wix-users@lists.sourceforge.net >> Subject: [WiX-users] AppSearch nesting >> >> >> Hi, >> >> I am trying to use AppSearch to determin if the installed version of >> FlashPlayer is sufficient (greater than 8.0.24.0) and have nested some >> searches as follows: >> <Property Id="FILEVERSIONTEST" Secure="yes"> >> <RegistrySearch Id="FileVersionTestA" Root="HKCR" >> Key="CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}\InprocServer32" >> Type="raw"> >> <FileSearch Id="FileVersionTestB" >> LongName="[FileVersionTestA]" >> MinVersion="8.0.24.0" /> >> </RegistrySearch> >> </Property> >> >> The resulting log file from the install says: >> AppSearch: Property: FILEVERSIONTEST, Signature: FileVersionTestB >> MSI (c) (7C:A0) [10:54:29:026]: PROPERTY CHANGE: Adding > FILEVERSIONTEST >> property. Its value is 'C:\WINDOWS\system32\macromed\flash\flash.ocx'. >> >> The version of FlashPlayer this sytem has is 6.0.79.0. >> >> As such, I'd expect the AppSearch to return false, which it kind of > does >> in >> maintaining the path found in the registry, but when I tweaked the MSI >> to >> test for version 1.0.0.0 the log file was identicle. I suspect the >> failing >> is in the declaration of my 'LongName' attribute for the FileSearch, > but >> I >> can't get my head round how this behavious should work. >> >> Any pointers would be great, >> Gareth >> >> -- >> View this message in context: >> http://www.nabble.com/AppSearch-nesting-tf4266665.html#a12142727 >> Sent from the wix-users mailing list archive at Nabble.com. >> >> >> > ------------------------------------------------------------------------ >> - >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a > browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> >> >> > ------------------------------------------------------------------------ > - >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a > browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> >> > > -- > View this message in context: > http://www.nabble.com/AppSearch-nesting-tf4266665.html#a12197422 > Sent from the wix-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://www.nabble.com/AppSearch-nesting-tf4266665.html#a12234169 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users