Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista security

Vista - RegAsm.exe on Vista

Reply
 
Old 02-23-2007   #1 (permalink)
vovan


 
 

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\RegAsm.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



My System SpecsSystem Spec
Old 02-23-2007   #2 (permalink)
mayayana


 
 

Re: RegAsm.exe on Vista

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



My System SpecsSystem Spec
Old 02-23-2007   #3 (permalink)
Phill W.


 
 

Re: RegAsm.exe on Vista

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\RegAsm.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.
My System SpecsSystem Spec
Old 02-23-2007   #4 (permalink)
Chris Dunaway


 
 

Re: RegAsm.exe on Vista

On Feb 23, 9:05 am, "vovan" <some...@vovan.com> wrote:
> 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\RegAsm.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

My System SpecsSystem Spec
Old 02-23-2007   #5 (permalink)
vovan


 
 

Re: RegAsm.exe on Vista

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" <dunawayc@gmail.com> wrote in message
news:1172265487.522724.63610@z35g2000cwz.googlegroups.com...
> On Feb 23, 9:05 am, "vovan" <some...@vovan.com> wrote:
>> 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\RegAsm.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
>



My System SpecsSystem Spec
Old 02-23-2007   #6 (permalink)
Phil Wilson


 
 

Re: RegAsm.exe on Vista

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" <someone@vovan.com> wrote in message
news:ec39ig5VHHA.1212@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" <dunawayc@gmail.com> wrote in message
> news:1172265487.522724.63610@z35g2000cwz.googlegroups.com...
>> On Feb 23, 9:05 am, "vovan" <some...@vovan.com> wrote:
>>> 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\RegAsm.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
>>

>
>



My System SpecsSystem Spec
Old 02-28-2007   #7 (permalink)
Patrick


 
 

Using regasm under Vista

In Vista, you should be able to right click Command Prompt (from Start, Programs, Accessories), choose Run as, then choose an administrator account, then running regasm.exe from the command prompt should work.

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
RegAsm.exe on Vista Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46