I have already made my metro app based on PC security and its working fine.
I want to start this metro app on Windows Startup, for that i have made a Windows Service so that it can start my metro app.
Problem : How to start a metro app from Windows Service ?
I have googled it alot but couldn't find any solution working for me..
Any change shouldd be done in my metro app so that it can start from other process ??
I have tried till Now :
Method-1
Process.Start("redhawk:\\")
I have given "redhawk" as my metro app's protocol name.
Method-2
Process.Start("metro.bat")
And the contents of
metro.bat
is as follows :
start "" "redhawk:"
Note : The 2nd method starts my metro app but it stucks on the splash screen. Should i change something in my metro app to avoid this ??
I have also read about OnActivated() event but couldn't apply it successfully..
Please Help Me As Soon As You Can... Thanks in advance...