简体   繁体   中英

start .net application from start menu search

bla.exe (application alias) points to a .net application called wpfapp1.exe. When i add a key&value to eg. this key: HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\bla.exe and then start application using Run -> bla.exe it starts however when i start application using windows search i get an "windows cannot find wpfapp1.exe. make sure you typed the name correctly, and then try again."

I have successfully identified problem: this error only occurs to .net applications while native one start normally (eg. firefox.exe).

So is there any .net config that i've missed during development?

From MSDN :

The App Paths key is not used when computing the DLL search path.

Maybe you're missing some dependent DLL...

I don't really understand your "points to" or if Windows search is specific to using the explorer search or using the start menu search.

I've had a similar problem with another application that the search could not find at all, neither in Explorer or Start menu (since it did not have an indexed folder to locate it) and solved it with a simple shortcut.

If you can create a shortcut of your application in your start menu or some other indexed folder, like a %PATH% folder, Windows search should be able to pick it up and then you can name your shortcut to whatever you want, for instance bla.exe .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM