Solved

Question about the Installation.

Posted on 2002-07-09
6
334 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 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