Today, in the course of my work, a colleague who was tested suddenly gave me a question. That's what she described. "After executing the XXX tool, the icon cannot be found at Start menu. ”
For the problem itself:
1, after the completion of the XXXX tool?
2,start menu disappears, then is the program file still in?
3, is Win10 core the reason?
In response to these three assumptions, I first studied the mechanism of Start menu and found that on Win10, the icons displayed in the Start menu exist C:\ProgramData\Microsoft\Windows\Start Menu\Programs below.
Later, when the XXX tool was opened, it was found that the icon was missing, rather than testing what the colleague said after executing the tool. (This is important to help me debug)
For the 3rd question above, I verified the results with different cores and found the same result, which ruled out the cause of Win10 core.
After a constant attempt, I noticed the Programdata directory, remembering the previous time in order to correspond to a requirement, and put the temporary folder under Programdata.
Think of here, I suddenly feel that today to solve this problem is expected, follow this clue down, found that the code does have to delete the temporary folder operation, depending on the conditions may be deleted programdata this directory (because if not in C, other disks will be created Programdata).
This locates the problem and then modifies the code.
Recompile, test, OK.
It's a pit.
Win10 System Start menu on the icon mysteriously disappears