Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   How do I get the version number of the Setup project? (http://www.outlookbanter.com/add-ins-outlook/98761-how-do-i-get-version.html)

Mark B[_2_] January 7th 10 11:06 PM

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



Ken Slovak - [MVP - Outlook] January 8th 10 02:48 PM

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





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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com