Re: [WiX-users] How to change permission for existing Folder and/or file?
I think FileSharePermission maybe the answer for me. I try the following code and got some compiling error. Directory Id=NETConfig Name=Config Component Id=NETConfig Guid=AC36EFA1-011C-400c-BA50-2825CF330B4D util:FileShare Id=NETConfig Description=NET Config Name=NETConfig util:FileSharePermission User='Service Accounts-DTF' GenericRead=yes Read=yes GenericExecute=yes/ /util:FileShare /Component /Directory Error 1 The util:FileSharePermission/@User attribute's value, 'Service Accounts-DTF', is not a legal identifier. Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.). Every identifier must begin with either a letter or an underscore. How to solve this problem? Thanks Joseph -Original Message- From: Joseph Wu [mailto:joseph...@ds-iq.com] Sent: Tuesday, January 27, 2009 5:05 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to change permission for existing Folder and/or file? After one day of research. It looks to me that CustomAction is only way I know to achieve it. Is this the right way to go? Thanks Joseph -Original Message- From: Joseph Wu [mailto:joseph...@ds-iq.com] Sent: Monday, January 26, 2009 4:16 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to change permission for existing Folder and/or file? Permission Element's parent must be CreateFolder or File. How to change the permission for existing Folder and/or file? Thanks Joseph -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to change permission for existing Folder and/or file?
Joseph Wu wrote: Error 1 The util:FileSharePermission/@User attribute's value, 'Service Accounts-DTF', is not a legal identifier. Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.). Every identifier must begin with either a letter or an underscore. FileSharePermission/@User is the Id of a user defined by the User element. -- sig://boB http://joyofsetup.com/ -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to change permission for existing Folder and/or file?
Thank you very much, Now it solve the User problem. But I got the following error. But I don't want to create folder. Because it is an existing folder. Does that mean FileSharePermission is not the solution for me? I need to use Custom Action to do it? Thanks Joseph Error 2 ICE18: KeyPath for Component: 'NETConfig' is Directory: 'NETConfig'. The Directory/Component pair must be listed in the CreateFolders table. Directory Id=SystemRoot Directory Id=MicrosoftNET Name=Microsoft.NET Directory Id=FRAMEWORK Name=Freamework Directory Id=v20 Name=v2.0.50727 Directory Id=NETConfig Name=Config Component Id=NETConfig Guid=AC36EFA1-011C-400c-BA50-2825CF330B4D util:User Id=ServiceAccountsDTF Name=Service Accounts-DTF/ util:FileShare Id=NETConfig Description=NET Config Name=NETConfig util:FileSharePermission User='ServiceAccountsDTF' GenericRead=yes Read=yes GenericExecute=yes/ /util:FileShare /Component /Directory /Directory /Directory /Directory /Directory -Original Message- From: Bob Arnson [mailto:b...@joyofsetup.com] Sent: Wednesday, January 28, 2009 12:00 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to change permission for existing Folder and/or file? Joseph Wu wrote: Error 1 The util:FileSharePermission/@User attribute's value, 'Service Accounts-DTF', is not a legal identifier. Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods (.). Every identifier must begin with either a letter or an underscore. FileSharePermission/@User is the Id of a user defined by the User element. -- sig://boB http://joyofsetup.com/ -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to change permission for existing Folder and/or file?
Joseph Wu wrote: Now it solve the User problem. But I got the following error. But I don't want to create folder. Because it is an existing folder. Try it anyway. MSI won't fail because the folder already exists. -- sig://boB http://joyofsetup.com/ -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to change permission for existing Folder and/or file?
After one day of research. It looks to me that CustomAction is only way I know to achieve it. Is this the right way to go? Thanks Joseph -Original Message- From: Joseph Wu [mailto:joseph...@ds-iq.com] Sent: Monday, January 26, 2009 4:16 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to change permission for existing Folder and/or file? Permission Element's parent must be CreateFolder or File. How to change the permission for existing Folder and/or file? Thanks Joseph -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] How to change permission for existing Folder and/or file?
Permission Element's parent must be CreateFolder or File. How to change the permission for existing Folder and/or file? Thanks Joseph -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users