How to register 32 bit ActiveX under 64bit windows7

Command line

C:\Windows\system32\regsvr32.exe  "C:\Windows\system32\$FILE_NAME.ocx"

Inno

Source: "$PATH_TO_OCX.ocx"; DestDir: "{sys}";  Flags: sharedfile restartreplace sharedfile regserver; AfterInstall: MyAfterInstall;

 

 

[code]

procedure MyAfterInstall();

begin

RegisterServer(Is64BitInstallMode, ExpandConstant('{sys}\$PATH_TO_OCX.ocx'), False)

end;