In Vista writable data should be written to c:\ProgramData\{your app}
(CommonAppDataFolder) or the users local application directory
(AppDataFolder). You shouldn't try and change permissions within
programfiles or you'll run into trouble.
From: Ralf Lammel <[EMAIL PROTECTED]>
To: "wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net>
Subject: [WiX-users] user permissions on deployment machine
Date: Sat, 18 Nov 2006 00:49:44 -0800
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
_________________________________________________________________
Windows LiveĀ Messenger has arrived. Click here to download it for free!
http://imagine-msn.com/messenger/launch80/?locale=en-gb
-------------------------------------------------------------------------
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