PC Review


Reply
Thread Tools Rate Thread

how to create tlb w/o administrator right on vista

 
 
GS
Guest
Posts: n/a
 
      22nd Jun 2009
How can I create an tlb file from an .net dll on vista w/o admin privilege?.
I am using vs 2008 fw 3.5.


I can easily create the required reg file with regasm


 
Reply With Quote
 
 
 
 
Family Tree Mike
Guest
Posts: n/a
 
      22nd Jun 2009
"GS" <(E-Mail Removed)> wrote in message
news:uqxxp%(E-Mail Removed)...
> How can I create an tlb file from an .net dll on vista w/o admin
> privilege?.
> I am using vs 2008 fw 3.5.
>
>
> I can easily create the required reg file with regasm
>
>



Have you tried regasm /tlb?
http://msdn.microsoft.com/en-us/library/tzat5yw6(VS.80).aspx?ppud=4

--
Mike

 
Reply With Quote
 
GS
Guest
Posts: n/a
 
      23rd Jun 2009
I did try
regasm my.dll /t:my.tlb
and I was "rewarded" with
Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.3053
Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.

RegAsm : error RA0000 : An error occurred while writing the registration
information to the registry. You must have administrative credentials to
perform this task. Contact your system administrator for assistance

I hope there is some sort uac setting I can use to set the pseudo registry
just for the ID so I can proceed as non admin w/o affecting any other users.
on the pc. I don't want to install on the GAC


I just want the tlb file don't care if I have to do reg import later


"Family Tree Mike" <(E-Mail Removed)> wrote in message
news:C4D71934-81C5-4F23-9283-(E-Mail Removed)...
> "GS" <(E-Mail Removed)> wrote in message
> news:uqxxp%(E-Mail Removed)...
> > How can I create an tlb file from an .net dll on vista w/o admin
> > privilege?.
> > I am using vs 2008 fw 3.5.
> >
> >
> > I can easily create the required reg file with regasm
> >
> >

>
>
> Have you tried regasm /tlb?
> http://msdn.microsoft.com/en-us/library/tzat5yw6(VS.80).aspx?ppud=4
>
> --
> Mike
>



 
Reply With Quote
 
Family Tree Mike
Guest
Posts: n/a
 
      23rd Jun 2009
"GS" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I did try
> regasm my.dll /t:my.tlb
> and I was "rewarded" with
> Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.3053
> Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.
>
> RegAsm : error RA0000 : An error occurred while writing the registration
> information to the registry. You must have administrative credentials to
> perform this task. Contact your system administrator for assistance
>
> I hope there is some sort uac setting I can use to set the pseudo
> registry
> just for the ID so I can proceed as non admin w/o affecting any other
> users.
> on the pc. I don't want to install on the GAC
>
>
> I just want the tlb file don't care if I have to do reg import later
>
>



I didn't realize regasm /tlb actually registered the objects. The artical
also discuss the difference between regasm /tlb and tlbexp. You could try
tlbexp, which does not register anything. Of course, if you have admin
rights anywhere, you could generate the tlb there, and copy it whereever you
need it.

Generally developers do need admin rights. I saw your post on the other
group. I agree that there are reasons for limiting priveledges, and the
company that I work at is struggling with this issue. Unfortunately they
don't have it right yet, and to accomplish anything useful we need to use
our "admin enabled" accounts.

--
Mike

 
Reply With Quote
 
GS
Guest
Posts: n/a
 
      23rd Jun 2009
registration free side by side use of com is great for .net applications.

However, there is still legacy applications requiring this COM class to
enhance its ability to handle information for users. Unfortunately these
complex legacy application are not likely to be rewritten due to high cost
of rewrite and risk their stability and user satisfaction.

"Patrice" <http://www.chez.com/scribe/> wrote in message
news:84ABB2C0-C431-4486-9D28-(E-Mail Removed)...
> Try :
> http://msdn.microsoft.com/en-us/library/ms973915.aspx
>
> If you really need to, you should be able to call .NET components from COM
> or COM components from .NET without registring them...
>
> Else you would need to this at setup time...
>
> --
> Patrice
>
> "GS" <(E-Mail Removed)> a écrit dans le message

de
> groupe de discussion : uqxxp#(E-Mail Removed)...
> > How can I create an tlb file from an .net dll on vista w/o admin
> > privilege?.
> > I am using vs 2008 fw 3.5.
> >
> >
> > I can easily create the required reg file with regasm
> >
> >

>



 
Reply With Quote
 
GS
Guest
Posts: n/a
 
      23rd Jun 2009
thank you, I will give tlbexp a shot.


I sure hope ms will get it right sometime soon: in the end deployment we or
application admin do need the admin right. however we should be to do most
of development and testing w/o admin right so we can easily tear down and
redo the development w/o restoring image for the enter OS. just use a
different local ID for different application project if need to. setting
up user profile from user profile restore is a lot quicker than os image;
also quick to back up a profile frequently


it will certainly make life easier if ms vs allow us in compile/build option
to deploy as local user vs presumed GAC for COM class.

"Family Tree Mike" <(E-Mail Removed)> wrote in message
news54641E1-9BC8-4B2A-9C13-(E-Mail Removed)...
> "GS" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I did try
> > regasm my.dll /t:my.tlb
> > and I was "rewarded" with
> > Microsoft (R) .NET Framework Assembly Registration Utility

2.0.50727.3053
> > Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.
> >
> > RegAsm : error RA0000 : An error occurred while writing the registration
> > information to the registry. You must have administrative credentials to
> > perform this task. Contact your system administrator for assistance
> >
> > I hope there is some sort uac setting I can use to set the pseudo
> > registry
> > just for the ID so I can proceed as non admin w/o affecting any other
> > users.
> > on the pc. I don't want to install on the GAC
> >
> >
> > I just want the tlb file don't care if I have to do reg import later
> >
> >

>
>
> I didn't realize regasm /tlb actually registered the objects. The artical
> also discuss the difference between regasm /tlb and tlbexp. You could try
> tlbexp, which does not register anything. Of course, if you have admin
> rights anywhere, you could generate the tlb there, and copy it whereever

you
> need it.
>
> Generally developers do need admin rights. I saw your post on the other
> group. I agree that there are reasons for limiting priveledges, and the
> company that I work at is struggling with this issue. Unfortunately they
> don't have it right yet, and to accomplish anything useful we need to use
> our "admin enabled" accounts.
>
> --
> Mike
>



 
Reply With Quote
 
GS
Guest
Posts: n/a
 
      24th Jun 2009
tlbexp worked with a bit warning
TlbExp : warning TX0000 : When cross-compiling, all type library references
should be included on the command line to ensure the correct bit-specific
type libraries are loaded.

I will see what else I have to put in on the command line for the required
the references. is core something one of them?

I did get some good result from testing the com class with vbs though one
function did not return any string - or the string vbs could use. I did not
specifically marshal the string type in the com component but it worked
before on win xp. the function prototype is
public function myfcn() As string

return "some long lines of string"
end function

the console print function did not worked either

"GS" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> thank you, I will give tlbexp a shot.
>
>
> I sure hope ms will get it right sometime soon: in the end deployment we

or
> application admin do need the admin right. however we should be to do

most
> of development and testing w/o admin right so we can easily tear down and
> redo the development w/o restoring image for the enter OS. just use a
> different local ID for different application project if need to. setting
> up user profile from user profile restore is a lot quicker than os image;
> also quick to back up a profile frequently
>
>
> it will certainly make life easier if ms vs allow us in compile/build

option
> to deploy as local user vs presumed GAC for COM class.
>
> "Family Tree Mike" <(E-Mail Removed)> wrote in message
> news54641E1-9BC8-4B2A-9C13-(E-Mail Removed)...
> > "GS" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > I did try
> > > regasm my.dll /t:my.tlb
> > > and I was "rewarded" with
> > > Microsoft (R) .NET Framework Assembly Registration Utility

> 2.0.50727.3053
> > > Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.
> > >
> > > RegAsm : error RA0000 : An error occurred while writing the

registration
> > > information to the registry. You must have administrative credentials

to
> > > perform this task. Contact your system administrator for assistance
> > >
> > > I hope there is some sort uac setting I can use to set the pseudo
> > > registry
> > > just for the ID so I can proceed as non admin w/o affecting any other
> > > users.
> > > on the pc. I don't want to install on the GAC
> > >
> > >
> > > I just want the tlb file don't care if I have to do reg import later
> > >
> > >

> >
> >
> > I didn't realize regasm /tlb actually registered the objects. The

artical
> > also discuss the difference between regasm /tlb and tlbexp. You could

try
> > tlbexp, which does not register anything. Of course, if you have admin
> > rights anywhere, you could generate the tlb there, and copy it whereever

> you
> > need it.
> >
> > Generally developers do need admin rights. I saw your post on the other
> > group. I agree that there are reasons for limiting priveledges, and the
> > company that I work at is struggling with this issue. Unfortunately

they
> > don't have it right yet, and to accomplish anything useful we need to

use
> > our "admin enabled" accounts.
> >
> > --
> > Mike
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a DVD as a non-Administrator Matt Windows XP General 0 26th Dec 2008 07:36 PM
Administrator account - will not let me create =?Utf-8?B?S0JKTQ==?= Windows Vista Networking 0 13th Jul 2007 10:20 PM
Vista Will Not Let Administrator Create Folder In Root of System Volume? Will Windows Vista Security 4 22nd Jun 2007 02:02 PM
If I am logged in as administrator why don't programs run as administrator vista? RoaringLambs Windows Vista General Discussion 6 14th Jun 2007 12:17 AM
Re-create Administrator? =?Utf-8?B?Unlhbg==?= Microsoft Frontpage 1 1st Feb 2007 09:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:33 PM.