If it works normally you might want to try
asking in microsoft.public.platformsdk.msi
You're in a slightly awkward situation. You
have VBS, but it's really a WMI script, used
in an MSI. There's a separate group for all
of those.
For WMI you can try
microsoft.public.win32.programmer.wmi
But that group doesn't see much activity, and it
has a different version of the same problem:
Often the people posting are using C++.
The MSI group, by contrast, has a number of
devoted experts who are there daily.
|I have an issue that I have been struggeling with for nealy a week now with
| out any success.
|
| The script is simple and is shown below.
| When the scrip is executed from a cmd prompt there is no issue. When the
| scrip is executed from within the Costum Action during installation the
| scrip fails on some PC's and not on others.
|
| Dim objLocator, objService, obj, BuildNumber
|
| Set objLocator = CreateObject("WbemScripting.SWbemLocator")
| Set objService = objLocator.ConnectServer( , "root\cimv2") <----- the
| script is failing here!!!
| objService.Security_.ImpersonationLevel = 4
| Set obj = objService.Get("Win32_OperatingSystem=@")
|
| BuildNumber = obj.BuildNumber
|
| If obj.BuildNumber >= 6000 Then
| If InStr(obj.OSArchitecture,"64") Then
| OS = True
| End If
| End If
|
| If OS Then
| 'IsVista64 = True
| MsgBox "You are running 64-bit"
| Else
| 'IsVista64 = False
| MsgBox "You are running 32-bit"
| End If
|