Gateway Inc., the money-losing personal computer maker, will sell discounted personal computers to military personnel through base stores under an agreement with the U.S. Army and Air Force Exchange Service.

Stores on 52 bases in the U.S. will offer four Gateway models, including desktop systems and a notebook computer. Gateway Vice President Steve McAllister said the company wants to expand its PC offerings to military personnel online and through base exchanges overseas.

California-based Gateway is trying to boost sales and regain profitability after losses in eight of the past nine quarters. In May, Gateway said it will sell PCs at more than 900 RadioShack stores in Canada after exiting that country two years ago. The company also has added non-computer products.

The Army and Air Force Exchange Service, a Defense Department agency created in 1896, sells discounted merchandise to U.S. troops and donates profit back to the military community.

In the last decade, AAFES donated $2.42 billion to the Army and Air Force for such projects as music programs, new libraries and sports facilities.