InstallShield product and update codes

I thought I knew the answer to this but just can't get it to work properly...

I had an installation procedure created within Visual Studio 2010 but decided to re-write it using InstallShield 2010 as I don't like the interface to the VS solution.

I have copied over the Product and Upgrade codes from the Visual Studio Installer and have set the same product name.  When I run the installation built in InstallShield I correctly get an error saying that the product is already installed - just what I wanted.

I now change the version number in InstallShield and re-generate the PRODUCT CODE.  rebuild the installation and run it again.  What happens is that I get both the old and new versions of my application installed.  I expected the old version to be upgraded as the UPGRADE CODE is the same in both installations.

Any thoughts on what I am missing?  I need my new Installation to perform an upgrade
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vadim RappCommented:
Does the table UPGRADE have the entry with this upgrade code that includes the old version? what does it have in the column "Attributes"?
ChrisMDrewAuthor Commented:
Sorry - which table do you mean?  Need a bit more information as to how to debug this before I go back and just use the VS2010 installer project!
Vadim RappCommented:
Table Upgrade. I'm not sure if you see it in the version of Installshield that comes with Visual Studio, but here's what it looks like in the "full" version. screenshot
If you don't see it, you can open the MSI with Orca and check.
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

Vadim RappCommented:
...btw, setups created by VS "traditional" s&d project have been quite robust. My personal interest at looking at what exactly Installshield offered stopped at realizing that in order to actually have it, I have to go and register with Installshield. Previously, similar things were run with Obfuscator, as I recall, and maybe something else. I think it's not very ethical to sell the product bundled with de-facto shareware, trialware, etc.
ChrisMDrewAuthor Commented:
O think my problem is down to a mis-understanding of how InstallShield handles these codes.  Looking at the 'Properties' within InstallShield I have

Product Code - the documentation suggests that you change this for each upgrade of a product

UpgradeCode - the documentation suggests that this must always be the same for every version of a product

Package Code - no idea what this is - seems to mirror the product code in that the documentation suggests that it needs to change for each release.

I have previously used the VS s&d projects but I am not keen on the way in which files are added.  I like the idea in InstallShield of including a folder and automatically all files and folders within that folder are included.  I have an 'Upgrade' folder which includes database upgrade files - a new folder is created for each update.  In VS I have to remember to add all files necessary which is easy to forget when you have have just added a new file.
Vadim RappCommented:
re. package code, here's the explanation: . I don't fully understand myself why it's necessary, but that's the way it is. Maybe there were some historical reasons.

In both VS S&D and in all installation-authoring tools integrated with VS, the concept used for adding the files is "primary output". VS usually includes in it the executable it has built, plus you can mark other files. Installshield's wildcard-based inclusion has resulted in numerous installations coming with all sorts of temporary files, log files, etc. If you install a product, and find some $$$ files it installed, you know it has been created by Installshield. The real fun begins if the application itself removes any of these files - then on the next launch the user is presented with self-repair of the product, to restore the $$$ file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ChrisMDrewAuthor Commented:
Thanks - decoded to stay with VS S&D after all - seems much easier!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.