PDA

View Full Version : Error decompressing file xxxxxx.ocx error: -2000000005



NewsArchive
02-22-2018, 04:14 AM
Hi Friedrich,
Suddenly I´m getting this error on the install.
I already change do ocx file, but still get this error.
Just to point, I´m adding this file in 3 folders
System
System32
SysWow64
Just adding not registering and I get the error when it tries to add in
the system folder.

Another question, how can I add this ocx to the right folder depending
if it's a windows 32 or 64?

Thanks,
Peter

NewsArchive
02-22-2018, 05:08 AM
Hi Peter,

> Suddenly I´m getting this error on the install.
> I already change do ocx file, but still get this error.
> Just to point, I´m adding this file in 3 folders
> System
> System32
> SysWow64
> Just adding not registering and I get the error when it tries to add in
> the system folder.

See attached screenshot. It's a typical access denied error. If you have
write access to the folders (your installer is running elevated) and this
still happens then it might be a false-positive from the protection system.
But make sure your installer is running elevated (UAC level is set to
requireAdministrator).

> Another question, how can I add this ocx to the right folder depending
> if it's a windows 32 or 64?

Do you have 32-bit and native 64-bit OCX versions? If yes, you can install
the native 64-bit version of the file to the 64-bit System folder by
switching the installer into 64-bit mode (see "Set x64 Mode..." script
function). Don't forget to switch back to 32-bit after you have installed
the native 64-bit file ;-)

Does this help?

Friedrich

NewsArchive
02-22-2018, 05:09 AM
BTW, you only switch between 32-bit and 64-bit mode if you really have
different file versions for 32-bit and 64-bit Windows.

If your application is 32-bit and you install 32-bit files on x86 or x64
systems then you should never touch "Set x64 Mode...".

The installer handles this automatically for you and always installs into
the correct System32 folder and writes to the correct 32-bit registry branch
on 64-bit Windows systems. You only use x64-bit to access 64-bit Windows
resources for native 64-bit applications or components.

Friedrich