wix custom action, administrators group -


i have installer built wix includes custom action run in deferred mode , needs administrative rights on local machine.

the installer works fine when using administrator account on local machine doesn't not when use account in administrator group. exceptions insufficient privileges trying ass keys registry. using impersonate="no" not option action needs have admin rights on local machine well, time time access different network shares. level of "network share access" determined account used install application(not admin account) can't seem solution - gladly appreciated.

it sounds aren't handling uac properly. guess install works administrator user because security policy disables uac user account only, enables uac other members of administrators group.

when custom action impersonates user uac enabled, it uses filtered (non-administrators) security token. custom action assumes can things members of administrators group can do, since security token doesn't include administrators group, it's getting access denied.

how need fix depends on custom action doing. you're correct needs impersonate access network shares user; perhaps can break custom action 2 separate actions: 1 impersonates , accesses network shares, , 1 doesn't performs administrators-level tasks.

if have full control on computers you're installing on, perhaps workaround disable uac during installation. re-enable after installation complete.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -