Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reinstall a Program

Status
Not open for further replies.

asm338s

Programmer
Jul 16, 2001
135
US
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.)

Rick
 
Yes I am using VFP 6.0 set-up wizard. I use some code to create a desktop shortcut. Where do I need to write the 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.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top