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
- :
- Sample code
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎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
‎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