As the Red Queen states:

>?: Why did you kill every body down here?  
Red Queen: The T-virus escaped into the air conditioning system. And an uncontrolled pattern of infection began. ***The virus is protean, changing from liquid to airborne to blood transmission... depending on its environment.*** It's almost impossible to kill. I couldn't allow it to escape from the Hive. So, I took steps.  
?: Steps?  
***Red Queen: You must understand... those who become infected, I can't allow you to leave.***
?: We're not infected.  
Red Queen: Just one bite... one scratch from these creatures is sufficient... and then you become one of them.

And later:

>?: Because she was saving [The Final Boss, The Licker]. For us. Isn't that right?  
Red Queen: I didn't think any of you would make it this far. **Not without infection.**  
Alice: Why didn't you tell us about the antivirus?  
Red Queen: This long after infection, there's no guarantee it would work.

A minute later:

>Red Queen: I can give you the code. But first, you must do something for me.  
?: What do you want?  
Red Queen: One of your group [Rain] is infected. I require her life for the code.  
?: The antivius is right there on the platfom!  
Red Queen: I'm sorry, but it's a risk I cannot take.

***All of this shows that the t-Virus has mutated to the point that it is no longer airborne.*** All infections after the initial outbreak are physical, through a bite, scratch, blood splatter. Simply being there is no longer enough to get infected. Rain is bitten, Matt was licked by the licker, etc. As the Umbrella team showed up just hours after the event, this means only people in the Hive at the time would ever get infected via airborne vectors. The Nerve Gas that knocked out and gave Alice, Matt, and Spencer amnesia only worked for hours:

>Umbrella Soldier: A nerve gas was released into the house. Primary effect of the gas: Complete unconsciousness lasting **up to four hours**.

##The Red Queen didn't try to kill the virus with the fire suppression gas and sprinkler system. She tried to stop the virus outbreak by stopping it's infection vector, Infected Humans and Animals. She, being the main computer for the Hive, knew exactly how the t-Virus acts. Umbrella has been experimenting on it in the Hive for a long time. The reviving of the dead was already known. This is why she decapitates the guy trying to escape in the elevator. She knew she couldn't kill the virus, she said that outright. She could only contain it, and the infected, at any cost. She intentionally gassed and killed all the humans, not a side effect.

Alice is only infected after being captured at the end, by Umbrella scientists as an experiment. The whole Raccoon City outbreak (Resident Evil: Apocalypse) was caused by these same scientists ordering the Hive to be reopened, releasing the zombies and lickers stuck inside.