Discussion:
[WiX-users] V C++ 2013 redist detection
Jeremiahf
2014-08-14 21:01:03 UTC
Permalink
Hello everyone,

Has anyone had experience in detecting for V C++ 2013 dependency in their
installer? It's doesn't appear to be as easy as it used to be...

Thank you in Advance,

J
--
"They may forget what you said but they will never forget how you made them
feel." -- Anonymous
Phill Hogland
2014-08-14 21:59:28 UTC
Permalink
I have been using:
<util:ProductSearch ProductCode="{13A4EE12-23EA-3371-91EE-EFB36DDFFF3E}"
Variable="vc2013_x86_SP1" Result="state" />

or
<util:ProductSearch ProductCode="{13A4EE12-23EA-3371-91EE-EFB36DDFFF3E}"
Variable="vc2013_x64_SP1" Result="state" Condition="VersionNT64" />

when it is detected as installed the variable is set to 5, so I install if
less than 5. Seems to work for me.



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/V-C-2013-redist-detection-tp7596368p7596369.html
Sent from the wix-users mailing list archive at Nabble.com.
Bob Arnson
2014-08-15 03:57:33 UTC
Permalink
Post by Phill Hogland
<util:ProductSearch ProductCode="{13A4EE12-23EA-3371-91EE-EFB36DDFFF3E}"
Variable="vc2013_x86_SP1" Result="state" />
I recommend against using a product code search: If a user has a later
version of the runtime installed, it won't be detected. (The VC runtimes
are almost always major upgrades.)

In fact, I recommend against using any search for the VC runtime. They
use the WixStandardBootstrapperApplication/@SuppressDowngradeFailure
option, so you can safely always chain your desired VC runtime version.
If it's outdated, nothing happens.
--
sig://boB
http://joyofsetup.com/
Phill Hogland
2014-08-15 14:38:32 UTC
Permalink
Bob; Thanks for the advice. Sorry for posting incorrect x64 code in the
first post.



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/V-C-2013-redist-detection-tp7596368p7596376.html
Sent from the wix-users mailing list archive at Nabble.com.
Jeremiahf
2014-08-15 15:56:13 UTC
Permalink
Thanks guys but I need to detect if it is installed through an msi and not
a bootstrapper. It also has to be the x86 version.
I was trying to detect it through the registry as I have done for previous
versions of V C++ Redists. Any idea's?

Sorry for the lack of info in my initial email.

Thank you again,

J
Post by Phill Hogland
Bob; Thanks for the advice. Sorry for posting incorrect x64 code in the
first post.
--
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/V-C-2013-redist-detection-tp7596368p7596376.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
"They may forget what you said but they will never forget how you made them
feel." -- Anonymous
Jeremiahf
2014-08-15 18:19:00 UTC
Permalink
"In fact, I recommend against using any search for the VC runtime. They
use the WixStandardBootstrapperApplication/@SuppressDowngradeFailure
option, so you can safely always chain your desired VC runtime version.
If it's outdated, nothing happens."

So this is def a bad way to handle this even though the application getting
installed depends on it?
Post by Jeremiahf
Thanks guys but I need to detect if it is installed through an msi and not
a bootstrapper. It also has to be the x86 version.
I was trying to detect it through the registry as I have done for previous
versions of V C++ Redists. Any idea's?
Sorry for the lack of info in my initial email.
Thank you again,
J
Post by Phill Hogland
Bob; Thanks for the advice. Sorry for posting incorrect x64 code in the
first post.
--
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/V-C-2013-redist-detection-tp7596368p7596376.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
"They may forget what you said but they will never forget how you made
them feel." -- Anonymous
--
"They may forget what you said but they will never forget how you made them
feel." -- Anonymous
Asbjørn Mikkelsen
2014-08-15 19:33:36 UTC
Permalink
The point is that vcredist installs side by side, lots of applications are
dependant on it, so it shouldn't be removed, but there is newer a problem
installing one, even if there is one or many from before.
Post by Jeremiahf
"In fact, I recommend against using any search for the VC runtime. They
option, so you can safely always chain your desired VC runtime version.
If it's outdated, nothing happens."
So this is def a bad way to handle this even though the application getting
installed depends on it?
Post by Jeremiahf
Thanks guys but I need to detect if it is installed through an msi and
not
Post by Jeremiahf
a bootstrapper. It also has to be the x86 version.
I was trying to detect it through the registry as I have done for
previous
Post by Jeremiahf
versions of V C++ Redists. Any idea's?
Sorry for the lack of info in my initial email.
Thank you again,
J
Post by Phill Hogland
Bob; Thanks for the advice. Sorry for posting incorrect x64 code in
the
Post by Jeremiahf
Post by Phill Hogland
first post.
--
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/V-C-2013-redist-detection-tp7596368p7596376.html
Post by Jeremiahf
Post by Phill Hogland
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Post by Jeremiahf
Post by Phill Hogland
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
"They may forget what you said but they will never forget how you made
them feel." -- Anonymous
--
"They may forget what you said but they will never forget how you made them
feel." -- Anonymous
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
mvh
Asbjørn
Phill Hogland
2014-08-14 22:03:52 UTC
Permalink
I have been using:
<util:ProductSearch ProductCode="{13A4EE12-23EA-3371-91EE-EFB36DDFFF3E}"
Variable="vc2013_x86_SP1" Result="state" />

Install when the variable is less than 5.



--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/V-C-2013-redist-detection-tp7596368p7596370.html
Sent from the wix-users mailing list archive at Nabble.com.
Loading...