This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Compare .Net Framework version in InstallScript MSI projects
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 16, 2016
07:05 AM
Compare .Net Framework version in InstallScript MSI projects
Hi,
We have created Installscript MSI projects, we need to check .Net Framework 4.5 or later is installed or not. We are readying the version value from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\Version , but not able to compare with = or >= because of the decimal value. Can you please suggest how to compare version value. Even I tried with few build-in functions like VerCompare, but not able to do because .net Framework version value does not have all four components, e.g. 1.2.3.4
Please suggest me how to compare the .Net Framework version through installscript.
Thanks in advance
We have created Installscript MSI projects, we need to check .Net Framework 4.5 or later is installed or not. We are readying the version value from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\Version , but not able to compare with = or >= because of the decimal value. Can you please suggest how to compare version value. Even I tried with few build-in functions like VerCompare, but not able to do because .net Framework version value does not have all four components, e.g. 1.2.3.4
Please suggest me how to compare the .Net Framework version through installscript.
Thanks in advance
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 16, 2016
04:51 PM
Instead of doing that, can you just go to 'Application Data' - 'Redistributables', scroll down and and check the appropriate prerequisite?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 17, 2016
04:48 AM
Hi rguggisberg,
In our project we need to do a minimum check for .Net Framework 4.5, the setup needs to check for the version(if framework 4.5 or greater is installed then the setup execution will continue otherwise it will get abort)
If we use the 'Redistributables' we can check that particular version I guess, but we want to allow if .Net Framework 4.5 or later is installed.
Thanks in advance
In our project we need to do a minimum check for .Net Framework 4.5, the setup needs to check for the version(if framework 4.5 or greater is installed then the setup execution will continue otherwise it will get abort)
If we use the 'Redistributables' we can check that particular version I guess, but we want to allow if .Net Framework 4.5 or later is installed.
Thanks in advance
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 18, 2016
08:47 AM
Any update on this please?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 18, 2016
04:29 PM
Try something like this:
Go to Installation Information tab, General Information. And set this as a Condition
DOTNETVERSION45FULL>="#1"
Then add a text string for
IDPROP_EXPRESS_LAUNCH_CONDITION_DOTNETVERSION45FULL
Microsoft .NET Framework 4.5 Full package or greater needs to be installed for this installation to continue.
Go to Installation Information tab, General Information. And set this as a Condition
DOTNETVERSION45FULL>="#1"
Then add a text string for
IDPROP_EXPRESS_LAUNCH_CONDITION_DOTNETVERSION45FULL
Microsoft .NET Framework 4.5 Full package or greater needs to be installed for this installation to continue.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 20, 2016
09:13 AM
Hi rguggisberg,
Using system search I read the value and put it in DOTNETVERSION45FULL and check the condition as you mentioned, but not able to do so.
Actually we want to compare the version using installscript if no other option is there to do this, can you please suggest if there is any way to do this. In future if Microsoft launches .Net framework 5.x also we need to consider
Thanks in advance
Using system search I read the value and put it in DOTNETVERSION45FULL and check the condition as you mentioned, but not able to do so.
Actually we want to compare the version using installscript if no other option is there to do this, can you please suggest if there is any way to do this. In future if Microsoft launches .Net framework 5.x also we need to consider
Thanks in advance