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
- :
- Checking windows installer 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
Jul 21, 2011
12:37 AM
Checking windows installer version
How to check windows installer version before running the prerequisite.
Thanks in Advance
Samarasam.
Thanks in Advance
Samarasam.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 21, 2011
03:16 AM
@samarasamcete
Use VerGetFileVersion, to get the version (stored in svVersionNumber ), then you could use VerCompare to check against svVersionNumber to see if it is the desired version:
// Get the version
if ( VerGetFileVersion ( WINSYSDIR + "msiexec.exe" , svVersionNumber )=0 ) then
// Compare results
if VerCompare ( svVersionNumber , "2.0.2600.2" , VERSION )= LESS_THAN then
// Add your logic here.
// maybe to install a later version or show an error message or whatever...
endif;
endif;
Use VerGetFileVersion, to get the version (stored in svVersionNumber ), then you could use VerCompare to check against svVersionNumber to see if it is the desired version:
// Get the version
if ( VerGetFileVersion ( WINSYSDIR + "msiexec.exe" , svVersionNumber )=0 ) then
// Compare results
if VerCompare ( svVersionNumber , "2.0.2600.2" , VERSION )= LESS_THAN then
// Add your logic here.
// maybe to install a later version or show an error message or whatever...
endif;
endif;
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)