windows-nt/Source/XPSP1/NT/admin/darwin/data/testdb.idt/binary/custvbs.ibd

12 lines
389 B
Plaintext
Raw Normal View History

2020-09-26 03:20:57 -05:00
REM VBScript Test Custom Action
Const hkClassesRoot = 0
Const hkCurrentUser = 1
Const hkLocalMachine = 2
MsgBox "ProductCode = " & Session.Property("ProductCode") & " Language = " & Session.Language
Function Action1
MsgBox "Processor Speed = " & Session.Installer.RegistryValue(hkLocalMachine, "HARDWARE\DESCRIPTION\System\CentralProcessor\0", "~MHz")
Action1 = 1
End Function