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
- :
- Get the RAM Size
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 26, 2009
09:55 AM
Get the RAM Size
Hi Friends..
How do i get the total Size of the RAM. It should as same size when right clicked on MyComputer there RAM size will be showed.
How to achive this i am using Installshield 2008 Premier Edition
I read that Under Help that Hardware Properties have an option called "Physical Memory" should be used as property.
But how to use it as a property??
i am messed up with this.. plz help...
does any have sample code for this...
:confused: :confused: :confused:
How do i get the total Size of the RAM. It should as same size when right clicked on MyComputer there RAM size will be showed.
How to achive this i am using Installshield 2008 Premier Edition
I read that Under Help that Hardware Properties have an option called "Physical Memory" should be used as property.
But how to use it as a property??
i am messed up with this.. plz help...
does any have sample code for this...
:confused: :confused: :confused:
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 26, 2009
11:42 AM
What do you mean by get, or more importantly, how do you need to use this value, or what do you need to do in response to it?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 29, 2009
06:26 AM
Hi,
the following code will read the amount of physical RAM in KB installed in the target PC.
Have a look at the online help about GetSystemInfo, as this instruction does not return fully accurate results when used with EXTENDEDMEMORY. But it works fine for most purposes.
Regards
the following code will read the amount of physical RAM in KB installed in the target PC.
function NUMBER getPhysicalRAM( )
STRING szTemp;
NUMBER nResult;
begin
if( GetSystemInfo( EXTENDEDMEMORY, nResult, szResult) < 0 ) then
nResult = 0;
endif;
return nResult;
end;
Have a look at the online help about GetSystemInfo, as this instruction does not return fully accurate results when used with EXTENDEDMEMORY. But it works fine for most purposes.
Regards
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)