Registr .net dll in registry using Installaware

Got a problem you cannot solve? Try here.
Post Reply
sandeepappana444
Posts: 3
Joined: Tue Aug 30, 2011 1:03 am

Registr .net dll in registry using Installaware

Post by sandeepappana444 »

Hi,

i am new to installaware i want to register my .net dll in registry through installaware
i am using like this but it is not working

Here is the settings I used:

Run Program: $WINDIR$\\Microsoft.NET\\Framework\\v4.0.30319\\regasm.exe

Check "Hide Program Window"

Command Line: "$TARGETDIR$\\mycode.dll" /codebase

Check "Wait for Program to Finish"

That works. Before removing the file, on uninstall I call the same regasm.exe but use the command line of:

"$TARGETDIR$\\mycode.dll" /unregister
please help me

Thanks
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Registr .net dll in registry using Installaware

Post by FrancescoT »

Dear User,

if you are sure that the "unregister" operation it is executed before the file is removed, I may suggest you try to execute the command without setting the "Hide Program Window" flag.

Doing in this way, the CMD windows is left open and probably you are able to verify the returned info by the command execution.

Reagrds
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
sandeepappana444
Posts: 3
Joined: Tue Aug 30, 2011 1:03 am

Re: Registr .net dll in registry using Installaware

Post by sandeepappana444 »

Hi


I did not work for me.I am using .net framework 2.0
how i register a dll in registry is any another way any modifications for

Run Program: $WINDIR$\\Microsoft.NET\\Framework\\v2.0.50727\\RegAsm.exe

Check "Hide Program Window"

Command Line: "$TARGETDIR$\\mycode.dll" /codebase

Check "Wait for Program to Finish"

That works. Before removing the file, on uninstall I call the same regasm.exe but use the command line of:

"$TARGETDIR$\\mycode.dll" /unregister

Thanks
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Registr .net dll in registry using Installaware

Post by FrancescoT »

Dear User,

I suggested you to try with UN-Checking "Hide Program Window".
This in order to leave the CMD window open and to verify if any extra message is reported by the unregister task.

Did you try it?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply