Discussion:
[WiX-users] Registry check for Acrobat reader
kim
2011-03-30 14:50:49 UTC
Permalink
I need to check if any version of acrobat reader is installed on target
machine. IF not installed display error message and stop installation.

Wix code:




ACROBATREADER = "notfound"

My problem is,above message always gets displayed whether or not acrobat
reader is installed or not. It does not check the condition ACROBATREADER =
"notfound".

I also tried folloiwng way but still the same result




ACROBATREADER

Any suggestions please? Thanks

--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Registry-check-for-Acrobat-reader-tp6223495p6223495.html
Sent from the wix-users mailing list archive at Nabble.com.
kim
2011-03-30 15:38:05 UTC
Permalink
Is there a way to check if certain path or Key exists in registry?

I have similar condition set for Silverlight which works great. but not for
acrobat reader.

The difference in registry search is as follows





please advice. thanks

--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Registry-check-for-Acrobat-reader-tp6223495p6223522.html
Sent from the wix-users mailing list archive at Nabble.com.
Chad Petersen
2011-03-30 17:43:42 UTC
Permalink
I think this is happening because your Silverlight check has a version
number in the registry Data and the URLProtocol has no value in the
registry Data for that string. I think you might need to check a setting
that would actually have a value. As soon as I put a value of "Test" in
the URLProtocol then the check started working fine.

I also had luck with this code, but you'd probably need a separate
RegistrySearch for each version using this approach.

<Property Id="ACROBATREADER">
<RegistrySearch Id="AcrobatReaderChk" Root="HKLM"
Key="SOFTWARE\Adobe\Acrobat Reader\9.0\Installer" Type="directory"
Name="Path"/>
</Property>
<Condition Message="Error: This application requires Acrobat Reader to
be installed">ACROBATREADER</Condition>



-----Original Message-----
From: kim [mailto:***@gmail.com]
Sent: Wednesday, March 30, 2011 7:51 AM
To: wix-***@lists.sourceforge.net
Subject: [WiX-users] Registry check for Acrobat reader

I need to check if any version of acrobat reader is installed on target
machine. IF not installed display error message and stop installation.

Wix code:




ACROBATREADER = "notfound"

My problem is,above message always gets displayed whether or not acrobat
reader is installed or not. It does not check the condition
ACROBATREADER =
"notfound".

I also tried folloiwng way but still the same result




ACROBATREADER

Any suggestions please? Thanks

--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Registry-c
heck-for-Acrobat-reader-tp6223495p6223495.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
kim
2011-03-30 19:33:43 UTC
Permalink
Thanks for the suggestion Chad.

One more thing...this registry key (HKLM\SOFTWARE\Adobe\Acrobat
Reader\9.0\Installer) will work on Windows XP. But not for Windows 7 or
Server 2008 as I cant find relavent key here. Any sugguestions what can be
done for these OS.

Regards

--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Registry-check-for-Acrobat-reader-tp6223495p6224663.html
Sent from the wix-users mailing list archive at Nabble.com.
Chad Petersen
2011-03-30 21:28:18 UTC
Permalink
You might check with Adobe and see what their recommended method is for
detecting their application. I've had good luck doing that with third
party apps I've needed to detect. Never actually needed to check for
Acrobat myself.

-----Original Message-----
From: kim [mailto:***@gmail.com]
Sent: Wednesday, March 30, 2011 12:34 PM
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] Registry check for Acrobat reader

Thanks for the suggestion Chad.

One more thing...this registry key (HKLM\SOFTWARE\Adobe\Acrobat
Reader\9.0\Installer) will work on Windows XP. But not for Windows 7 or
Server 2008 as I cant find relavent key here. Any sugguestions what can
be
done for these OS.

Regards

--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Registry-c
heck-for-Acrobat-reader-tp6223495p6224663.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
Peter Shirtcliffe
2011-03-31 08:16:59 UTC
Permalink
If you need to see if the user can read a PDF file, rather than detect the
Acrobat reader application specifically, why not test for the file
association so that *any* PDF reader will satisfy the check (I much prefer an
alternative PDF reader myself).
The keys to test for would be HKLM\Software\Classes\.pdf and
HKCU\Software\Classes\.pdf
Your condition would be something like: Installed or <first value exists> or
<second value exists>

-----Original Message-----
From: kim [mailto:***@gmail.com]
Sent: 30 March 2011 15:51
To: wix-***@lists.sourceforge.net
Subject: [WiX-users] Registry check for Acrobat reader

I need to check if any version of acrobat reader is installed on target
machine. IF not installed display error message and stop installation.

Wix code:




ACROBATREADER = "notfound"

My problem is,above message always gets displayed whether or not acrobat
reader is installed or not. It does not check the condition ACROBATREADER =
"notfound".

I also tried folloiwng way but still the same result




ACROBATREADER

Any suggestions please? Thanks

--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Registry-check-
for-Acrobat-reader-tp6223495p6223495.html
Sent from the wix-users mailing list archive at Nabble.com.

-----------------------------------------------------------------------------
-
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK.
kim
2011-03-31 17:13:20 UTC
Permalink
Thanks so much Peter.

Your suggestion works like a charm.

Regards

--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Registry-check-for-Acrobat-reader-tp6223495p6227952.html
Sent from the wix-users mailing list archive at Nabble.com.

Loading...