When I want to upgrade a installed program, usually it looks so that I first uninstall the old version and install the new version of program. Uninstalling a program is not successful entirely, it doesn't delete the program folder in the Start menu.
If I try to manually delete program's folder in the Start menu I get the message:
You'll need provide administrator permission to delete this folder
If I try to install the new version, the installation fails due to error:
The installer has insufficient privileges to access this directory: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Program_name. The installation cannot continue. Log on as administrator or contact your system administrator.
Note that I have administrator privileges.
Some semi-solution is restart the system where the folder is automatically deleted after the restart and then I can make the installation of the new version of program.
My question is how to solve the problem without restarting the system, so that the uninstall delete the program folder in Start menu?