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
- :
- Check registry for dotNet key
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
‎Aug 08, 2013
01:30 PM
Detect .NET Framework 4 SP1 with installscript ?
How I can detect .NET Framework 4 SP1 with installscript ? Code sample ?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 12, 2013
02:39 AM
ecaron wrote:
How I can detect .NET Framework 4 SP1 with installscript ? Code sample ?
function BOOL IsdotNetInstalled(szVer)
STRING szKey;
NUMBER nRes;
begin
szKey = "SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v" + szVer;
nRes = RegDBKeyExist(szKey);
if(nRes < 0) then
//dotNet 4 is not installed
return 0;
else
return 1;
endif;
end; // end of function
you can also check the "Install" value under the same registry key (it needs to be equal to 1) using
RegDBGetKeyValueEx ( szKey, "Installed", nvType, svValue (here you will get 1 or 0 in case there is a key for dotnet), nvSize )