You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The directory is created in immediate sequence, however the LocalUser/LocalGroup is created in defferred sequence, so the directory creation would fail.
Do you have any option to create LocalUser/LocalGroup in immediate sequence?
The text was updated successfully, but these errors were encountered:
You can probably just reorder the sequence of actions in your MSI, but eventually you have impossible situations of such dependencies. Either way the feature request to allow this makes sense. Not sure how best to fix this, but PRs welcome! Probably a different component that applies the group to a directory and creates it if it doesn't exist is the way to go.
@dblock Sorry for the delay.
Currently, the sequence of LocalUser/LocalGroup creating is separated in 2 steps 'immediate' and 'defferred'.
I am not familiar to Wix extensions though, why don't you combine them and go it on 'immediate' sequence.
The 'CreateFolders' sequence is executed in 'immediate'. If the user/group is created in 'immediate', we can arrange execution order in .
The problem for me is unable to arrange the sequence order between 'immediate' and 'defferred'.
Well, you can't do that, that's by design. Read about the whole deferred business here. Basically the immediate sequence is only used to decide what to do, and the deferred one is to do it. It's a way to do transactional installs, one of the most powerful features in MSI. It enables running installations with different permissions in the immediate sequence, installations without UX, and supports rollback.
I think you're incorrect that the create folder action is executed in immediate. It may be "planned" in the immediate one, but it's actually executed in deferred. Check the detailed log for the order of events, and paste the relevant parts here, and I'll try to help?
I want to set user or group which is created by UserPrivileges extension, to Directory permission.
The directory is created in immediate sequence, however the LocalUser/LocalGroup is created in defferred sequence, so the directory creation would fail.
Do you have any option to create LocalUser/LocalGroup in immediate sequence?
The text was updated successfully, but these errors were encountered: