Question : Using regsvr32 in Vista via batch file

Here's my dilemma -

I have program that needs to register DLLs automatically via a batch file.  Obviously, I am calling on regsvr32 in the batch file to register these DLLs.  The batch file is placed on the system after installation, and then automatically ran.  Everything was great on XP, but since I am moving to Vista, UAC is preventing regsvr32 from being ran without elevated privileges.  I need to register these DLLs in Vista automatically, without opening an elevated command prompt manually.

What is the best way to do this?  Manifest file?  Others?

Thanks for any hints.

Clint

Answer : Using regsvr32 in Vista via batch file

This worked:
1:
2:
3:
4:
5:
6:
7:
8:
9:
Set objShell = CreateObject("Shell.Application")
Set FSO = CreateObject("Scripting.FileSystemObject")
strPath = FSO.GetParentFolderName (WScript.ScriptFullName)
If FSO.FileExists(strPath & "\route.bat") Then
     objShell.ShellExecute "cmd.exe", _ 
        "/c " & Chr(34) & strPath & "\route.bat" & Chr(34), "", "runas", 1
Else
     MsgBox "Route.bat not found"
End If 
Random Solutions  
 
programming4us programming4us