[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.setup

Installation Package - Running Utility Programs

JerryWEC

7/9/2007 4:19:00 PM

How do you run a utility program like regasm.exe against your files during
installation? I'd like to register a .tlb file or create a new .tlb file
during installation. How do you do something like this from the standard
installation package?

TIA! Jerry


3 Answers

Phil Wilson

7/9/2007 6:21:00 PM

0

You mark the Register property of the file to one of the register values
(usually vsrdaCOM for an assembly) and the setup project will generate the
class registration entries. Typelibs are the same, and I believe the setup
project will automatically set the correct Register property to get them
registered.
--
Phil Wilson
[MVP Windows Installer]

"JerryWEC" <JerryWEC@newsgroups.nospam> wrote in message
news:eFygbTkwHHA.3364@TK2MSFTNGP02.phx.gbl...
> How do you run a utility program like regasm.exe against your files during
> installation? I'd like to register a .tlb file or create a new .tlb file
> during installation. How do you do something like this from the standard
> installation package?
>
> TIA! Jerry
>


JerryWEC

7/10/2007 2:02:00 PM

0

Phil, thanks for your response!

I have this .tlb file setup for the vsdpaCOM, however, I'm getting the following warning...
WARNING: Unable to create registration information for file named 'CLA_WMWrapper.tlb'

while rebuilding my project. After I install the package the WMWrapper class is not working.

So I then use the following command line utility:

regasm.exe cla_wmwrapper.dll /t:cla_wmwrapper.tlb

and now my cla_wmwrapper.tlb file is regenerated and is registered.

So I don't know how to make this work. Can you or someone help me?

I'd like to know how to do a custom action where I can call this regasm.exe with the arguments and switches.

I'd like to know how to run another myapp.exe which is an activeX exe that register it self.

Help and TIA!! Jerry
"Phil Wilson" <phil.wilson@wonderware.something.com> wrote in message news:OAiIhXlwHHA.3720@TK2MSFTNGP02.phx.gbl...
> You mark the Register property of the file to one of the register values
> (usually vsrdaCOM for an assembly) and the setup project will generate the
> class registration entries. Typelibs are the same, and I believe the setup
> project will automatically set the correct Register property to get them
> registered.
> --
> Phil Wilson
> [MVP Windows Installer]
>
> "JerryWEC" <JerryWEC@newsgroups.nospam> wrote in message
> news:eFygbTkwHHA.3364@TK2MSFTNGP02.phx.gbl...
>> How do you run a utility program like regasm.exe against your files during
>> installation? I'd like to register a .tlb file or create a new .tlb file
>> during installation. How do you do something like this from the standard
>> installation package?
>>
>> TIA! Jerry
>>
>
>

Phil Wilson

7/10/2007 11:59:00 PM

0

Visual Studio setups often try to extract the registration data at build
time, which is the recommended MSI thing to do. So when you add a
typelib and build it tries to capture all the registration data and save it
in the MSI file. vsdpaCOM looks like a primary output/project output option,
and I've seen some issues in this area. I wonder if you get the build error
if you browse to the typelib and add it manually.

You don't want regasm for typelibs, you just need a C++ program that does
this:

ITypeLib * ity=NULL;
HRESULT hr = LoadTypeLibEx (path to tlb file, REGKIND_REGISTER, &ity);
if (SUCCEEDED(hr))
{
ity->Release();
}

--
Phil Wilson
[MVP Windows Installer]


"JerryWEC" <JerryWEC@newsgroups.nospam> wrote in message
news:egx6xrvwHHA.4572@TK2MSFTNGP02.phx.gbl...
Phil, thanks for your response!

I have this .tlb file setup for the vsdpaCOM, however, I'm getting the
following warning...
WARNING: Unable to create registration information for file named
'CLA_WMWrapper.tlb'

while rebuilding my project. After I install the package the WMWrapper
class is not working.

So I then use the following command line utility:

regasm.exe cla_wmwrapper.dll /t:cla_wmwrapper.tlb

and now my cla_wmwrapper.tlb file is regenerated and is registered.

So I don't know how to make this work. Can you or someone help me?

I'd like to know how to do a custom action where I can call this regasm.exe
with the arguments and switches.

I'd like to know how to run another myapp.exe which is an activeX exe that
register it self.

Help and TIA!! Jerry
"Phil Wilson" <phil.wilson@wonderware.something.com> wrote in message
news:OAiIhXlwHHA.3720@TK2MSFTNGP02.phx.gbl...
> You mark the Register property of the file to one of the register values
> (usually vsrdaCOM for an assembly) and the setup project will generate the
> class registration entries. Typelibs are the same, and I believe the setup
> project will automatically set the correct Register property to get them
> registered.
> --
> Phil Wilson
> [MVP Windows Installer]
>
> "JerryWEC" <JerryWEC@newsgroups.nospam> wrote in message
> news:eFygbTkwHHA.3364@TK2MSFTNGP02.phx.gbl...
>> How do you run a utility program like regasm.exe against your files
>> during
>> installation? I'd like to register a .tlb file or create a new .tlb file
>> during installation. How do you do something like this from the standard
>> installation package?
>>
>> TIA! Jerry
>>
>
>