Click here to Skip to main content
15,892,927 members
Articles / Desktop Programming / ATL

Increment File and Product Version Number - Multiple IDE

Rate me:
Please Sign up or sign in to vote.
4.58/5 (32 votes)
21 Oct 2008CPOL12 min read 293.3K   1.2K   134  
An add-in to automatically increment the FileVersion and ProductVersion fields in your application's resource file. Works in VC6 and VS2005, and probably all versions in between.
If installed via VC8 compile.
=============================
HKEY_CLASSES_ROOT\AppID\{0538548c-f9a3-40fb-a4e7-080f9e52ca28}\(Default)	= IncVersion
HKEY_CLASSES_ROOT\AppID\IncVersion.DLL\AppID					= {0538548c-f9a3-40fb-a4e7-080f9e52ca28}
HKEY_CLASSES_ROOT\CLSID\{4d5dadb6-b48b-437d-80c4-d54466671319}\(Default)	= CoPropPageCtlCPP Class
	Control
	InprocServer32
	MiscStatus
	ProgID
	Programmable
	ToolboxBitmap32
	TypeLib
	Version
	VersionIndependentProgID
HKEY_CLASSES_ROOT\CLSID\{6b1c40bf-5f17-46d9-bfff-8b852a5e9adf}\(Default)	= CoPropPageCtlCSharp Class
	Control
	InprocServer32
	MiscStatus
	ProgID
	Programmable
	ToolboxBitmap32
	TypeLib
	Version
	VersionIndependentProgID
HKEY_CLASSES_ROOT\CLSID\{b69bfd01-851a-4401-bcfd-1151cfa5e108}\(Default)	= CoAddIn Class
                                                              \AppID		= {0538548c-f9a3-40fb-a4e7-080f9e52ca28}
	InprocServer32
	ProgID
	TypeLib
	VersionIndependentProgID
HKEY_CLASSES_ROOT\CLSID\{dd1d9cbb-a6f3-4fde-bb3a-5be0223213a7}\(Default)	= CoPropPageCtlGeneral Class
	Control
	InprocServer32
	MiscStatus
	ProgID
	Programmable
	ToolboxBitmap32
	TypeLib
	Version
	VersionIndependentProgID
HKEY_CLASSES_ROOT\CLSID\{f8e9744f-84bb-428f-bd6f-1eed32362849}\(Default)	= CoPropPageCtl Class
	Control
	InprocServer32
	MiscStatus
	ProgID
	Programmable
	ToolboxBitmap32
	TypeLib
	Version
	VersionIndependentProgID
HKEY_CLASSES_ROOT\IncVersion.CoAddIn\(Default)					= CoAddIn Class
HKEY_CLASSES_ROOT\IncVersion.CoAddIn.1\(Default)				= CoAddIn Class
HKEY_CLASSES_ROOT\IncVersion.CoPropPageCtl\(Default)				= CoPropPageCtl  Class
HKEY_CLASSES_ROOT\IncVersion.CoPropPageCtl.1\(Default)				= CoPropPageCtl Class
HKEY_CLASSES_ROOT\IncVersion.CoPropPageCtlCPP\(Default)				= CoPropPageCtlCPP Class
HKEY_CLASSES_ROOT\IncVersion.CoPropPageCtlCPP.1\(Default)			= CoPropPageCtlCPP Class
HKEY_CLASSES_ROOT\IncVersion.CoPropPageCtlCSharp\(Default)			= CoPropPageCtlCSharp Class
HKEY_CLASSES_ROOT\IncVersion.CoPropPageCtlCSharp.1\(Default)			= CoPropPageCtlCSharp Class
HKEY_CLASSES_ROOT\IncVersion.CoPropPageCtlGeneral\(Default)			= CoPropPageCtlGeneral Class
HKEY_CLASSES_ROOT\IncVersion.CoPropPageCtlGeneral.1\(Default)			= CoPropPageCtlGeneral Class
HKEY_CLASSES_ROOT\TypeLib\{D52156F9-3D13-40C6-9D4D-24E18866F773}
	1.0\0\win32\(Default)							= f:\Projects\IncVersion - VC9\release\IncVersion.dll
HKEY_CURRENT_USER\Software\Kittylion\IncVersion
HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\AddIns\IncVersion.CoAddin.1
	..
	Filename								= f:\Projects\IncVersion - VC9\release\IncVersion.dll
	..
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.0\AddIns\IncVersion.CoAddIn
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\AddIns\IncVersion.CoAddIn
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\AddIns\IncVersion.CoAddIn
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\AddIns\IncVersion.CoAddIn
The follwoing are just a copy of HKCR.....I've shown the first couple of duplicates.
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\{0538548c-f9a3-40fb-a4e7-080f9e52ca28}\(Default)	= IncVersion
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\IncVersion.DLL\AppID			= {0538548c-f9a3-40fb-a4e7-080f9e52ca28}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
Ok, it's about time I updated this profile. I still live near 'Beastly' Eastleigh in Hampshire, England. However I have recently been granted a permamant migration visa to Australia - so if you're a potential employer from down under and like the look of me, please get in touch.
Still married - just, still with just a son and daughter. But they are now 8 and 7 resp and when together they have the energy of a nuclear bomb.
I worked at Teleca UK for over 8.5 years (but have now moved to TikitTFB) and have done loads of different things. Heavily involved with MFC, SQL, C#, The latest is ASP.NET with C# and Javascript. Moving away from Trolltech Qt3 and 4.
Jordan.

Comments and Discussions