473,586 Members | 2,863 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\Mic rosoft.NET\Fram ework\v2.0.5072 7\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
Feb 23 '07 #1
5 5588
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.E verythingUnderT heSun

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\Mic rosoft.NET\Fram ework\v2.0.5072 7\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.
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\Mic rosoft.NET\Fram ework\v2.0.5072 7\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

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******** *************@z 35g2000cwz.goog legroups.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\Mic rosoft.NET\Fram ework\v2.0.5072 7\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

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******** ******@TK2MSFTN GP03.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******** *************@z 35g2000cwz.goog legroups.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\Mic rosoft.NET\Fram ework\v2.0.5072 7\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


Feb 24 '07 #6

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

Similar topics

5
3268
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 name, uuid etc. specifiers. Build the dll. Use tlbimp to create a primary interop assembly for it. Register that assembly using regasm. The...
0
1732
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 .Net assembly. Just like tlbimp which works on the entire COM Component (check out yesterdays article) tlbexp also works on the entire assembly. ...
2
3905
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 SDK? * need help also if you know how to silently install SDK? thnx for your help IDL
2
4530
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 see the reistry i am not able to see the clsid and progid but the class got created. Can anybody help me out in this issue.
2
2888
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 assembly DLL as command argument. It all works as expected. To make RegAsm available I installed it from the framework bin directory to the componentes...
0
2797
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 appropriate entries into the registry. Works great. Now I am trying to build a installer for this using VS 2005. I did the
1
4465
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 " \myAssembly.dll " but regasm.exe didn't run during the execution of the setup. regasm <myAssembly.dll/codebase
2
4354
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 using RegAsm. My Question is Does the RegASM can be called from anywere like we call RegSvr32 or it will be found only in Visual Studio Tools...
2
5969
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 parameter when registering .net dll with regasm. from what i read,a simple regasm dllname.dll and putting the dll and cscript.exe in the same...
0
7839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8200
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7954
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.