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
- :
- Re: Function to check MSI and .NET version
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
Mar 18, 2009
11:22 AM
Function to check MSI and .NET version
I'm very new to Installscript programming.
I'm trying to add function that can verify that client has msi.dll with version 3.0 or higher. If it's not 3.0 or higher, display a dialog box that inform the user to download the correct version.
Same function I want to add for checking correct version or .NET.
Can anyone advise which function will be useful?
Please advise ASAP.
I will appreciate for your help.
I'm trying to add function that can verify that client has msi.dll with version 3.0 or higher. If it's not 3.0 or higher, display a dialog box that inform the user to download the correct version.
Same function I want to add for checking correct version or .NET.
Can anyone advise which function will be useful?
Please advise ASAP.
I will appreciate for your help.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 18, 2009
11:50 AM
Perhaps VerGetFileVersion would be a good starting place for msi.dll; for .NET checking the NDP registry key is often preferred, but perhaps you could also use VerGetFileVersion on mscorlib.dll. (If you want to look for a specific version of .NET, don't check the file version; use the registry key, or the Is(DOTNETFRAMEWORKINSTALLED, ...) function.)
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)