Solved

Question about the Installation.

Posted on 2002-07-09
6
324 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

12 Experts available now in Live!

Get 1:1 Help Now