concerning the minimum physical memory prerequisite - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

concerning the minimum physical memory prerequisite

Hello AI Support Team,

I have a question about the minimum physical memory prerequisite launch condition.

Is the check against the amount of memory currently available, or against the total memory capacity / max memory?

I have the prereq set at 512 MB. When I run the bootstrapper on machines with 512 MB of RAM, the bootstrapper claims there is not enough memory. I am guessing this happens because other processes are running and consuming some of the available memory, although I have verified that nothing is running except some basic Windows services which auto-start during boot.

My question seems related to this post, although Gigi recommends setting the prereq value to only 1 or 2 MB lower than the max memory of the machine. If the prereq does check against the currently available memory, I would imagine that basic Windows services will likely consume more than 1 or 2 MB, and so the "buffer" between the prereq value and the max memory should be larger.

Could you please clarify whether the check is against the currently available memory or against the total memory capacity?

Thanks for your help,
-Todd
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: concerning the minimum physical memory prerequisite

Hi Todd,

The total memory is being checked by this prerequisite.
You can test the total memory as Windows Installer sees it by checking the value of the PhysicalMemory property. Make sure you are setting a minimum physical memory prerequisite lower than that value to ensure that the launch condition does not fail.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: concerning the minimum physical memory prerequisite

Thank you for the quick reply, Gabriel.

I have my project configured for an "online install", whereby the boostrapper downloads the MSI and CABs after validating the prerequisites. The bootstrapper never downloads the MSI and CABs because the minimum memory prereq is not satisfied. Since it is the bootstrapper that validates the total memory, Windows Installer has not yet been invoked, correct? Meaning, on these machines with 512 MB of RAM, I never reach the point where my MSI package is executed.

Rather than checking the value of the PhysicalMemory property as reported by Windows Installer, I think I need to know how the bootstrapper is determining the max memory, yes? I assume it's making some kind of Win API call, such as GlobalMemoryStatusEx.

Are my assumptions correct?
Is there a way to determine the max memory as seen by the bootstrapper?

As always, thanks for your help.
-Todd
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: concerning the minimum physical memory prerequisite

Hi Todd,

There's no way to determine the max memory seen by the bootstrapper.
You can try using the .msi to display the value of the PhysicalMemory property see what WindowsInstaller reports. You should set your launch condition to a lower value than this

If this did not work, you can try my suggestion to set a launch condition to something less than 512 MB.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: concerning the minimum physical memory prerequisite

Hi Gabriel,

Thank you for your reply and suggestions - sorry for the long delay.

I tested my package on the machines with 512 MB of RAM using each of the following AI configurations:

----- Predefined -----
(1) Launch Conditions: Minimum Physical Memory = 512
~ prereq not met, install fails

(2) Launch Conditions: Minimum Physical Memory = 511
~ prereq fulfilled, install completes


----- Custom -----
(3) Custom Launch Conditions: PhysicalMemory >= "512"
~ prereq fulfilled, install completes

(4) Custom Launch Conditions: PhysicalMemory >= "513"
~ prereq not met, install fails

Clearly, the predefined condition and the custom condition are calculating the value of "Physical Memory" differently. The predefined condition is only fulfilled if I use a value less than 512, but the custom condition is fulfilled if I use exactly 512. Is there a reason for this discrepancy?

I would prefer to use the predefined condition, but I'm wondering why I would need to use a value of 511 rather than 512. I may be making too many assumptions, but that just seems like a bug.


Thanks for your help,
-Todd
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: concerning the minimum physical memory prerequisite

Hi Todd,

I have tested this with the latest version of Advanced Installer.
Placed a predefined launch condition for memory and set it to 8190, it passed.
Placed a custom launch condition with

Code: Select all

PhysicalMemory >= "8190"
It also passed.
The launch conditions are stored in the same table and handled by the same algorithm, at least in the latest version, so I'm not sure how you are getting inconsistent behavior.
If you are getting this behavior with the latest version of Advanced Installer, please send your .aip project file to support at advancedinstaller dot com so we can investigate.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: concerning the minimum physical memory prerequisite

Hi Gabriel,

Thanks for your reply and for investigating this. I am using AI 7.5.2 build 26791, which is the most current version at this time. I am able to consistently reproduce this problem (at least on my machines with 512 MB RAM), so I have emailed my aip project files to your support alias.

thanks,
-Todd
toddpatt
Posts: 111
Joined: Fri Jan 08, 2010 1:36 am

Re: concerning the minimum physical memory prerequisite

For the benefit of anyone else reading this thread, Gabriel confirmed (via email) that this is indeed a bug in AI v7.5.2 and that a fix will be available in a future release.

-Todd
Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Re: concerning the minimum physical memory prerequisite

Hi,

Is this issue resolved because we have the same problem using the version 7.6.1 on a virtual WinXP machine ?

Thanks for your reply,

Phil
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: concerning the minimum physical memory prerequisite

Hi Todd,

This fix hasn't been issued yet. It is on our TODO list just as Gabriel said and we will try to increase its priority so it is
implemented as soon as possible.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Alpicus
Posts: 108
Joined: Sat Feb 16, 2008 5:29 pm
Location: Switzerland
Contact: Website

Re: concerning the minimum physical memory prerequisite

Thanks Bogdan for your reply.

Return to “Common Problems”