If by "the update" you're meaning a major update then you can avoid the
component being reinstalled by scheduling RemoveExistingProducts late - one
of the latter 2 options here:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa371197%28v=vs.85%29
.aspx
Components that exist in both the old and new installers are not reinstalled.

-----Original Message-----
From: McCain, Jon [mailto:jon.mcc...@inin.com] 
Sent: 08 December 2011 18:18
To: wix-users@lists.sourceforge.net
Cc: McCain, Jon
Subject: [WiX-users] Util:FileShare or FileSharePermissions is removing
additional users on minor/small updates.

I am experiencing an issue where a network share created with util:FileShare
is overwriting post install added members to the Share Permissions DACL. The
components look like this for the GA install:

  <Fragment>
    <DirectoryRef Id="CLIENT_RESOURCES">
      <Component Id="resourcedir_fileshare"
Guid="D2DAED14-E4E3-4405-8C0A-D26E9144793B" SharedDllRefCount="yes">
        <CreateFolder />
        <util:FileShare Name="Resources" Id="ResourceDirectoryShare"
Description="IC Resources Folder">
          <util:FileSharePermission GenericAll="yes" User="Administrators"
CreateChild="yes" CreateFile="yes" DeleteChild="yes" />
          <util:FileSharePermission GenericRead="yes" User="Everyone"
GenericExecute="yes" ReadPermission="yes" ReadExtendedAttributes="yes" />
        </util:FileShare>
      </Component>
    </DirectoryRef>
  </Fragment>

These do not change during minor updates but when the update is applied any
additional permissions that have been added are lost. I attempted to add
Conditions to the components but to only run when "Not Installed" is true but
that didn't resolve the issue. The only solution I can think of is a custom
action that creates a cache of the share information and later restores it. I
searched the bugs on sourceforge and do not see a specific one for this
issue.

Any and all help is appreciated.

Regards,
Jon W. McCain | Software Engineer - Install

-----------------------------------------------------------------------------
-
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to