>>>I am installing an upgraded VFP program with a new name, but the old Start Menu entry remains with the odl name, so now I have two. How do I programmatically remove an old entry from the start menu when I install a new program with a different name and/or icon?
>>
>>The way I handle this is in the actual app. When the users install an upgrade to the program, 1 of the files I install is called cleanup.app. In my main PRG, I check for the existence of this file. If it exists, I issue:
>>
>>DO ("CLEANUP.APP") && in quotes and parens so ProgMgr does not pick it up
>>
>>After it runs, I erase the file.
>
>Thank you. I use a very similar system. However my question is: How do you programmatically remove a Start Menu item?
It is a folder and files just like any other.
if DIRECTORY("C:\WINDOWS\Start Menu\Programs\MyAppFolder")
erase "C:\WINDOWS\Start Menu\Programs\MyAppFolder\*.*"
rd "C:\WINDOWS\Start Menu\Programs\MyAppFolder"
endif
You need the quotes around it because of the space between Start and Menu.
Mark McCasland
Midlothian, TX USA