.ocx installed in syswow64 instead of system32

49 views
Skip to first unread message

Marion List

unread,
Aug 28, 2025, 2:06:34 PM (10 days ago) Aug 28
to innosetup
The .ocx file is always copied and registered in system32 as i express with 
{sys}  on all our computers. Now we got a new computer and with the same .iss he 
puts it in Syswow64 and trys to register it. which gets an exit code 03.
Can somebody please help me. Thank you very much.

[Setup]
AppName=LimaKalib
AppVersion=1.084  
VersionInfoVersion=1.0.8.4
AppPublisher=List-Magnetik GmbH
AppPublisherURL=http://www.list-magnetik.com/
DefaultDirName={pf}\List-Magnetik\LimaKalib
DefaultGroupName=List-Magnetik
UninstallDisplayIcon={app}\LimaKalib.exe
Compression=lzma2
SolidCompression=yes
OutputDir=LimaKalib_V10
OutputBaseFilename=LimaKalib_V1084_Setup
PrivilegesRequired=admin
Source: "bleclient220.ocx"; DestDir: "{sys}"; DestName: "bleclient220.ocx"; Flags: regserver onlyifdoesntexist



Martijn Laan

unread,
Aug 28, 2025, 2:21:47 PM (10 days ago) Aug 28
to innosetup
Hi,

Syswow64  is the correct directory for 32-bit files on 64-bit Windows.

Is your .ocx a 32-bit file? If not, see the 64Bit.iss example script.

Greetings,
Martijn

Op 28-8-2025 om 19:09 schreef Marion List:
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/9a15a56e-ecd4-4412-9156-d907469557can%40googlegroups.com.

Marion List

unread,
Aug 29, 2025, 8:34:02 AM (9 days ago) Aug 29
to innosetup
Hi Martijn, thanks for your quick answer. 
My .ocx file is a 32 bit file and i want it to be installed in System32 folder. How can i do this. And why is it done correctly on our other PC's ? 
Thank you,  greetings 
Marion

Virgo Pärna

unread,
Aug 29, 2025, 8:44:41 AM (9 days ago) Aug 29
to inno...@googlegroups.com
On 8/29/2025 3:34 PM, Marion List wrote:
> Hi Martijn, thanks for your quick answer.
> My .ocx file is a 32 bit file and i want it to be installed in System32
> folder. How can i do this.

32 bit file is supposed to go into syswow64. Because when 32 bit
program is run, it sees contents of syswow64 as system32. So that ocx
would not work then for 32 bit programs, of you but it into system32 on
64 bit windows.

> And why is it done correctly on our other PC's ?

Are other pc-s with 32 bit windows?

--
Virgo Pärna
Gaiasoft OÜ
vi...@gaiasoft.ee

Marion List

unread,
Sep 3, 2025, 7:25:37 AM (4 days ago) Sep 3
to innosetup
Hi, thanks for all answers, 
Problem is solved. Virgo you are right all files go to SYSWOW64. But in the end that was not the problem. A missing .ocx was the problem. 
It said it could not be registered.... but that .ocx needed another .dll to be registered, and that one was missing. 
Thank you all... my fault 
Have a nice day 
Marion List
Reply all
Reply to author
Forward
0 new messages