Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for .NET462 #11

Closed
Christobal25 opened this issue Jan 23, 2017 · 3 comments
Closed

Check for .NET462 #11

Christobal25 opened this issue Jan 23, 2017 · 3 comments

Comments

@Christobal25
Copy link

Hey,
when I wan´t to check if .NET462 is installed it is not possible.

project.SetNetFxPrerequisite("NETFRAMEWORK462='#1'", "Please install .NET 4.6.2 first");

this throws an Exception

error LGHT0094: Unresolved reference to symbol 'Property:NETFRAMEWORK462'

WixToolset v.3.11+ is installed

Thanks Christobal25

@oleg-shilo
Copy link
Owner

I am guessing that this property is not a pat of WiXNetFxExtension. This is the fragment of the Wix# XML documentation:

Binds the LaunchCondition to the version condition based on WiXNetFxExtension properties. 
The typical conditions are:
NETFRAMEWORK20='#1'
NETFRAMEWORK40FULL='#1'
NETFRAMEWORK35='#1'
NETFRAMEWORK30_SP_LEVEL and NOT NETFRAMEWORK30_SP_LEVEL='#0'
...
The full list of names and values can be found here http://wixtoolset.org/documentation/manual/v3/customactions/wixnetfxextension.html 

If you indeed want to use the property with that name you will need either to create and initialize it by yourself or include the extension that does it for you.

A very quick look to the link from the doc reviled that WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED might be what you need. But you will need to test it...

@Christobal25
Copy link
Author

Hey,
thanks for the fast answer.

@mbinic
Copy link
Contributor

mbinic commented Jan 26, 2018

Sorry for replying to a closed question, but just so you're aware: now you can use the new Conditions for this instead, e.g. Condition.Net462_Installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants