PC Review


Reply
Thread Tools Rate Thread

How do I get the version number of the Setup project?

 
 
Mark B
Guest
Posts: n/a
 
      7th Jan 2010
VSTO, OL2007, C#, VS2008.

The following code gets the version number of an Addin project for display
on a custom Help, About form.

lblVersionNo.Text =
Globals.ThisAddIn.GetType().Assembly.GetName().Version.ToString();

However, I need rather the version number of the Setup project (named
"MySetupProject") within the solution since that version number is the one
that is displayed under Control Panel, Add/Remove Programs.

Does anyone know what changes to the above code I would need to do in order
to get the setup project's value?

TIA


 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      8th Jan 2010
You really should post this sort of question in a VS group, this has nothing
to do with Outlook programming.

You usually set the setup project to have the same versioning as your addin,
so what shows up in Add/Remove, etc. does match your addin version. Then you
can do proper installation updating.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Mark B" <(E-Mail Removed)> wrote in message
news:ukwOL4%(E-Mail Removed)...
> VSTO, OL2007, C#, VS2008.
>
> The following code gets the version number of an Addin project for display
> on a custom Help, About form.
>
> lblVersionNo.Text =
> Globals.ThisAddIn.GetType().Assembly.GetName().Version.ToString();
>
> However, I need rather the version number of the Setup project (named
> "MySetupProject") within the solution since that version number is the one
> that is displayed under Control Panel, Add/Remove Programs.
>
> Does anyone know what changes to the above code I would need to do in
> order to get the setup project's value?
>
> TIA
>
>


 
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
How install over an old version using setup project? Ronald S. Cook Microsoft C# .NET 1 5th Apr 2006 11:44 PM
Need to display version number of setup project on main application form bishop Microsoft VB .NET 0 10th Mar 2006 08:59 PM
Detect version of .Net (not in a Setup project) Saber Microsoft VB .NET 2 1st Feb 2006 11:27 PM
Registering COM in VS.NET C# Standard Version Setup Project Takuya Matsumoto Microsoft C# .NET 2 28th Oct 2003 08:42 AM
Registering COM in VS.NET C# Standard Version Setup Project Takuya Matsumoto Microsoft Dot NET Framework 2 28th Oct 2003 08:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:51 PM.