BaldrickThe4th Posted December 6, 2004 Posted December 6, 2004 Hi All I'm able to deply my app over the top of a previous version, but i've recently noticed that I'm leaving multiple entries in the add and remove software list. Can any one suggest what I'm doing wrong? Any suggestions appreciated. Thanks Quote
donnacha Posted December 6, 2004 Posted December 6, 2004 Do you have a fixed company name and product name or are you just using the default values. Could that cause your problem Quote Hamlet
BaldrickThe4th Posted December 6, 2004 Author Posted December 6, 2004 Thanks. I have changed the Author and Manufacturer, but these now remain unchanged. As the version changes so does the product code. Thanks Quote
Lanc1988 Posted December 6, 2004 Posted December 6, 2004 I have this exact same problem.. The only thing I change each time is the version with asks me if I want to change the productcode, and i click yes.. thats the only thing that I could think might be the problem :S Quote
donnacha Posted December 7, 2004 Posted December 7, 2004 Have you the 'DetectNewerInstalledVersion' and 'RemovePreviousVersions' properties setup correctly. Quote Hamlet
BaldrickThe4th Posted December 7, 2004 Author Posted December 7, 2004 Yes, both are set to true. Quote
Lanc1988 Posted December 9, 2004 Posted December 9, 2004 I have the same problem as BaldrickThe4th has. Here are the properties I have set for the deployment project (installer): Author: Lanc1988 DetectNewerInstalledVersion: True Localization: English Manufacturer: My Program Name ManufacturerUrl: My Url ProductName: My Program Name RemovePreviousVersions: True Version: 0.97.2 The only thing I change ever is the Version which asks if I want to change the product code and I have always clicked yes.. could that be the problem? should i be letting the product code stay the same everytime? Quote
BaldrickThe4th Posted December 17, 2004 Author Posted December 17, 2004 This seems a common problem. Does no one have a answer? Is it a MS installer bug? Quote
donnacha Posted December 18, 2004 Posted December 18, 2004 I am using VS 2000 and to be honest I have never encountered this. Whis version of VS are ye using. Quote Hamlet
BaldrickThe4th Posted December 18, 2004 Author Posted December 18, 2004 I am using VS 2000 and to be honest I have never encountered this. Whis version of VS are ye using. I'm using VS 2003 Enterprise Architect. Thanks Quote
Lanc1988 Posted December 18, 2004 Posted December 18, 2004 I have Visual Basic.net 2003 Standard Quote
donnacha Posted December 20, 2004 Posted December 20, 2004 I generally do not let the setup remove the previous version. I force the installer to remove the program using the 'Add/Remove Programs' first and then do the install. This always leaves things clean. This might be a pain to have to do in some cases, but it is probably safer in the long run. Quote Hamlet
rustyd Posted December 21, 2004 Posted December 21, 2004 Install Issues as well If the app is updated, my user shouldn't have to dump the entire directory by using add/remove programs. I also get multiple entries in the Add/Remove Programs list. I change the version and say yes to change the product code, but the Upgrade code remains the same. By changing the version number I got past the "Another version is installed..." message. Another strange thing I'm noticing is although I build my solution, the install log shows on an upgrade that the InstallFiles lines do not include any DLLs or EXEs, so my program doesn't even get updated? I have no launch conditions, nor do I exclude anything. Anyone else notice this? Also, how do I NOT overwrite an existing file, such as a configuration file? I tried using the launch condition editor, but I had something wrong, but it didn't install anything. Quote rustyd
rustyd Posted December 21, 2004 Posted December 21, 2004 Remove Add/Remove Programs entry when updating Searching MSDN and found this article about the Windows Installer and the Add/Remove Programs. It mentions the following: If the installer detects that the product is marked for complete removal, operations are automatically added to the script to remove the Add/Remove Programs folder in Control Panel information for the product. [/Quote] ...But I couldn't tell what I need to set to do this. Here is the link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/organizing_applications_into_components.asp Quote rustyd
PaulZ Posted January 4, 2005 Posted January 4, 2005 I just read an article from a belgium guy who had the same problem. Solution: change the productnumber to 1.x.x or higher. With a PN of 0.x.x the removepreviousversions does NOT work. Quote
Lanc1988 Posted January 5, 2005 Posted January 5, 2005 you mean instead of letting it generate a new number when you change the version, enter your own? Quote
ProjectX Posted March 3, 2005 Posted March 3, 2005 Update Any more news on this problem anybody come up with a solutions? Quote
PaulZ Posted March 31, 2005 Posted March 31, 2005 you mean instead of letting it generate a new number when you change the version' date=' enter your own?[/quote'] No, Just change the Version number to 1.x.x (it MUST start with 1 to let the 'removepreviousversions' get to work) and let the system change the ProductCode. Quote
Lanc1988 Posted March 31, 2005 Posted March 31, 2005 oh, i didn't realize you had to be at least 1.00 or higher for it to work right, thanks :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.