windows service to lunch windows application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ssc

    windows service to lunch windows application

    Hi friends,

    I wrote a Windows Form App "X" using #C.Net. This App "X" is installed
    in a Windows XP machine. Now I want to run this App "X" without the
    user having to log into the Windows XP machine. I think of a solution
    which is that I write a new auto-start windows service to run the app
    "X". will it work? Pls give me some advice coz I'm new to .NET. Thanks.
    ^_^

    Cheers,
    Sam

  • Nick Malik [Microsoft]

    #2
    Re: windows service to lunch windows application

    as long as your app is a console application that requires no input and no
    output, why not just add service code directly to your app, making it into a
    service?

    You don't want a service to call an app that has a U/I when no one is logged
    in, since there is no U/I available to show the elements on. Your app will
    not load in that situation.

    --
    --- Nick Malik [Microsoft]
    MCSD, CFPS, Certified Scrummaster


    Disclaimer: Opinions expressed in this forum are my own, and not
    representative of my employer.
    I do not answer questions on behalf of my employer. I'm just a
    programmer helping programmers.
    --
    "ssc" <yiuchan@gmail. com> wrote in message
    news:1123739511 .362447.234900@ f14g2000cwb.goo glegroups.com.. .[color=blue]
    > Hi friends,
    >
    > I wrote a Windows Form App "X" using #C.Net. This App "X" is installed
    > in a Windows XP machine. Now I want to run this App "X" without the
    > user having to log into the Windows XP machine. I think of a solution
    > which is that I write a new auto-start windows service to run the app
    > "X". will it work? Pls give me some advice coz I'm new to .NET. Thanks.
    > ^_^
    >
    > Cheers,
    > Sam
    >[/color]


    Comment

    • ssc

      #3
      Re: windows service to lunch windows application

      Sorry Nick that I missed 1 point. I purchased a 3rd party .net
      component which is a control for form app only. The app "X" has no UI
      though. So I can only build the form app for my purposes and want to
      run it as services.

      Cheers,
      Sam

      Nick Malik [Microsoft] wrote:[color=blue]
      > as long as your app is a console application that requires no input and no
      > output, why not just add service code directly to your app, making it into a
      > service?
      >
      > You don't want a service to call an app that has a U/I when no one is logged
      > in, since there is no U/I available to show the elements on. Your app will
      > not load in that situation.
      >
      > --
      > --- Nick Malik [Microsoft]
      > MCSD, CFPS, Certified Scrummaster
      > http://blogs.msdn.com/nickmalik
      >
      > Disclaimer: Opinions expressed in this forum are my own, and not
      > representative of my employer.
      > I do not answer questions on behalf of my employer. I'm just a
      > programmer helping programmers.
      > --
      > "ssc" <yiuchan@gmail. com> wrote in message
      > news:1123739511 .362447.234900@ f14g2000cwb.goo glegroups.com.. .[color=green]
      > > Hi friends,
      > >
      > > I wrote a Windows Form App "X" using #C.Net. This App "X" is installed
      > > in a Windows XP machine. Now I want to run this App "X" without the
      > > user having to log into the Windows XP machine. I think of a solution
      > > which is that I write a new auto-start windows service to run the app
      > > "X". will it work? Pls give me some advice coz I'm new to .NET. Thanks.
      > > ^_^
      > >
      > > Cheers,
      > > Sam
      > >[/color][/color]

      Comment

      • ssc

        #4
        Re: windows service to lunch windows application

        By the way, I found a tool called Srvany.exe: Applications as Services
        Utility in Windows Server 2003 Resource Kit Tools.
        (http://www.microsoft.com/downloads/d...isplaylang=en).
        have you tried this? any comments? thx.

        Cheers,
        Sam

        Comment

        Working...