Link to home
Start Free TrialLog in
Avatar of RichardRiga
RichardRiga

asked on

In a VBS installation script, how do I use the 32 bit version of Wscript on a 64 bit machine?

I have this line in an installation script that was designed for use with 32 bit machines.
set wshshell=wscript.createobject("wscript.shell")

Its my understanding that when I run this in a 64 bit environment that the 64 bit version of wscript will be used by default.  How do I force it to use the 31 bit version in VBscript?

Thank you!
ASKER CERTIFIED SOLUTION
Avatar of Tribus
Tribus
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The article I posted above is basically saying the same thing as Martin's post, but in a bit more detail.  We must have been typing at the same time...sorry...lol.

-Tribus
That's often the case with this site - several people give the same answer in quick succession because they were typing it up at the same time.  As the French would say, That's life!
Avatar of RichardRiga
RichardRiga

ASKER

Thank you guys.  Sorry it took a while, but there you have it.  Both posters pointed me in the direction that ultimately help me solve my specific proglem.  Take care!