Hi Rennie,

Thanks for the reply, I had thought about doing the check in the application
but I wouldn't neccessairly have access to the distribution media etc to
kick off acrobat. However, I have taken a second look at MSBuild and it has
exactly the element I need: RegistryFileCheck - it gets the version of an
exe indirectly from a registry key. So I've now created a MSBuild package
for acrobat reader and with the RegistryFileCheck set as a BypassIf. 

Marvellous!

Kind regards,
 
Antony

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rennie
Petersen
Sent: 06 June 2007 14:35
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

Reply via email to