[wix-users] Set installed folder permissions after UI dialogs

Rob Mensching rob at firegiant.com
Thu Sep 6 01:36:17 PDT 2018


Is your Property marked Secure?
_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/


-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of wwp via wix-users
Sent: Thursday, September 6, 2018 12:07 AM
To: wix-users at lists.wixtoolset.org
Cc: wwp <subscript at free.fr>
Subject: [wix-users] Set installed folder permissions after UI dialogs

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