Suppose I want to:
- create a subdir of the ProgramFilesFolder,
- and make the files writable for the "current user"
- make this work under vista
... how do I go about this?
Note:
- by default, files written in ProgramFilesFolder require admin rights
for "write"
- in vista this implies problems with some apps that don't elevate.
Here is what I came up with.
<Component Id="Permissions" Guid="EA813314-ED9B-427c-B6B3-07F94D9C082B">
<CreateFolder Directory="ProgramFileSubDir">
<Permission ChangePermission="yes" GenericAll="yes"
User="[LogonUser]"/>
</CreateFolder>
</Component>
It seems that the choice of LogonUser does work out.
If I use [USERNAME], I get a strange error when I install.
Does anyone have experience with this sort of permission setting?
Is the choice of LogonUser something I can rely on?
I also tested this under XP and seems to work there as well.
Is there any better way of not using custom actions to get this done?
Or is there is a custom action that works across XP/Vista reliably?
Thanks a lot for any help.
Ralf
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users