Link to home
Start Free TrialLog in
Avatar of Richard Coffre
Richard CoffreFlag for France

asked on

How to run Inno Setup script to register an OCX ?

Hi all,

I created a package to install an Access db. It works fine.
But when i run my application, i realize that an OCX seems not to be used (it is not display in the form) even if it is present in the correct directory.

I copoy this OCX file during the installation but it is not registered so i try to use Inno Setup to install and register the OCX.
I create the ISS script but i don't know how to use it !!!

Any ideas ?

Thanks in advance
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

try add:

[Files]
Source: yourOCX.OCX; DestDir: {sys}; Flags: regserver uninsneveruninstall noregerror
Avatar of Richard Coffre

ASKER

OK but how i run the ISS file.

In general to install something you click on SETUP.EXE and that's.

So what i have to do the launch, run the ISS file ?

I use the following instruction in the script :
Source: "mscomct2.ocx"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace sharedfile regserver
>>So what i have to do the launch, run the ISS file ?
Basically Inno Setup is an installer packager to create the installer (Setup.exe, for example) itself, so what you need to do is open your .ISS file, then click on the "Run" button from toolbar. If you're using IS TOOL, try click "Compile Setup" from toolbar instead.
Avatar of thenelson
thenelson

Take a look at Little Setup Builder http://www.ammasw.com/LSB_Intro.html.  It is a lot easier to use than Inno Setup.
How do you generate the setup.exe with Inno Setup ?
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
As mentioned, try click on the "Run" button from toolbar to compile the installer file. Good Luck.