Click here to Skip to main content
15,921,062 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I want my click once application to get launched automatically without clicking on launch link button.

Please help!

Thanks,
Chirag.
Posted
Updated 4-Jul-13 3:11am
v3
Comments
[no name] 4-Jul-13 9:32am    
Help with what exactly? You would have to ask a question or describe some sort of a problem first before you could expect to get help....
bbirajdar 4-Jul-13 10:10am    
Then why are you calling it 'click once' . It should be called as 'click zero' application or something else...

And by the way, the windows security does not allow any application to run automatically. There has to be user interaction to launch the application

 
Share this answer
 
Comments
Chirag Shah.Gogari 5-Jul-13 5:19am    
No this links do not give solution to my question Link #1 it adds your application in task bar etc #2 this gives that you add link manually at your start up configuration

What I want to do is hit the Click ones link from ASP.Net application and make it launch automatically without allowing user to click on launch.
And I have achieved this step, And thanks for your response. I problem is that I want to share some values from this ASP.Net application to this windows application that is launched,
Are you looking for timer based launch ?
here is the code

C#
var timer = new Timer(TimerTick, null, TimeSpan.Zero, new TimeSpan(0, 0, 0, 1));

int lastMinute = 1;

void TimerTick(object state)
{
    var minute = DateTime.Now.Minutes;
    if (minute != lastMinute && minute % 5 == 0)
    {
        lastMinute = minute;
        //do stuff
    }
}
 
Share this answer
 
Call Process.Start function and give URL of your application in it
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900