RurouniKakita
RurouniKakita

Reputation: 51

Mapping a network drive using the WIX Toolset

I'm making a new installers for the software I'm developing and we are replacing BitRock and using the WiX Toolset instead. While the installer itself was fairly easy to create some of the behaviors we had in the BitRock installer have been harder to translate to WiX.

A little background on the System being developed. It is a Windows client and Linux server with the server generating files that the client user needs to be able to access. The way we do this is by mapping a network drive on the windows machine. The old BitRock installer we used did make an attempt to map this drive at install and would let the user know if it was unable to map the drive so they could go map it manually. I would like to include this behavior in the WiX based installer if possible. Also while handy the client does not need the network drive mapped to function properly.

I know how to create the dialogs and properties needed in WiX to get the path of the network drive into the installer but I can't find anything that actually sets up the mapping. My question is as follows;

Can WiX map a network drive itself or is it something that needs to be done in a CustomAction?

Upvotes: 3

Views: 542

Answers (1)

Arkady Sitnitsky
Arkady Sitnitsky

Reputation: 1886

Yes, you can use http://wixtoolset.org/documentation/manual/v3/xsd/util/fileshare.html file share element that is part of the util extention.

How to use Util Extention

Upvotes: 1

Related Questions