471,049 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,049 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 5499
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Kevin Flanagan | last post: by
reply views Thread by Namratha Shah \(Nasha\) | last post: by
2 posts views Thread by Id L | last post: by
2 posts views Thread by Sara | last post: by
1 post views Thread by auad | last post: by
2 posts views Thread by gopal | last post: by

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.