part of setup exe runs under system account

Discussion in 'ASP .Net' started by Prashant, Oct 26, 2004.

  1. Prashant

    Prashant Guest

    Hi,
    I have a setupt program that calls an exe as custom action, problem is this
    exe gets executed under system account, while setup runs under olgged in
    user account, that prevents exe to make sql connections, as it is using
    windows authentication.
    If i run that exe separately it runs under logged in user account.

    does anyone have any idea what to do next?

    Thanks in advance,
    Prashant
     
    Prashant, Oct 26, 2004
    #1
    1. Advertising

  2. I think You can do, OpenProcessToken() and use the returned TokenHandle in
    ImpersonateLoggedOnUser().

    Or Check out http://www.thecodeproject.com/csharp/RunAs.asp


    --
    Girish Bharadwaj
    http://msmvps.com/gbvb
    "Prashant" <> wrote in message
    news:%...
    > Hi,
    > I have a setupt program that calls an exe as custom action, problem is
    > this
    > exe gets executed under system account, while setup runs under olgged in
    > user account, that prevents exe to make sql connections, as it is using
    > windows authentication.
    > If i run that exe separately it runs under logged in user account.
    >
    > does anyone have any idea what to do next?
    >
    > Thanks in advance,
    > Prashant
    >
    >
     
    Girish bharadwaj, Oct 26, 2004
    #2
    1. Advertising

  3. Prashant

    Prashant Guest

    has been great help.
    thanks a lot.

    Prashant

    "Girish bharadwaj" <> wrote in message
    news:...
    > I think You can do, OpenProcessToken() and use the returned TokenHandle in
    > ImpersonateLoggedOnUser().
    >
    > Or Check out http://www.thecodeproject.com/csharp/RunAs.asp
    >
    >
    > --
    > Girish Bharadwaj
    > http://msmvps.com/gbvb
    > "Prashant" <> wrote in message
    > news:%...
    > > Hi,
    > > I have a setupt program that calls an exe as custom action, problem is
    > > this
    > > exe gets executed under system account, while setup runs under olgged in
    > > user account, that prevents exe to make sql connections, as it is using
    > > windows authentication.
    > > If i run that exe separately it runs under logged in user account.
    > >
    > > does anyone have any idea what to do next?
    > >
    > > Thanks in advance,
    > > Prashant
    > >
    > >

    >
    >
     
    Prashant, Oct 26, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mircea Pleteriu

    Get the account that ASP.NET runs under

    Mircea Pleteriu, Dec 9, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    621
    Juan T. Llibre
    Dec 9, 2005
  2. bronby
    Replies:
    1
    Views:
    672
    Andrew Thompson
    Jul 15, 2005
  3. Yehuda Vernik
    Replies:
    1
    Views:
    856
    Paul Clement
    Oct 19, 2004
  4. Gianluca Torta

    Serviced Component runs under ASPNET, not specified account

    Gianluca Torta, Jan 24, 2005, in forum: ASP .Net Security
    Replies:
    3
    Views:
    355
    msnews.microsoft.com
    Jan 25, 2005
  5. Frank1213
    Replies:
    1
    Views:
    221
    Frank1213
    Nov 28, 2006
Loading...

Share This Page