?
Solved

InstallShield product and update codes

Posted on 2011-10-04
7
Medium Priority
?
714 Views
Last Modified: 2012-05-12
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
0
Comment
Question by:ChrisMDrew
  • 4
  • 3
7 Comments
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 36918992
Does the table UPGRADE have the entry with this upgrade code that includes the old version? what does it have in the column "Attributes"?
0
 

Author Comment

by:ChrisMDrew
ID: 36942786
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!
0
 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 36943511
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.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 40

Expert Comment

by:Vadim Rapp
ID: 36943548
...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.
0
 

Author Comment

by:ChrisMDrew
ID: 36961737
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.
0
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 2000 total points
ID: 36961954
re. package code, here's the explanation: http://blogs.msdn.com/b/pusu/archive/2009/06/10/understanding-msi.aspx . 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.
0
 

Author Closing Comment

by:ChrisMDrew
ID: 36967419
Thanks - decoded to stay with VS S&D after all - seems much easier!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the frequent problems with the installations is when some file or registry entry is not removed from the system upon un-installation of the product. Clean removal is always highly desirable. One major reason for that is badly authored inst…
Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month16 days, 7 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question