Help with App Paths alias

I'm trying to add an app path to windows 7 registry at:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\
The same way I was doing wit XP.
But I found that if the alias I put is different from the original executable name it will not work, for example if I add myapp.exe key and point the default value to a file c:\apps\app.exe it will not work but if I use the original application name (app.exe) as the key name it will work.
any ideas ?

This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.