Varshini S
asked on
Unable to run the WPF application from windows startup
Unable to run the WPF application from windows startup. Do I need to specify the application startup folder or application folder in the config file?
My setup is located in d:\app\crm\ folder. But my desktop shortcut is working fine.
Registry: setup
Computer\HKEY_USERS\S-1-5- 21-4678530 9-17899935 7935128-15 1198877771 87849-1001 \Software\ Microsoft\ Windows\Cu rrentVersi on\Run
value name: CRM-DEMO
value data: "d:\app\crm\crm.exe"
OS : Windows 10
My setup is located in d:\app\crm\ folder. But my desktop shortcut is working fine.
Registry: setup
Computer\HKEY_USERS\S-1-5-
value name: CRM-DEMO
value data: "d:\app\crm\crm.exe"
OS : Windows 10
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank You,
This line solved the issue: Environment.CurrentDirecto ry = System.IO.Path.GetDirector yName(Syst em.Windows .Forms.App lication.E xecutableP ath);
This line solved the issue: Environment.CurrentDirecto
Glad to help you!
simply place a shortcut in the following locationC:\Users\<YOURUSER