Solved

Question about the Installation.

Posted on 2002-07-09
6
330 Views
Last Modified: 2010-04-04
Hi all,
My project needs to use an OCX component. Now I use the "InstallShield for
D4" make the setup files, At its "Make Registry Changes" property, I add "Regsvr32 Test.ocx" to "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce" key

But the problem is after copy all the files, must reboot the computer. How to avoid this?
0
Comment
Question by:SupWang
6 Comments
 
LVL 8

Expert Comment

by:TOndrej
ID: 7140745
There may be several options for you:

1. Tell Installshield to register the OCX. This may not be available in your old version of Installshield Express.

2. Tell Installshield to run regsvr32 (or your own executable, see below) during the installation.
You can register your OCX in code. I'm not sure if you have this option in your version of Installshield.

3. You can register your OCX in code, at startup of your application (if you detect that it's not already registered). Have a look at Demos\ActiveX\TRegSvr.
0
 
LVL 2

Author Comment

by:SupWang
ID: 7140844
Hi TOndrej,
Not found this option in this version of Installshield.
Can I add some commands to the iwz file?(*.iwz)
0
 
LVL 8

Accepted Solution

by:
TOndrej earned 25 total points
ID: 7141093
Sorry, I don't know. I don't have neither Delphi 3 anymore nor the version of Installshield Express that came with it.
IIRC, since Delphi 5 Installshield allows you to check an option to register a COM DLL or OCX during installation.
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 12

Assisted Solution

by:Lee_Nover
Lee_Nover earned 25 total points
ID: 7142176
you can manually register them in your app at startup
get the modules DllRegisterServer procedure and call it
like this :


type
  TRegSvr = procedure; stdcall;

procedure RegisterAX(const FileName: string);
var
  hLib: Cardinal;
  RegSvr: TRegSvr;
begin
  hLib:=LoadLibrary(PChar(FileName));
  if hLib = 0 then exit;
  try
    @RegSvr:=GetProcAddress(hLib, 'DllRegisterServer');
    if @RegSvr = nil then exit;
    RegSvr;
  finally
    FreeLibrary(hLib);
  end;
end;


DllRegisterServer is case sensitive so be careful :)
the code was writen directly in the browser but it should be fine
0
 

Expert Comment

by:CleanupPing
ID: 9343084
SupWang:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 9460755
SupWang,
No comment has been added lately (18 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: split points between TOndrej http:#7140745 and Lee_Nover http:#7142176

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

anAKiN
EE Cleanup Volunteer
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to fill array with TArray.Create? 14 87
Best Firemonkey component pack 1 101
Intraweb download file link ? 1 132
Magic Software info 18 130
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now