/build/static/layout/Breadcrumb_cap_w.png

unable to register type library for .reg. or .bat using Wise

I am creating an .msi using WPS. I have added .bat and .reg files to the app's program folder. The .msi compiles fine. However, when I test the install of the .msi, it delivers error 1911: unable to register type library for file.reg (or file.bat).

If I go into the package to click on the file in order to deselect registraton, Wise tells me that the file cannot be found.

Craig --<>.

0 Comments   [ + ] Show comments

Answers (3)

Posted by: kkaminsk 19 years ago
9th Degree Black Belt
0
Well this does confuse me a bit because you are having a typelib associated with .reg and .bat files. Typically COM components are .dll or .exe. I have had Wise outright get the GUIDs wrong when trying to register TypeLibs. I would take a clean machine with a working install and one without then do a delta on HKEY Classes Root. The delta should give you an idea of what Wise is doing wrong. If you cannot figure it out then try removing the delta entries from your MSI and then add them back in but have Wise not convert them to advertising info.

I am assuming you are getting the 1911 from a bad GUID but it could be because of the file type you are using but I dunno for sure because I have not gone down that road. So there is the path of removing all registry entries associated with those two files and then putting them back without converting to advertising information.

I know this is kinda lame for a response but COM is not fun to debug. If anyone has a good reference for how all the registry entries for a COM registration relate to each other it would be nice to help illustrate how it all works. Let me know if this helps at all and if not I'll try to see what I can suggest.
Posted by: craig16229 19 years ago
Third Degree Brown Belt
0
Believe me, the typelib error regarding a .bat or .reg file has me scratching my head too. The association is certainly not part of my intention or design. The files in questions were manually added by me for utility purposes, and are not tied to the installation in any way. For the moment, I will spare this thread the ugly details of how and why I am using this .reg file.

As far as the machine goes, the one I am using is clean. It is a vmware 4.x workstation running Win2K sp4. It is configured to return to the snapshot state upon shutdown, and has a minimal "clean machine" install of Wise Package Studio.

One thing you bring to mind which I have not tried is to retain the registry entries as they are and not convert to advertising info.

This is all part of the fun of trying to repackage Lotus Approach 97 into a stable .msi. Approach 97 is not supported on Win2K, so the whole thing is dicey to begin with. It is one of those client-driven needs that takes one down a less than desireable path.


Craig --<>.
Posted by: craig16229 19 years ago
Third Degree Brown Belt
0
In answer to my own question, I found two solutions:

1. edit the .msi, moving the .reg / .bat files into their own custom component.

or

2. before "end capture", place the desired .reg / .bat files into a higher level directory that contains no dll's so that they do not become a component of any .dll

I chose the latter, as it seemed to be the cleaner option.


Craig --<>.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ