Click here to Skip to main content
15,885,771 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Helo friends.

Help with advise: I build program in VS2008 - it prepare 2 files:

setup.exe and myprogram.msi.

(I do new versions frequently and it is annoying for me to remember about old setup files on several computers)

After I lost old setup file myprogram.msi, I can't uninstall my program to install new version, so I have to save old myprogram.msi- I do not like it.

How to include uninstall property in my program, to not care about old distributive?
Posted
Updated 2-Mar-11 13:35pm
v2
Comments
GregWyatt 2-Mar-11 16:01pm    
Just to let you know, if you lose your msi file you can still go to control panel -> add/remove programs and uninstall the program from there, if your on a windows machine.
Sergey Alexandrovich Kryukov 2-Mar-11 23:53pm    
I agree. You could put it as an answer, adding that everything else is already done by MSI.
--SA
sawa25 3-Mar-11 1:26am    
Thanks to all for reply. BUT.
With this solution my question looks stupid. But this is no the fact.
see, what is the message of windows add/remove program uninstallation progress appear:
(i translate from russian, so in english version windows xp it may be different)
The product installed does not match to the source of installations. This operation can't be performed until the product and the source will be aligned.
Resource and setup files not available/(and the browse button to open proper msi file).
This happen if i install my program from some location and then replace setup files with new version before uninstall program from computer. :(
it is not unusual, seems it is a rule on several computers.

1 solution

I have used this tool to see why an app would not uninstall then I did the steps manually to do the uninstall.

http://www.crystalidea.com/uninstall-tool[^]

there is also a free version of an uninstall tool, but I have not used that.

http://www.freeuninstalltool.com/[^]
 
Share this answer
 
Comments
sawa25 3-Mar-11 10:23am    
ok as a last resort, but not good.
also i can't suggest to remote user to use some tool,
end user must have possibility to remove program without any headache.
usually there uninstall link is available in good programs,
how to make uninstall link with internals of VisualStudio 2008 Professional if possible?
Steve Maier 4-Mar-11 17:12pm    
i never would have suggested tools like this if I knew you were talking about remote users. These are more for systems that you can get your hands on, IMHO.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900