473,387 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Application.ProductName Returns Empty String

I created a VB.NET application, together with an associated installation
project, and in the installation project I specified the ProductName. But
when I run the application, if I try to retrieve the ProductName using
Application.ProductName, it always returns an empty string. I've looked
under Solution Properties, but haven't found anything.

How do I get Application.ProductName to return the application product name?
Thanks.
Jul 21 '05 #1
4 3225
The product name is set in the application's AssemblyInfo.vb file, in the
AssemblyProduct attribute.

HTH,
Tom Dacon
Dacon Software Consulting

"Phil Galey" <pa*****@starcalif.com.nospam> wrote in message
news:us**************@TK2MSFTNGP11.phx.gbl...
I created a VB.NET application, together with an associated installation
project, and in the installation project I specified the ProductName. But
when I run the application, if I try to retrieve the ProductName using
Application.ProductName, it always returns an empty string. I've looked
under Solution Properties, but haven't found anything.

How do I get Application.ProductName to return the application product name? Thanks.

Jul 21 '05 #2
The product name is set in the application's AssemblyInfo.vb file, in the
AssemblyProduct attribute.

HTH,
Tom Dacon
Dacon Software Consulting

"Phil Galey" <pa*****@starcalif.com.nospam> wrote in message
news:us**************@TK2MSFTNGP11.phx.gbl...
I created a VB.NET application, together with an associated installation
project, and in the installation project I specified the ProductName. But
when I run the application, if I try to retrieve the ProductName using
Application.ProductName, it always returns an empty string. I've looked
under Solution Properties, but haven't found anything.

How do I get Application.ProductName to return the application product name? Thanks.

Jul 21 '05 #3
Yes, look thru the AssemblyInfo.vb file, you can set all of the internal app
info within - including auto incrementing build version values. After you
set these values you can test by building the exe, then go to bin directory
and right click exe and select properties.
"Phil Galey" <pa*****@starcalif.com.nospam> wrote in message
news:us**************@TK2MSFTNGP11.phx.gbl...
I created a VB.NET application, together with an associated installation
project, and in the installation project I specified the ProductName. But
when I run the application, if I try to retrieve the ProductName using
Application.ProductName, it always returns an empty string. I've looked
under Solution Properties, but haven't found anything.

How do I get Application.ProductName to return the application product name? Thanks.

Jul 21 '05 #4
Yes, look thru the AssemblyInfo.vb file, you can set all of the internal app
info within - including auto incrementing build version values. After you
set these values you can test by building the exe, then go to bin directory
and right click exe and select properties.
"Phil Galey" <pa*****@starcalif.com.nospam> wrote in message
news:us**************@TK2MSFTNGP11.phx.gbl...
I created a VB.NET application, together with an associated installation
project, and in the installation project I specified the ProductName. But
when I run the application, if I try to retrieve the ProductName using
Application.ProductName, it always returns an empty string. I've looked
under Solution Properties, but haven't found anything.

How do I get Application.ProductName to return the application product name? Thanks.

Jul 21 '05 #5

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

Similar topics

3
by: tornado | last post by:
Hi all, I am pretty new to PHP. I was reading PHP manual and trying out the example from 2nd chapter (A simple Tutorial). When i try to print the variable as given in the example it returns...
2
by: Phil Galey | last post by:
I created a VB.NET application, together with an associated installation project, and in the installation project I specified the ProductName. But when I run the application, if I try to retrieve...
0
by: JP | last post by:
Hi, I did set the assembly attribute: <Assembly: AssemblyProduct("Verzorgingsplaatsen")> but when I call Application.Productname it returns an empty string. What's wrong? JP
9
by: Guy | last post by:
I have extended the datetimepicker control to incorporate a ReadOnly property. I have used the new keyword to implement my own version of the value property, so that if readonly == true then it...
13
by: David Rose | last post by:
Hi, I am trying to launch pdf files (in this case). The test application takes the path to the pdf from a TextBox when the user clicks a button. I have written code that works on my computer,...
2
by: Chang | last post by:
how to get the name of a running application using C# e.g. if i have 20 dll files and my application name is MyGreatApplication then how to get the name "MyGreatApplication" at runtime? thx in...
8
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is...
2
by: Chubbly Geezer | last post by:
Does anyone have any experience of this functionality. I have started to swap out my connection code for the std functionality within these dll's. The data connection is fine, I can also run...
1
by: =?Utf-8?B?QW5kcmV3?= | last post by:
Hello, friends, In our c#.net 2005 project, I clicked on project property. At application tab of property page, clicked on Assembly Information... button, All boxes were left blank, including...
1
by: Cind | last post by:
I have to populate a listbox with details of a particular customer. For example, you may want to view a Customer with the current products for that Customer. List Box should display the current...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.