Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Windows 7 Forum Vista Tutorials Tags

Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Microsoft Technical Newsgroups > .NET General

MSI Installer VS 2005 Setup Project

Reply
 
LinkBack Thread Tools Display Modes
Old 09-05-2008   #1 (permalink)
LostCub
Guest


 
 

MSI Installer VS 2005 Setup Project

I was told (I suspect incorrectly) to increment the Version of my setup
project every time I build a new MSI or the MSI won't install.

When I do that it tells me to change the ProductCode property of the project
which I suspect is a bad thing but I don't know any better so I do it anyway.

I guess the question is: when should I increment the version of my setup
project? And when I do should I change the ProductCode?

My System SpecsSystem Spec
Old 09-06-2008   #2 (permalink)
Pavel Minaev
Guest


 
 

Re: MSI Installer VS 2005 Setup Project

"LostCub" <LostCub@xxxxxx> wrote in message
news:3193CE6F-322F-4D0C-A0C7-67B0B0A4108A@xxxxxx
Quote:

>I was told (I suspect incorrectly) to increment the Version of my setup
> project every time I build a new MSI or the MSI won't install.
If version number is the same, the installer will complain if it sees any of
your previous MSIs already installed on the system - something along the
lines of "This package is already installed on the system".

In general, if you are building an installer with some changed files, you
_should_ increase the version number. It is, after all, a different version
of your application!
Quote:

> When I do that it tells me to change the ProductCode property of the
> project
> which I suspect is a bad thing but I don't know any better so I do it
> anyway.
No, it's fine. There are two codes you have to be aware of - ProductCode and
UpgradeCode.

ProductCode is specific to a specific _version_ of your product. If
ProductCode for two packages matches, then, as far as Windows Installer is
concerned, it's the same package (and then you get the same "already
installed" error). So, if you change the version number, you should indeed
change the ProductCode.

UpgradeCode is more generic, and refers to all versions of your product that
can be upgraded from one to another (and typically cannot be installed side
by side). When run, if your installer will detect any packages on the system
with the same UpgradeCode but smaller version number, it will uninstall them
as part of the installation progress - to the user, it will look as an
upgrade. And if it detects the same UpgradeCode and higher version number,
it will abort installation with a message that a later version is already
installed.
Quote:

> I guess the question is: when should I increment the version of my setup
> project? And when I do should I change the ProductCode?
Every time you change one or more files in your setup package.


My System SpecsSystem Spec
Reply

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Advertised Shortcuts in a setup and deployment project Pat .NET General 3 03-27-2008 02:37 PM
VS2005 Setup Project File with Property 'Permanent' is uninstalled flutophilus .NET General 6 03-09-2008 05:08 AM
VS2005 Setup Project - How to prevent overwrite of file? flutophilus .NET General 1 03-03-2008 09:38 PM
Shared Add-in project type template in VB 2005 Express Ed Tom .NET General 0 02-27-2008 08:15 AM
IIS 7 & Sql Server 2005 Setup problem Mr. Murad Jamal Vista installation & setup 2 11-21-2006 09:41 AM


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53