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

wwp subscript at free.fr
Thu Sep 6 05:52:35 PDT 2018


Hello Rob,


On Thu, 6 Sep 2018 08:36:17 +0000 Rob Mensching <rob at firegiant.com> wrote:

> Is your Property marked Secure?  

No. But obviously, I forgot to set the CheckBoxValue to ="YES". The
Component Condition checks = "YES", not = "TRUE" (which is the default
for CheckBox Controls).
Pff, let's consider this topic as solved, user error or RTFM.
Thanks for replying!


Regards,

> -----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).  

-- 
wwp


More information about the wix-users mailing list