Hallo,
Ich hab leider noch eine Frage. Ist es Möglich, die Größe des Arbeitsspreichers abzufragen?
Gruß Timo
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.
Arbeitsspeicher abfragen
Started by
tleonhard
, Dec 08 2008 09:34
4 replies to this topic
Posted 09 December 2008 - 09:23
Hi Timo!
Probiers mal so:
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.
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
ali
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
ali
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
Vor allem z.B. um die Speicher-Angabe zu formatieren usw...
Gruss
Michael
Edited by Michael.Hu, 09 December 2008 - 12:54.