[wix-users] Set installed folder permissions after UI dialogs
wwp
subscript at free.fr
Thu Sep 6 00:07:08 PDT 2018
Hello there,
I currently use util:PermissionEx in a CreateFolder, conditioned (in
the parent Component) to a Property, in order to set all permissions to
a folder for Users.
This works well, I can change the property from the command-line
(something like SETPERMS=YES).
What I'd like to do now is during the installation, interactively ask
the user if the folder permissions have to be set or not (exactly as if
SETPERMS=YES or =NO is passed in command-line).
I created a custom dialog, with a basic Checkbox Control that is bound
to the Property, but I'm afraid the CreateFolder is processed way
before the dialog and the user action over the Checkbox to change the
Property has no effect then - if changes the Property but it's too late
and the installer folder permissions won't be set to follow the user's
choice.
Is there a way to execute the util:PermissionEx in CreateFolder
following to user's choice in dialog? Or should I set the folder permissions
after it's created in CPP or VBS code called by a CustomAction after
user interactions? Or edit something in the MSI tables from a
CustomAction? Any suggestion?
For the record, I'm using Wix 3.7 (and it's my first post here).
Regards,
--
wwp
More information about the wix-users
mailing list