I am having a problem: When I reinstall my program it removes the ProgramName in the Start Menu, but the shortcut Icon on the desktop and C:\MyApp folder is still there. How can I get rid of them?
What version of VFP? What installer are you using? (Anything before 7.0, using the VFP Setup Wizard, required special "after install" code to put a shortcut on the desktop, so you'd need to write special code to remove it.)
Ah, there's the rub. While the VFP 5/6 SETUP wizard allows you to provide a "Post Setup Executable", there is no way to specify a "Post Ininstall Executable". This is one of the reasons NO VFP 5/6 application that used the setup wizard could be Certified my MS as "approved". The specs require that other than a possible temp file / directory, a Certified app must completely reverse an install on the total uninstall option.
With an uninstall you'll have to provide a "manual" procedure to remove leftovers from the desktop, or in a re-install you'll need to add "smart" code in your "Post Setup Executable" to look for and remove any old install components.
Of course upgrading to a "real" installer could eliminate the problems in the future.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.