To be clear, it isn't WiX that assigns rights before the User is created. The
Windows Installer's built in LockPermission action (the thing behind the
standard Permission element) is actually at fault. To get around that problem,
you need to switch to using PermissionEx (a WiX CustomAction that can do things
in the right order).
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Bennett
Sent: Thursday, February 15, 2007 5:39 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Changing user permissions to a directory
To be a bit more precise about the problem: The issue is that a new user has to
be created, and then access rights assigned to it. If the user already existed,
it would be ok, but WiX does folder creation before it does user creation. The
problem was alluded to here:
http://tinyurl.com/3b64jt
Steve
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Bennett
Sent: Friday, 16 February 2007 11:44 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Changing user permissions to a directory
Hi all,
Short question: What's the best way to set directory access permissions for a
specific user at install time?
Long question: I'd like to update a pretty old (2-3 years? - before my time)
WiX installer which assigns access rights to a specific user for a specific
directory. Apparently, at the time this was written, developers were advised to
use SUBINACL to achieve this, but at the time, SUBINACL was not compatible with
XP SP2 and didn't work. So we ended up writing a custom action .dll to update
the permissions. Question is: Have things changed? Is there a better way of
doing this in WiX v2 (or even v3)? Would CACLS do the job?
Thanks very much for any responses,
Steve
Steve Bennett
[POWERflex Corporation ]
[Tel: +61-3-9548-9006 Fax: +61-3-9548-9003]
[Email: spb @ pfxcorp.com Web: www.pfxcorp.com]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users