cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
AmberTiger
Level 4

Register ComCTL32.ocx

Hi,

I have an installshield which uses a merge module(the one included with installshield) to install the comctl32.ocx file.

This seems to work except, when entering our application after install the tabstrip within our app does not function (selecting the different tabs, does not trigger a response).

If I then exit our app and run regsvr32.exe comctl32.ocx from the command prompt and re-run our App, the tab strip is working fine.

I have tried to run regsvr32 from a script within the installshield, sequencing so it is the last thing the installshield does, but although I get a message telling me that it has succeeded in registering. I have the same problem when entering my App, running the regsvr32 from the dos command, fixes the issue.

What is the best way to deal with the install and registering of the comctl32.ocx file?

This is occurring on XP,Vista and Win7 environments.

Thanks

Script:-

MsiGetProperty(hMSI,"SystemFolder",szSystemFolder,nvSize);

szExe = szSystemFolder ^ "Regsvr32.exe";

if (LaunchAppAndWait(szExe, "comctl32.ocx", WAIT) < 0) then
MessageBox ("Unable to launch",SEVERE);
endif;
Labels (1)
0 Kudos
(1) Reply
girishkatti123
Level 7

try
szExe = SystemFolder^"Regsvr32.exe";

if (LaunchAppAndWait(szExe, "comctl32.ocx", WAIT) < 0) then
MessageBox ("Unable to launch",SEVERE);
endif;
0 Kudos