VBS(WSH)で管理者権限でdll登録
64bit,32bitの判断して管理者権限でregsvr32で登録。
UACの確認ダイアログがでる。
osbit = ws.Environment("Process").Item("PROCESSOR_ARCHITECTURE") if 0 < instr(osbit, "64") then driverpath = "Driver\xxx\x64\yyy.dll""" else driverpath = "Driver\xxx\x86\yyy.dll""" end if Shell.ShellExecute "regsvr32", """" & driverpath , "", "runas", 1