Creating a file share

Sometimes, an application needs to allow others on the network to access its files. For example, it may produce log files that should be available to anyone who wants to see them without having to first log onto the computer where the application is installed. By putting those files into a file share, others on the network can access them. In this recipe, we'll see how to convert a normal directory into a file share and set the permissions on it.

Getting ready

To prepare for this recipe, create a new setup project and call it FileShareInstaller.

How to do it…

To create a file share, use the FileShare element of UtilExtension and then configure its permissions with the FileSharePermission element:

  1. Reference UtilExtension by right-clicking ...

Get WiX Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.