Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Arbeitsspeicher abfragen


4 replies to this topic

tleonhard

tleonhard
  • Full Members
  • 59 posts

Posted 08 December 2008 - 09:34

Hallo,

Ich hab leider noch eine Frage. Ist es Möglich, die Größe des Arbeitsspreichers abzufragen?

Gruß Timo



ali

ali
  • Full Members
  • 1,008 posts

Posted 08 December 2008 - 10:00

Hallo,

es gibt die Propertys:

PhysicalMemory
und
VirtualMemory

ali

Michael.Hu

Michael.Hu
  • Full Members
  • 72 posts

Posted 09 December 2008 - 09:23

Hi Timo!

Probiers mal so:

CODE
if( GetSystemInfo( EXTENDEDMEMORY, nResult, szResult) < 0 ) then
     nRam = 0;
else        
  nDummy = 0;
  nUnitSource = KBYTES;
  nUnitTarget = MBYTES;
  ConvertSizeToUnits( 0, nResult, nUnitSource, nDummy, nResult, nUnitTarget );
  nRam = nResult;
endif;

Edited by Michael.Hu, 09 December 2008 - 09:24.


ali

ali
  • Full Members
  • 1,008 posts

Posted 09 December 2008 - 09:47

Hallo,
wieso mit Installscript in einem MSI Setup besteln, wenn MSI die Funktion schon mitbringt. Es gibt das Property
PhysicalMemory : The installer sets the PhysicalMemory property to the size of the installed RAM in megabytes.

Wozu da noch Script gebraucht wird verstehe ich nicht blink.gif

ali

Michael.Hu

Michael.Hu
  • Full Members
  • 72 posts

Posted 09 December 2008 - 12:54

Hmm ich mach sämtliche Hardware-Checks (RAM, CPU, Resolution, usw.) mit Hilfe von InstallScripts weil ich finde dass man mit MSI zuwenig flexibel ist.

Vor allem z.B. um die Speicher-Angabe zu formatieren usw...

Gruss
Michael

Edited by Michael.Hu, 09 December 2008 - 12:54.