Default company name and copyright information in Assembly Informa

J

James Wong

Hi everybody,

I'm trying to use the new VB 2008 right now and I want to know how to preset
the company name and copyright informtion in Assembly Information. In my
current VB 2005, company name and copyright information (the word "CopyRight"
with company name and year) is filled in automatically once a new project is
created. However, I have no idea where I can configurate it in my new VB
2008.

Thanks for your kindly advice!

Regards,
James Wong
 
S

Steven Cheng [MSFT]

Hi James,

From your description, you're wondering how to configure the assembly
information such as "copy right", "company name".... in Visual Studio 2008
created VB.NET project, correct?

Based on my understanding, these info is configurable at design-time via
project's properties setting. You can find the setting via the following
approach:

** In Solution Explorer, right click project node and choose "Properites"
menu

** in the opened properties view, choose the first "Application" tab at
left side(it's the default one)

** on the "application" view panel, you can see a "Assembly information..."
button, click it and will find those assembly information properties

For VB.NET project, there is a quick way to go to Application properties,
here is a blog entry mentioned this:

#Looking at Assembly Information
http://blogs.msdn.com/trobbins/archive/2006/12/07/looking-at-assembly-inform
ation.aspx

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
 
J

James Wong

Hi Steven,

Thanks again for your rapid response to my question! However, I may not
describe my question clearly. I know how to input the company name and
copyright information project by project everytime I create a new one. My
case is, in my existing VB 2005, whenever I create a new project, those
information is filled in automatically in Assembly. There is no need for me
to modify manually. But I forgot how I made it sincie it was configurated
several years ago.

Thanks again for your follow-up!

Regards,
James Wong
 
P

Phill W.

James said:
I'm trying to use the new VB 2008 right now and I want to know how to preset
the company name and copyright informtion in Assembly Information. In my
current VB 2005, company name and copyright information (the word "CopyRight"
with company name and year) is filled in automatically once a new project is
created. However, I have no idea where I can configurate it in my new VB
2008.

(Somewhere within the Visual Basic installation) Locate and modify the
Project /Templates/ to set the Company Name and other, static text.

Modify the associated JScript code to dynamically insert the current
year - or hard-code the year as well and get ready to edit and
re-release all your templates every January 1st. :)

HTH,
Phill W.
 
S

Steven Cheng [MSFT]

Hi James,

Thanks for your quick reply and the further clarify.

Now I've got your actual goal on this. For the default values for a new
created project, those default values(put in the precreated project files
such as AssemblyInfo.xx Form1.xx ...) are retrieved from the project
template. You can lookup all the existing built-in project templates in the
following project template folder of Visual Studio(9.0 for vs 2008):

#this is the path for VB.NET project:
C:\Program Files\Microsoft Visual Studio
9.0\Common7\IDE\ProjectTemplates\VisualBasic\

For example, you can look into the package of classlibrary project:

C:\Program Files\Microsoft Visual Studio
9.0\Common7\IDE\ProjectTemplates\VisualBasic\windows\1033\classlibrary.zip

in the the zip package, you can find the "AsseblyInfo.vb" template file.
Those properties(such as assembly company copyright ) use some global
constant from visual studio or OS's registry data. If you want them to
reflect your own custom values, you can open the package and customize
it(the assemblyInfo.vb or other template files).

Here are some further reference about project templates in Visual Studio:

#Default Project Templates in Visual Studio
http://msdn.microsoft.com/en-us/library/0fyc0azh.aspx

#Customizing Project and Item Templates
http://msdn.microsoft.com/en-us/library/ms247119.aspx

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: =?Utf-8?B?SmFtZXMgV29uZw==?= <[email protected]>
References: <[email protected]>
Subject: RE: Default company name and copyright information in Assembly Inf
Date: Mon, 30 Jun 2008 01:04:00 -0700
 
J

James Wong

Hi Steven,

Thanks for your reply! Now I understand where the default values come from
in my existing VB2005. The value $registeredorganization$ from registry
should be the key in this case. However, the PC I use to evaluate VB2008 is
a new one and I installed Windows Vista from DVD. I think I may skip to
provide the value so VB2008 fails to retrieve it from registry. Now my
question is shifted to how I can fill value in $registeredorganization$.

Thanks again for your follow-up.

Regards,
James Wong
 
S

Steven Cheng [MSFT]

Thanks for your reply James,

Yes, I think those values should be maintained in registry, however, so far
I haven't found clear documentation on this. I'll consult some other VS IDE
engineers to see whether they have any furhter information on the settings.
I'll let you know if I get any update.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: =?Utf-8?B?SmFtZXMgV29uZw==?= <[email protected]>
References: <[email protected]>
<[email protected]>
Subject: RE: Default company name and copyright information in Assembly Inf
Date: Tue, 1 Jul 2008 19:09:00 -0700
 
J

James Wong

Hi Steven,

From the Microsoft on-line document #310441, I found the way to modify
company information in registry. I tried to input value in
RegisteredOrganization under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion and it works fine. Now, the company name is filled in
assembly automatically when a new project is created.

Thanks for your kindly follow-up!

Regards,
James Wong
 
S

Steven Cheng [MSFT]

Thanks for your followup James.

That's great. Glad that you've found the registry entry and share the
information here. That'll also benifit other members who encounter the same
problem.

If you have anything else need help in the future, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
 
T

Timothy Carroll

I noticed that in Vista 64, that registry key alone is not enough. You also have to modify the WOW64 node, which is located here...

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion

Just modify the same RegisteredOrganization or RegisteredOwner values as in the other node.

It seems 32-bit apps (which VS2008 apparently is) look at that node, not the standard node.
 
F

Family Tree Mike

This is the location that a 32 bit application would access in the registry.
The 32 bit app is redirected there, not that it directly goes to that node.
Regedit and other tools let you see the virtualization in the way you
describe. From your program code however, you still just refer to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion, no matter
what you are running.

This link and others cover the topic pretty well.
http://msdn.microsoft.com/en-us/library/ms724072(VS.85).aspx

in message news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top