473,231 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

RegAsm.exe on Vista

My VB6 application uses DLL developed in VB2005. It may be changed very
often and everytime VB6 application unregisters an old version, replaces
with a new one and registers a new version by using RegAsm.exe
I'm doing it this way:
Shell "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Reg Asm.exe " &
"""" & strAppPath & "\WorkorderXML.dll" & """"

On Windows XP it works fine. On Vista the registration fails without any
message.
I tried to register it manually via Run window. It is not registered either.
I think this is Vista security again.

Any suggestion how to register the DLL via RegAsm on Vista

Thank you

vovan
Feb 23 '07 #1
5 5572
Strange. You added a VB6 newsgroup to your
long list of inappropriate posting locations for a
..Net question, but you neglected to add -

alt.questions.EverythingUnderTheSun

Feb 23 '07 #2
vovan wrote:
My VB6 application uses DLL developed in VB2005.
That's brave of you.
It may be changed very often and everytime VB6 application unregisters
an old version, replaces with a new one and registers a new version by
using RegAsm.exe
Your program should be running as a "User".

To install anything (and regasm is "installing" COM types), you require
the incredible, super-human abilities of "Vista-Administrator-Man" ...
or "-Lady" ...
or "-Cat" ...
and let's face it; our feline friends stand about as much chance as the
rest of us to get anything running properly on this darn O/S.
I'm doing it this way:
Shell "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Reg Asm.exe " &
"""" & strAppPath & "\WorkorderXML.dll" & """"
Doesn't matter how you do it; it won't work for a mere Mortal.
On Windows XP it works fine. On Vista the registration fails without any
message.
It's probably trying to write the error somewhere, but doesn't have the
permissions to do so! ;-)

Regards,
Phill W.
Feb 23 '07 #3
On Feb 23, 9:05 am, "vovan" <some...@vovan.comwrote:
My VB6 application uses DLL developed in VB2005. It may be changed very
often and everytime VB6 application unregisters an old version, replaces
with a new one and registers a new version by using RegAsm.exe
I'm doing it this way:
Shell "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Reg Asm.exe " &
"""" & strAppPath & "\WorkorderXML.dll" & """"

On Windows XP it works fine. On Vista the registration fails without any
message.
I tried to register it manually via Run window. It is not registered either.
I think this is Vista security again.

Any suggestion how to register the DLL via RegAsm on Vista

Thank you

vovan
You should be able to use regsvr32.exe manually if you run it as admin
or you could try registration free COM:

http://msdn.microsoft.com/msdnmag/is...04/RegFreeCOM/

good luck!

Chris

Feb 23 '07 #4
Thank you Chris.
Now my VB6 app registers DLL developed in VB 2005 without any user
interaction. It's working on 2000 and XP only. On Vista Why should I move to
manual registration?

vovan

"Chris Dunaway" <du******@gmail.comwrote in message
news:11*********************@z35g2000cwz.googlegro ups.com...
On Feb 23, 9:05 am, "vovan" <some...@vovan.comwrote:
>My VB6 application uses DLL developed in VB2005. It may be changed very
often and everytime VB6 application unregisters an old version, replaces
with a new one and registers a new version by using RegAsm.exe
I'm doing it this way:
Shell "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Reg Asm.exe "
&
"""" & strAppPath & "\WorkorderXML.dll" & """"

On Windows XP it works fine. On Vista the registration fails without any
message.
I tried to register it manually via Run window. It is not registered
either.
I think this is Vista security again.

Any suggestion how to register the DLL via RegAsm on Vista

Thank you

vovan

You should be able to use regsvr32.exe manually if you run it as admin
or you could try registration free COM:

http://msdn.microsoft.com/msdnmag/is...04/RegFreeCOM/

good luck!

Chris

Feb 23 '07 #5
Regasm.exe does not have a manifest, so it will not ask for elevation,
therefore by default it will run as a standard user and will fail to write
to HKLM registry entries.
--
Phil Wilson
[Microsoft MVP Windows Installer]
"vovan" <so*****@vovan.comwrote in message
news:ec**************@TK2MSFTNGP03.phx.gbl...
Thank you Chris.
Now my VB6 app registers DLL developed in VB 2005 without any user
interaction. It's working on 2000 and XP only. On Vista Why should I move
to manual registration?

vovan

"Chris Dunaway" <du******@gmail.comwrote in message
news:11*********************@z35g2000cwz.googlegro ups.com...
>On Feb 23, 9:05 am, "vovan" <some...@vovan.comwrote:
>>My VB6 application uses DLL developed in VB2005. It may be changed very
often and everytime VB6 application unregisters an old version, replaces
with a new one and registers a new version by using RegAsm.exe
I'm doing it this way:
Shell "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Reg Asm.exe
" &
"""" & strAppPath & "\WorkorderXML.dll" & """"

On Windows XP it works fine. On Vista the registration fails without any
message.
I tried to register it manually via Run window. It is not registered
either.
I think this is Vista security again.

Any suggestion how to register the DLL via RegAsm on Vista

Thank you

vovan

You should be able to use regsvr32.exe manually if you run it as admin
or you could try registration free COM:

http://msdn.microsoft.com/msdnmag/is...04/RegFreeCOM/

good luck!

Chris


Feb 24 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Kevin Flanagan | last post by:
This can be reproduced with VS.NET as follows. Create a new ATL project with default wizard settings (dll, attributed). To the 'module' attribute, add a specifier 'version = "1.10" ' alongside the...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, TlbExp.exe and Regasm.exe tools aid us in exporting assembly information to a type library so that non .Net Applications or unmanaged code use this type library information to call...
2
by: Id L | last post by:
hi, i want to use gacutil.exe and regasm.exe but i don't want to install "all" .net framework SDK do you know if i can install only these 2 methods? or maybe i can use them without installing...
2
by: Sara | last post by:
I have written a class and tried to register it using regasm.exe using regasm myTest.dll /tlb:myTest.tlb tlb file got generated and i got dll registered successfully msg. but when i go and...
2
by: Kenneth Jonsson | last post by:
I have an COM server in an assembly. When it is deployed on a target computer it needs to be registred with RegAsm. I created a custom action in the deploy project, starting RegAsm with the...
0
by: rbanerji | last post by:
I have a COM object built in C#. Its a an IE deskband. It implements the following method: public static void Register( Type t ) Which gets called when regasm is used and it makes teh...
1
by: auad | last post by:
hi, I would like to register a dll (regasm) during the execution of my setup using custom actions. I don't know where to place the parameters for regasm in the custom action. I tried using "...
2
by: gopal | last post by:
I installed MS DevEnv 2003 with framework 1.1.I developed a small application which looks out for the assembly vcersion of a .net DLL or EXE via code. But i have a problme durng the registration...
2
by: xamman | last post by:
hi there, i am trying to use a .NET assembly from a Cscript.exe .vbs (i.e. from COM) and could not get my .vbs to use my .net dll (gives a 'file not found error') unless i used the /codebase...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.