procedure RegisterTypeLibrary(const Is64Bit: Boolean; const Filename: String);
Registers the type library with the specified filename. Raises an exception if not successful.
Is64Bit specifies whether the type library should be registered in the 64-bit registry view (True) or 32-bit registry view (False). In Inno Setup ≥7.0, this must match the Setup/Uninstall bitness, so IsCurrentProcess64Bit should be passed.
begin
// Register stdole2.tlb located in the System directory.
// - When SetupArchitecture=x64, this will register in the 64-bit registry view.
// - When SetupArchitecture=x86, this will register in the 32-bit registry view.
RegisterTypeLibrary(IsCurrentProcess64Bit, ExpandConstant('{sys}\stdole2.tlb'));
end;