Click here to Skip to main content
11,435,319 members (50,603 online)
Click here to Skip to main content

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

, 17 Nov 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
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)

Share

About the Author

Karthickeyan.k
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 AE21-Nov-11 21:25
memberkiquenet AE21-Nov-11 21:25 
GeneralRe: Where is InstEdit! ? is free ? Pin
Karthickeyan.k13-Mar-12 9:54
memberKarthickeyan.k13-Mar-12 9:54 
GeneralRe: Where is InstEdit! ? is free ? Pin
Marcus Kramer25-Jun-12 8:26
memberMarcus Kramer25-Jun-12 8:26 
GeneralRe: Where is InstEdit! ? is free ? Pin
Karthickeyan.k25-Jun-12 8:29
memberKarthickeyan.k25-Jun-12 8:29 
GeneralRe: Where is InstEdit! ? is free ? Pin
Marcus Kramer25-Jun-12 8:48
memberMarcus Kramer25-Jun-12 8:48 
GeneralRe: Where is InstEdit! ? is free ? Pin
Karthickeyan.k25-Jun-12 8:50
memberKarthickeyan.k25-Jun-12 8:50 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150428.2 | Last Updated 17 Nov 2011
Article Copyright 2011 by Karthickeyan.k
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid