Hosam
asked on
Run .exe without setup program
Is it possible to put my .exe program and .DLL files and .oCX that used with my program in the same directory. and runks OKAY.
What about DBjet engine .dll files.
elzohry
What about DBjet engine .dll files.
elzohry
What's the problem with a setup program?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As far as your own dlls and ocx are concerned you can put them in any directory you wish. P&D wizard allows you to define the destination path where dll or ocx can be installed.
I have not tried installig dbjet engine files in same directory[ since they are in directory other than system i never tried messing with them.]
Since those jet engine files can also be used by other apps, its suggested that you install them in default directory.
I have not tried installig dbjet engine files in same directory[ since they are in directory other than system i never tried messing with them.]
Since those jet engine files can also be used by other apps, its suggested that you install them in default directory.
You can register the ocx and dll that you need with this command: regsrv32
If you put the ocx and dll files in the application's directory (i.e. c:\apppath) you can register this files
with this command: regsrv32 c:\apppath\yourcontrol.ocx
where yourcontrol.ocx is the name of the control that you need register.
If you put the ocx and dll files in the application's directory (i.e. c:\apppath) you can register this files
with this command: regsrv32 c:\apppath\yourcontrol.ocx
where yourcontrol.ocx is the name of the control that you need register.
ASKER
dear carruina, i want to register control with my .exe prog
Your exe needs some dll and ocx. And this files must be register in the system.
To register dll and ocx you can use the command regsrv32.
You can create a bat file that copy the dll, ocx, exe file and register this conmponents.
Also you can write code to trap the error "ocx not found"
and execute this line with "shell" to register the componen that the exe needs.
To register dll and ocx you can use the command regsrv32.
You can create a bat file that copy the dll, ocx, exe file and register this conmponents.
Also you can write code to trap the error "ocx not found"
and execute this line with "shell" to register the componen that the exe needs.
Have you take a look at Fusion?
That is the MAIN function of the Setup Program.
Arthur Wood