Why does it take too long for my shortcut to run my process?

175 views Asked by At

I created a shortcut to my UI process on a user's desktop using IShellLink/IPersistFile (after a consent from a user.) The shortcut is nothing but a path with command line parameters:

"C:\Program Files (x86)\Company\Product\process.exe" -spo="T +v"

So I'm testing this shortcut in several virtual machines by double-clicking it (in Windows 7 OS) and in one machine (where OS was installed somewhat long ago) when I double-click my shortcut, it takes about 15 seconds for my process to start. (I can tell that by placing the logging method in the beginning of my process.) While in other (newer) copies of OS the shortcut starts my process almost immediately.

So I'm curious why is this happening?

Does Windows cache those shortcuts somewhere that may cause this delay?

0

There are 0 answers