replacing the older program

saphiroth

New member
Joined
Mar 15, 2006
Messages
2
Programming Experience
Beginner
After I install a new version of my application the it overwrites the files and and program works fine but under add/remove programs both the applications are there including the old one. How can I have a new version of my app install and at the same time remove the older application..uninstall it compeletly? I also put true for remove previous versions.

Thank you
 
It sounds like you have created a new application to replace the older one, in other words not upgraded the version of the original application. Or perhaps you have created a custom install script. Any of this true? Would be most valuable to know, because for an ordinary version upgraded application where RemovePreviousVersions =True the older one is removed. Just one thought here, did you increment the version number and accept new ProductCode and PackageCode?

Anyway, if the old files were removed or overwritten then there is only a registry value left that can be removed, this is the registry setting that list the applications in Add/Remove programs in Control Panel.
(It's in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall )
(values DisplayName, UninstallString )
 
Last edited:
thank you for your coments. I figured out that you have to have the upgradecode the same for every install then the next time you upgrade the program it will know that it is just upgrading an existing application.
Thank you again.
 
Back
Top