0. AppSearch is tricky. WiX has tried to make it easier to work with but there are still some rough edges. The documentation in WiX and MSI is horribly confusing. So, it takes some time. I can just offer some suggestions.
1. You can't expect the Property value to be used as the starting point for a Search. That Property is the one that gets the *result* of the search. It does not affect where the search starts. 2. Instead, you need to pick up where the RegistrySearch left off. To do that, you should normally nest values either under the RegistrySearch or above it (depending on your search). In this case, it's weird because the registry key has the full path to the file. I'd have to play with the searches a while to see if you can trim off the file name and then add a FileSearch to find the particular version you're looking for. Again, searching is complicated. 3. You could use a CustomAction. You could always write a CustomAction. AppSearch is supposed to be the built-in way of doing things. Built-in is always preferable because there are fewer chances for bugs (at least more people have tested it <grin/>). 4. Typically searches are used to error and then point the user where to go next. You could theoretically show a custom dialog and have a button on that dialog to launch the install. Since your MSI wouldn't be in the InstallExecuteSequence, the other install should succeed (even if it is an MSI). -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rennie Petersen Sent: Wednesday, June 06, 2007 6:35 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Acrobat as a condition Does this have to be done in the MSI? It sounds like it would be more suitable to do it in a bootstrapper, and then run your MSI. Or else add the functionality to the application itself, on first execution. Rennie > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Antony Briggs > Sent: 6. juni 2007 15:19 > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Acrobat as a condition > > Hi all, > > I'm deploying an application that generates and displays PDF > files and need to add a condition of acrobat 8 (reader or > full version) on the installer (and preferably allow them to > install it) > > I'm trying to detect the version of Acrobat installed using > the version of the AcroPDF.dll Dll on the users system. > > The following snippet obtains the location of the DLL file: > > <Property Id="ACROBATDLL"> > <RegistrySearch Id='AcrobatDLLRegistry' Type='raw' > Root='HKCR' > Key='CLSID\{CA8A9780-280D-11CF-A24D-444553540000}\InprocServer > 32' /> </Property> > > Result: > Property(S): ACROBATDLL = C:\Program Files\Adobe\Acrobat > 7.0\ActiveX\AcroPDF.dll > > Now I need to get the version of the dll, which needs to be > version 8.0.0.0. > To this end I'm trying to do a filesearch as follows: > > <Property Id="ACROBATVERSION8"> > <FileSearch Id='AcrobatVersion8File' > Name='[ACROBATDLL]' > MinVersion='8.0.0.0'/> > </Property> > > This isn't returning any results, presumably because I don't > have a directorysearch element. > > Can anybody answer any of the following questions: > 1) Can I make FileSearch work with a full path in the Name property > 2) can I separate the name & path so that I can populate a > DirectorySearch and FileSearch > 3) Is there an easier way to get the FileVersion of the dll > into a property? > (custom action?) > 4) Finally, once I've detected that Acrobat is missing, how > can I allow the user to install it (it will be shipped on the > product CD). > > Thanks, > > Antony > > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by DB2 Express Download DB2 > Express C - the FREE version of DB2 express and take control > of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users