View Full Version : Remove all files on upgrade does not work

11-01-2011, 08:15 AM
Hi all,

the upgrade of my application does not work correctly. There are files of the prior version left in the program files folder.


SetupV1 contains Lib1.dll
SetupV2 contains Lib2.dll but not Lib1.dll anymore

If i install SetupV2 after SetupV1, BOTH files are in the program files folder. I expected that only Lib2.dll is in the program files folder because Lib1.dll should be deleted by the automatic uninstall.

Thanks in advance

11-01-2011, 08:50 PM
It may be obvious... are you doing Major Upgrade (http://msdn.microsoft.com/en-us/library/aa369786(VS.85).aspx)?

11-08-2011, 11:48 AM
i've changed the Version from 1.x to 2.x
then i've changed the package code to a new guid
i did not changed the product code. is this necessary in my case?

11-08-2011, 06:03 PM
Yes, removal of a component requires a Major Upgrade. You will want to familiarize yourself with Changing the Product Code (http://msdn.microsoft.com/en-us/library/aa367850(VS.85).aspx).

11-09-2011, 05:29 AM
I've changed the product code, but the old dll is still in the program folder after installation of version 2.

11-09-2011, 07:02 PM
You will have to generate and inspect the verbose installation log to troubleshoot.