Register/Install assembly do not work

Got a problem you cannot solve? Try here.
Post Reply
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Register/Install assembly do not work

Post by Rulan »

Hi,
We have problem to write settings from a .dll to Registry using "Register/Install assembly". :(
It do not work, no Settings are written down...
This could be testet on XP or win7 (64)...

When we run it in Dos-BOX using "C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe" we have no Problem..
When we run above RegAsm.exe with "Run Program" in IA 15 (Build 11.05.12) everything is fine...

What to do? You have an idea?

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

Re: Register/Install assembly do not work

Post by FrancescoT »

Dear Rulan,

does it happen with that assembly only, or with any other one?

I may suggest you to have a look at the following link;
http://www.installaware.com/forum/viewt ... 46&start=0

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
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Register/Install assembly do not work

Post by Rulan »

Dear Francesco,

----does it happen with that assembly only, or with any other one?---

IT seems there are Register-Problems with other assemblies too..
Regasm.exe with "run Program" works fine!!!

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

Re: Register/Install assembly do not work

Post by FrancescoT »

Dear Rulan,

very strange!

Are you using "Set x64 - Native 64 bit Windows, .... installation mode" command within your code?

I'm asking this because I seen you used the x86 version of "RegAsm.exe" when you used the CMD prompt.

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
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Register/Install assembly do not work

Post by Rulan »

Hello Francesco,

I think I got it, but it seems to be a little bit strang to me... :o

First... Using regasm.exe 64 or 32 bit made no difference!!! Both work fine...

1) (32-bit mode) I install the .dll using "install assembly D:\....\bla bla\ File.dll" before apply install :cry:
Result no registry settings are written...

2) Then I try to register using "register assembly D:\....\bla bla\ File.dll" after apply install using native engine...
I find out ...
Register.png
Register.png (70.99 KiB) Viewed 7994 times
what is going wrong with the first Version I tried?? Could You prove it? :?

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

Re: Register/Install assembly do not work

Post by FrancescoT »

Dear Rulan,

with your screen shots you have two calls to Register Assambly and with it you should pass the file name only.

I am not a .NET expert, but for what I know the Register assembly command relies on "regasm" tool and with it the assembly have to be registered as;
- regasm myTest.dll

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