PDA

View Full Version : Registering OCX files



NewsArchive
02-19-1997, 01:00 AM
Hi,

Does or doesn't InstallShield Express Pro automatically register OCX
files at install time? I've seen this problem stated in this news group
before but it doesn't appear to have been answered.

The questions/problem is this:
A single .OCX file to be distributed that contains the resource entry
"OLESelfRegister" with a value of "$". Directed the file to <WINSYSDIR>.
Express Pro doesn't register the OCX.

I modified, according to the user guide on page 3-30, the swdepend.ini
file in 2 separate ways:

[HTML.OCX]
Register=$(DLLSelfRegister)

and then
[HTML.OCX]
Register=$(OLESelfRegister) // actual resource string id

I rebuilt the distribution set after each modification to the ini file.
Do I need to include the swdepend.ini file with the distribution? It
wasn't mentioned...

Neither of these steps automatically registered this OCX on the system.
Is anyone else familiar with this OCX?

TIA
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
Jay L. Cobb
Software Programmer
jaylc@netmagic.net
www.netmagic.net/~jaylc/

NewsArchive
02-19-1997, 01:00 AM
Jay Cobb <jaylc@netmagic.net> wrote in article
<330B65D8.354B@netmagic.net>...
> Hi,
>
> Does or doesn't InstallShield Express Pro automatically register OCX
> files at install time?
>
Express Pro absolutely DOES automatically register OCX files at install
time that either
1) contain a resource entry of "OLESelfRegister" or
2) contain an entry in SWDEPEND.INI of the form

[HTML.OCX]
Register=$(DLLSelfRegister)

(no you don't need to include SWDEPEND.INI in the installation.)

But all automatic registration does is call the DllRegisterServer function
contained in the OCX, the OCX itself actually makes all registry changes.
The problem you are encountering is almost certainly due to other dependent
DLLs that the HTML.OCX file requires. Without these dependent DLLs,
HTML.OCX can not be loaded, and the DllRegisterServer function can not be
called. I don't know what DLLs HTML.OCX requires but you should be able to
easily find them by using tools such as QuickView (part of Win95 and NT) or
dumpbin.

NewsArchive
07-20-1998, 12:00 AM
Susie,

All you have to do is hide and show the appropriate objects in your scene to
make it have the appearance of a reset state.

Another thing you could try is having two goto scene actions one right after
the other. The first one of these would point to any other scene in your
demo and the second would bring you back to the original scene. This is the
only way to "reset" the scene in the literal sense.

Hope this helps.

--
Paris Guffey
DemoShield Technical Support

Susie Serenevich wrote in message <35B1ECE8.8E8F06F5@valor.com>...
>Gottanutherone...
>
>Is there a way to put in a Reset action? As you know, by now, I have a
>rather complicated navigation scene with 14 buttons which show text,
>hide text, disable and enable groups and so on. There is also
>introduction/instruction text for this scene - which I have hidden by
>each new click of a navigation button. BUT, I'd like to be able to press
>a vcr control button (<< ??) to return to the original scene with the
>intro/instruction text. Right now, the only way for someone to see this
>text is upon entry to the scene.
>
>Any suggestions?
>
>Susie..
>

NewsArchive
08-17-1998, 12:00 AM
Stefan,

Is this true for DLLs as well?

eddie

NewsArchive
08-18-1998, 12:00 AM
On Mon, 17 Aug 1998 13:43:41 -0700, "Eddie A." <hm3295@hotmail.com> wrote:
>Is this true for DLLs as well?

Yes.

Stefan Paetow
InstallShield Software Corp.

NewsArchive
01-07-1999, 01:00 AM
....or go to a clean machine, run IAR and import that .reg file. IAR should
then create the correct registry set.

Stefan Krueger
Independent Setup Consultant

// InstallSite - Resources for setup developers
// http://www.installsite.org (primary site - USA) <-- NEW !!!
// http://installsite.sw.com.sg (mirror site - Singapore)

My reply-to address is invalid to avoid spam.
If you are looking for individual assistance, like e-mail support,
please mail to contract@installsite.org for support options.

Robert M. Dickau schrieb in Nachricht <36910783.0@news.installshield.com>...
>InstallSite has a script (based on a script from our Advanced InstallShield
>training course) that reads a REG file, and creates the keys and values
>contained in it using InstallScript functions, ensuring the information
will
>be logged for deinstallation. Visit www.installsite.org, look in the
>InstallShield Extensions section, and download the "Import Registry File"
>script.
>
>Tom Tanner wrote in message <3690C260.C9846FED@case.co.uk>...
>>Is it possible to import a ".reg" file into the registry settings in the
>>IDE. It would be a very useful tweak, as my chances of getting the same
>>key names typed in the appropriate number of times is sort of small. It
>>would be much easier to go into regedit, export the stuff for the
>>program, and import into installshield.
>
>Robert M. Dickau
>Senior Technical Trainer
>InstallShield Software Corp.
>
>
>
>
>
>
>
>
>
>

NewsArchive
02-17-1999, 01:00 AM
Yes it would.
And It would also be nice to have IDE to be more keyboard friendly. You
really can't do much in the IDE without using a mouse.

Very, Very Annoying...

Eric P. wrote in message <36910016.0@news.installshield.com>...
>No Tom, I am sorry, there is no functionality for this. Thanks for the
>suggestion, it makes for
>an excellent feature request.
>Eric Peterson
>InstallShield Developer Support

>
>Tom Tanner wrote in message <3690C260.C9846FED@case.co.uk>...
>>Is it possible to import a ".reg" file into the registry settings in the
>>IDE. It would be a very useful tweak, as my chances of getting the same
>>key names typed in the appropriate number of times is sort of small. It
>>would be much easier to go into regedit, export the stuff for the
>>program, and import into installshield.

NewsArchive
02-03-2000, 01:00 AM
How can I use it

Richard Schuster wrote:

> You can use <TARGETDIR> in the IDE.
>
> Richard
> "Grégory D." <gregoryduhamel@yahoo.com> wrote in message
> news:38995627.544172D1@yahoo.com...
> > I would like to create a key in the registry. My problem is that the
> > value is a path depending to where my program was installed.
> > I can't fixe the value in the IDE.
> >
> > How can I do this dynamically.
> >
> > Thanks for your answer.
> >
> > G.D.
> >
> >

NewsArchive
02-03-2000, 01:00 AM
It's ok. The script already instance this code. So I can found it in the
registry.
Thanks


Glen Swindell wrote:

> Gregory,
>
> Take a look at the RegDBSetKeyValueEx function. This allows you to add
> entries to the registry through code.
>
> This is probably best put into the ONEnd event along with the
> createshellobjects function.
>
> Hope this helps
> Glen Swindell
> CSM Limited
>
> "Grégory D." <gregoryduhamel@yahoo.com> wrote in message
> news:38995627.544172D1@yahoo.com...
> > I would like to create a key in the registry. My problem is that the
> > value is a path depending to where my program was installed.
> > I can't fixe the value in the IDE.
> >
> > How can I do this dynamically.
> >
> > Thanks for your answer.
> >
> > G.D.
> >
> >

NewsArchive
02-07-2000, 01:00 AM
You can use any text substitution 'variables' in the values of registry key
entries in the IDE:
e.g.
HKEY_LOCAL_MACHINE\SOFTWARE\MyCompany\MyApp\DataPath="<DATA_TARGET>"

Then in OnMoving substitute the variables...
ComponentSetTarget (MEDIA, "<DATA_TARGET>", svMyChosenDataDir);

Fairly standard stuff.

I have not found a way of having variables as part the the registry >>key<<
structure but I guess you hardly ever need it.
Ian.

Grégory D. wrote in message <3899A14D.9EE352AA@yahoo.com>...
>How can I use it
>
>Richard Schuster wrote:
>
>> You can use <TARGETDIR> in the IDE.
>>
>> Richard
>> "Grégory D." <gregoryduhamel@yahoo.com> wrote in message
>> news:38995627.544172D1@yahoo.com...
>> > I would like to create a key in the registry. My problem is that the
>> > value is a path depending to where my program was installed.
>> > I can't fixe the value in the IDE.
>> >
>> > How can I do this dynamically.
>> >
>> > Thanks for your answer.
>> >
>> > G.D.
>> >
>> >
>

NewsArchive
03-05-2000, 01:00 AM
Robert,
I have the same problem with COM servers, yet I am using ISWI 1.10.
I do not see any threading model info in the registry viewer. The
components just don't register unless I use Self registration.

What could be the problem?
Are there different versions of the installer service, maybe?

Yuval Naveh
Top Image Systems
Israel

Robert M. Dickau
<i_wish_i_had_time_to_answer_individual_questions_through_email_but_i_don't@
installshield.com> wrote in message
news:38bd980c.0@news.installshield.com...
> COM extraction has been improved in ISWI 1.10; from the Readme file:
>
> "The Component Wizard now extracts the Threadingmodel key info for COM
> servers. The properties that are necessary for the COM class table are
shown
> in the COM Registration view. All other information in the registry for
> CLSID is shown in the Registry view."
>
> Boris Düdder wrote in message <38bd0903.0@news.installshield.com>...
>
> >I am using ISWI 1.03 on NT 4 SP6 and I have problems with
> >registering OCX and OLE-EXE. I used the component assistant
> >to get the COM information about the modules. When I install
> >them on a machine the OCX are not registered correctly. After
> >a manual registration with command-line and regsvr32.exe every-
> >thing works fine. What is going wrong?
>
>
>
>
>

NewsArchive
07-03-2000, 12:00 AM
It's in message <39508eda.1@208.30.171.38>
(please avoid cross posting)

On http://www.installsite.org under IS Pro Samples -> Registry and INI Files
you'll find a sample that shows how to load a user hive in registry.

--
Stefan Krueger - Independent Setup Consultant
<<reply-to address is invalid to avoid spam>>

Visit InstallSite at http://www.installsite.org to download
free code samples, tips, tools and more...
For information about individual support and consulting services
please send a blank mail to the autoresponder at info@installsite.org

Stefan Krueger and the InstallSite.org web site are not affiliated
with InstallShield Software Corporation.


Fredrik Bennison <frxxxx@wmdata.com> schrieb in im Newsbeitrag:
396070d9.0@208.30.171.38...
> I cannot find your answer in the general group?
>
> // Fredrik
>
>
> Stefan Krueger <@> skrev i
> diskussionsgruppsmeddelandet:39508edb.0@208.30.171.38...
> > See reply in general group.
> >
> > --
> > Stefan Krueger - Independent Setup Consultant
> > <<reply-to address is invalid to avoid spam>>
> >
> > Visit InstallSite at http://www.installsite.org to download
> > free code samples, tips, tools and more...
> > For information about individual support and consulting services
> > please send a blank mail to the autoresponder at info@installsite.org
> >
> > Stefan Krueger and the InstallSite.org web site are not affiliated
> > with InstallShield Software Corporation.
> >
> > Fredrik Bennison <frxxxx@wmdata.com> schrieb in im Newsbeitrag:
> > 394f8717.0@208.30.171.38...
> > >
> > > Hello...
> > >
> > > I need to add registry keys to HKEY_CURRENT_USER\AppEvents\..., but I
> want
> > > it to be added to all registered users. I know I can write to HKCU
and
> to
> > > HKU\.Default User, but is there some way to automatically add the keys
> to
> > > already registered users?
> > >
> > > // Bennison
> > >
> > >
> >
> >
>
>

NewsArchive
07-05-2000, 12:00 AM
But beware there is a bug that meant reg entries created with
CreateRegistrySet weren't uninstalled.
It's just so simple to attach a RegSet to a file group and let IS engine do
all the work.
-Ian

Stefan Krueger <@> wrote in message <3960a912.0@208.30.171.38>...
>The preferred method is to associate the registry set with a file group.
>If you really need to call this function, it must be after file transfer,
>e.g. in OnMoved event handler.
>
>--
>Stefan Krueger - Independent Setup Consultant
><<reply-to address is invalid to avoid spam>>
>
>Visit InstallSite at http://www.installsite.org to download
>free code samples, tips, tools and more...
>For information about individual support and consulting services
>please send a blank mail to the autoresponder at info@installsite.org
>
>Stefan Krueger and the InstallSite.org web site are not affiliated
>with InstallShield Software Corporation.
>
>tvu <terhi.vuorinen@bit.spt.fi> schrieb in im Newsbeitrag:
>3960720E.211ADA48@bit.spt.fi...
>> Hello,
>>
>> I have already created the Registry sets in the Resources pane.
>>
>> In what function should I put the next script:
>>
>> if (CreateRegistrySet ("") < 0) then
>> MessageBox ("Unable to create registry set.",SEVERE);
>> endif;
>>
>> Do I have to add more script than that?
>>
>> Terhi
>>
>
>

NewsArchive
03-27-2001, 01:00 AM
That doesn't do it. As an admin, I can write there. When logged in as a
user, I cannot read it. It bizarre though. Using regedit, I can see and
modify it. But, under program control (Word VBA) I cannot read it.

"Graham Newlands" <graham.newlands@microsell.com.au> wrote in message
news:3abfcc24@12.41.20.38...
> Where are you writing to in the registry ? Make sure it is
> HKEY_LOCAL_MACHINE as I made the same mistake by trying to write to
> HKEY_LOCAL_USERS.
>
> "Charlie Klatzkin" <klatzkin@dsg-inc.com> wrote in message
> news:3abfc5f8@12.41.20.38...
> > I am using Express 2.04. My target PCs are Win98 and Win2k. In Win98,
I
> > was able to write to the registry and have my app read it (ie. getting
the
> > INSTALLDIR and SRCDIR) With Win2k, the installation must be done by an
> > administrator logged in or running RunAs. When the app is run by the
> user,
> > the registry entries are not there.
> > Is there a common registry area that I can write to during installation
in
> > Win2k (logged in as an admin)? Then have my app read it (as a user)?
> >
> >
>
>

NewsArchive
04-03-2001, 12:00 AM
Hi,

I removed the product from Add/Remove Program, the registry files should be
gone also. But I went to "Regedit", found that all registry files of
product still there.

Does everyone know how to remove all registry files along with products?

Thanks,

Cindy

NewsArchive
04-04-2001, 12:00 AM
You might try creating an empty value named "-" (no quotes) under your
registry key; that will cause the entire key to be removed when the
component containing the registry key is removed.

For more information, see the MSI Help Library page "Registry Table".

"Cindy Zhao" <czhao@cyberlogictech.com> wrote in message
news:3ac9ddb4$1@12.41.20.38...
> Hi,
>
> I removed the product from Add/Remove Program, the registry files should
be
> gone also. But I went to "Regedit", found that all registry files of
> product still there.
>
> Does everyone know how to remove all registry files along with products?
>
> Thanks,
>
> Cindy

--
Robert M. Dickau
Senior Technical Trainer
InstallShield Software Corp.
www.installshield.com/training

NewsArchive
10-10-2001, 12:00 AM
well I finally got my .reg file right, and it seems to work under winxp
also, I do ahve to reboot or none of my changes tak effect to the registry,
any idea why this might be?

--Carlos

"Brian-InstallShield" <VB@installshield.com> wrote in message
news:3bc458da@news.installshield.com...
> You should create the .reg file using Regedit 4 (which is included with
> Windows NT 4.0). Use the "export" option in Regedit to export your desired
> registry entries to a .reg file, and include this .reg file with the win32
> registry update bean.
>
> Note that MultiPlatform 4.x does not currently support windows xp.
>
> --
>
> Regards,
>
> Brian L.
> Sr. Developer Support Engineer
> InstallShield Technical Support
> www.installshield.com
>
> Carlos <csolorzano@kscable.com> wrote in message
> news:3bc37fd1@news.installshield.com...
> > I neewd to use the registry bean, but I am having problems creating the
> .reg
> > file, which format should it ahve, the registry 4.0 or 5.0, I am using
> > mainly win2k and winxp, it says that only reg 4.0 can be used but when I
> try
> > installing a reg 4.0 it says its the incorrect version. I am using
> > installshield multiplatform 4.5
> >
> > --Carlos
> >
> >
>
>

NewsArchive
10-26-2001, 12:00 AM
How are you accessing the values from the user input panel?

Something that might be of interest to you (since it sounds like you're
calling the Win32RegistryService API's directly through some custom code) is
that the Win32RegistryUpdate bean now resolves the contents of the registry
file before processing it. So, you could have a registry file with $P()
strings inside of it.

If you use this, a typical scenario would be to include a user input panel
in your wizard sequence that prompts for values. Then, use a
SetProductBeanPropertyAction to drive those values into the product tree.
Then, in your Win32RegistryUpdate, construct a .reg file that sets registry
values using those product properties.

I have attached a very simple example project that does just this. I have
also attached the registry file. Make sure that you change the path to the
registry file to point to where you save the registry file in the IDE before
you build. This will create a single value in the registry under a new key
named [HKEY_LOCAL_MACHINE\SOFTWARE\My Company\Registry Product]. The new
value is called UserName, and its value is set to what the user types in the
user input panel.

Hope that helps.

--
Dave Johnson
MultiPlatform Product Group
InstallShield Software Corporation

Eugene Jin <ejin@spss.com> wrote in message
news:3bd86b78$1@news.installshield.com...
> Any one has luch with Win32RegistryService's createKey and setStringValue
> method with parameters input from a user input panel that needs string
> resolving? I alway get "Parameter is incorrect." message. If I use this
two
> method with hard code parameters, they both work. Thanks.
>
>

NewsArchive
10-26-2001, 12:00 AM
Thanks Dave. This finally works for me. The solution sounds silly: I typed
charater by charater from my reg file to your reg file and used your format.
I think different OS version (even among NTs) makes a difference here. So
anyone whose reg file does not work can borrow this one.

"Dave Johnson - InstallShield" <installshield.com> wrote in message
news:3bd96ae4$1@news.installshield.com...
> How are you accessing the values from the user input panel?
>
> Something that might be of interest to you (since it sounds like you're
> calling the Win32RegistryService API's directly through some custom code)
is
> that the Win32RegistryUpdate bean now resolves the contents of the
registry
> file before processing it. So, you could have a registry file with $P()
> strings inside of it.
>
> If you use this, a typical scenario would be to include a user input panel
> in your wizard sequence that prompts for values. Then, use a
> SetProductBeanPropertyAction to drive those values into the product tree.
> Then, in your Win32RegistryUpdate, construct a .reg file that sets
registry
> values using those product properties.
>
> I have attached a very simple example project that does just this. I have
> also attached the registry file. Make sure that you change the path to the
> registry file to point to where you save the registry file in the IDE
before
> you build. This will create a single value in the registry under a new key
> named [HKEY_LOCAL_MACHINE\SOFTWARE\My Company\Registry Product]. The new
> value is called UserName, and its value is set to what the user types in
the
> user input panel.
>
> Hope that helps.
>
> --
> Dave Johnson
> MultiPlatform Product Group
> InstallShield Software Corporation
>
> Eugene Jin <ejin@spss.com> wrote in message
> news:3bd86b78$1@news.installshield.com...
> > Any one has luch with Win32RegistryService's createKey and
setStringValue
> > method with parameters input from a user input panel that needs string
> > resolving? I alway get "Parameter is incorrect." message. If I use this
> two
> > method with hard code parameters, they both work. Thanks.
> >
> >
>
>
>