Skip to content

This pill shows the usage of the "Impersonate" attribute on a deferred custom action. It changes the rights of the user under which the custom action is executed.

License

Notifications You must be signed in to change notification settings

WiX-Toolset-Pills-15mg/Impersonate-User

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Impersonate User

Description

This pill shows the usage of the Impersonate attribute on a deferred custom action. It changes the rights of the user under which the custom action is executed.

How to use

a) Tutorial (article)

  • TBD

b) Code example

  • sources
  • I provided the complete Visual Studio solution that solves the described problem. Use it if you need to test it by yourself, in your environment or if you have further ideas that you want to verify.

c) Code notes

  • A shorter version of the tutorial can be found directly in the source code.
    • Open Visual Studio solution
    • Search (Ctrl+Shift+F) for the START comment. It usually can be found in the Product.wxs file, but it is not a rule.
    • Then follow the Step comments in the numbered order.
  • Note: The NEXT tags at the end of each comment indicates the file where to search for the next Step.

d) Log file examples

  • doc/logs
  • Sometimes a quick look into the log files may be useful, but running the installer each time is cumbersome. I generated the log files for the meaningful scenarios and I placed them into this directory. Have a look when needed.

Suggestions

GitHub Discussions

Fill free to use the discussions page whenever needed:

  • Do you have an improvement suggestion?
  • Is there any typo in the articles or bug in the code?
  • I appreciate any information on how you used this tutorial and if it was useful to you or not.
  • Do you have any other questions?

Donations

If you like my work and want to support me, you can buy me a coffee:

ko-fi

About

This pill shows the usage of the "Impersonate" attribute on a deferred custom action. It changes the rights of the user under which the custom action is executed.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project