doubt

  • Thread starter Thread starter mona
  • Start date Start date
M

mona

Hi,
I created one apllication.I have created conditionally shortcuts in
desktop and qucik launch folder. How can i set the path to that exe
from that shortcut icon?
I used Process.StartInfo("app.exe") and then used Process.Start().

It is working when the app.exe in C:\WINNT\system32. But if the exe in
any other folder i need to give the full path instead of app.exe.

But the requirement is when the user install the application they will
give the location. So i couldnt give any default path in may code. How
can i get the user's directory?
 
Hi,

It's automatically set when you create your shortcut in the setup project. I
don't remember now from memory the steps you have to follow but I do
remember that I found the way just by clicking around in the setup project
designer.


btw, the reason it works fine when you put your app in system32 (which is a
bad idea to start with) is cause that directory is in the enviroment's PATH
settings
 
Back
Top