A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 7th 10, 11:06 PM posted to microsoft.public.outlook.program_addins
Mark B[_2_]
external usenet poster
 
Posts: 93
Default How do I get the version number of the Setup project?

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().Ver sion.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


Ads
  #2  
Old January 8th 10, 02:48 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How do I get the version number of the Setup project?

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" wrote in message
...
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().Ver sion.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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No setup project with Outlook 2007 Add-In project John[_11_] Add-ins for Outlook 16 July 23rd 09 08:05 AM
One Setup project for outlook 2003 AND 2007 Neetu Add-ins for Outlook 7 February 23rd 09 02:31 PM
Setup project for Office Addin Neetu Outlook - Installation 5 February 23rd 09 02:29 PM
Custom message in setup project Nita Jadhav Add-ins for Outlook 1 February 13th 09 03:07 PM
Conversion wizard comes up on same version project John[_11_] Add-ins for Outlook 0 April 30th 08 11:32 PM


All times are GMT +1. The time now is 08:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.