Click here to Skip to main content
15,886,873 members
Articles / DevOps / Deployment
Tip/Trick

Running a process as the user that began the install, when creating a Deployment Project

Rate me:
Please Sign up or sign in to vote.
4.50/5 (2 votes)
17 Nov 2011CPOL 22K   4   6
Running a process as the user that began the install, when creating a Deployment Project
Visual Studio is very limited when it comes to customizing an installation. This is why most complex products use other setup authoring tools.

Visual Studio setup projects run custom actions with no impersonation by default (msidbCustomActionTypeNoImpersonate). So the quickest solution would be to remove the no impersonation flag by editing the MSI with InstEdit!.


Steps



  1. Open the MSI using the InstEdit!
  2. Navigate through Tables -> Custom Action
  3. Selection Custom Action and Select the source that you need to execute context with NO IMPERSONATE Action.
  4. Click on the TYPE column value for the selected source.
  5. Look for "Execution Context: No Impersonate" and deselect the check box
  6. Save it and you are done!!!

Happy Programming

License

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


Written By
Software Developer (Senior)
India India
11+ years experience on enterprise application development with various technologies includes core MS platform. TOGAF 8 Certified and MCTS in .Net.

Comments and Discussions

 
GeneralWhere is InstEdit! ? is free ? Pin
kiquenet.com21-Nov-11 20:25
professionalkiquenet.com21-Nov-11 20:25 
GeneralRe: Where is InstEdit! ? is free ? Pin
Karthickeyan.k13-Mar-12 8:54
Karthickeyan.k13-Mar-12 8:54 
GeneralRe: Where is InstEdit! ? is free ? Pin
fjdiewornncalwe25-Jun-12 7:26
professionalfjdiewornncalwe25-Jun-12 7:26 
GeneralRe: Where is InstEdit! ? is free ? Pin
Karthickeyan.k25-Jun-12 7:29
Karthickeyan.k25-Jun-12 7:29 
GeneralRe: Where is InstEdit! ? is free ? Pin
fjdiewornncalwe25-Jun-12 7:48
professionalfjdiewornncalwe25-Jun-12 7:48 
GeneralRe: Where is InstEdit! ? is free ? Pin
Karthickeyan.k25-Jun-12 7:50
Karthickeyan.k25-Jun-12 7:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.