Inpersonate user

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

    Inpersonate user

    My company uses Active Directory.

    If i'm making a windows application (deployment using ClickOnce), how
    would I enable the application to add or remove entries to the windows
    hosts file located in 'C:\Windows\Sys tem32\drivers\e tc' ?

  • Claus Konrad

    #2
    Re: Inpersonate user

    Hi,

    You can't really perform any custom actions in relation to deployment of a ClickOnce application.
    What you can do however - is to perform some initialization routines when your ClickOnce-deployed application is first run. To check whether the application is being run for the first time, inspect the System.Deployme nt.Application. ApplicationDepl oyment.CurrentD eployment.IsFir stRun property.

    But - be aware that if deployed to XP and in Vista in particular you would need administrator priveledges to modify anything inside the ...\Windows folder.

    /Claus Konrad







    "Code Monkey" <dlynes2005@gma il.comwrote in message news:7c9bdc1f-aba7-455f-9096-ea179abf1038@a1 g2000hsb.google groups.com...
    My company uses Active Directory.

    If i'm making a windows application (deployment using ClickOnce), how
    would I enable the application to add or remove entries to the windows
    hosts file located in 'C:\Windows\Sys tem32\drivers\e tc' ?
    >

    Comment

    Working...