Jump to content

Future WPI feature requests! 8.0.0


Recommended Posts

  • 4 weeks later...

Big Future Request to handle different Problems!

I need a function they check if a Registry Key exist! I need it to detect Hardware like USB WWAN Modems for Dell E64xx Notebooks. My solution in the moment looks like this script:

' Constants (taken from WinReg.h)

'

Const HKEY_CLASSES_ROOT = &H80000000

Const HKEY_CURRENT_USER = &H80000001

Const HKEY_LOCAL_MACHINE = &H80000002

Const HKEY_USERS = &H80000003

' Chose computer name, registry tree and key path

'

strComputer = "." ' Use . for current machine

hDefKey = HKEY_LOCAL_MACHINE

strKeyPath = "SYSTEM\CurrentControlSet\Enum\USB\Vid_413c&Pid_8184" '<- this key exist if the hardware is present!

' Connect to registry provider on target machine with current user

'

set objShell = WScript.CreateObject("WScript.Shell")

Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")

' Try to enum the subkeys of the key path we've chosen. We can't if the key doesn't exist

'

If oReg.EnumKey(hDefKey, strKeyPath, arrSubKeys) = 0 Then

objShell.Run ("setup driver")

objShell.Run ("setup wwanmanager")

End If

The WPI included Hardwaredetection are not enough. Videocard, Modem, NIC, ... are nice ... sometimes i need more hehehe

Next Future Request!

I need a function, they edit the Boot.ini to customize the time counter. 30sec are to long ^_^

Edited by WosWasI
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...