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  
  •  2003 Prolaint ML370 looping during startup System License Violation.
  •  How do you tell visual studio to reindent all code so you can match up the "if/else" "while", and strucs like that
  •  Application.LoadFromText automation
  •  How do I define a name using VBA that accomplishes the same as Insert|Name|Define
  •  When contacting <a rel="nofollow" href="https://mail.domain.com/autodiscover/autodiscover.xml" target="_blank">https://mail.domain.com/au<wbr />todiscover<wbr />/autodisco<wbr />ver.xml</a> receiv
  •  Strange problem with tableAdapterManager.Update<wbr />All and related tables
  •  could not load VFD.VXD
  •  System.NullReferenceExcept<wbr />ion Was Unhandled By User Code When Looping Through DataSet
  •  Change GUID in VStudio C++ OCX
  •  Creating a directory path string based on choices in a form
  •  
    programming4us programming4us