[wix-users] Installing from a mapped network drive - Force it to use UNC?

Hoover, Jacob Jacob.Hoover at greenheck.com
Tue Sep 8 11:44:09 PDT 2015


Several things can complicate this... per-user vs per-machine, is there a UI sequence (or is it a silent install), is it started as an elevated process, etc.

My biased opinion would be to bundle the MSI. From there, just pass WixBundleOriginalSourceFolder to the MSI as a property. (Tested that it works, even when elevated.)

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Patterson, Brent
Sent: Tuesday, September 08, 2015 1:18 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Installing from a mapped network drive - Force it to use UNC?

Right, that's why I'm trying to get UNC (actual network path) for SourceDir.  The Installshield MSI performs the same custom action, but it works somehow.  I verified that it's using SourceDir.  So if that MSI works, there must be something that I can configure for the WiX MSI to work.  At least, that's my hope :)

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Phill Hogland
Sent: Tuesday, September 08, 2015 12:03 PM
To: WiX Toolset Users Mailing List
Subject: Re: [wix-users] Installing from a mapped network drive - Force it to use UNC?

On Windows a mapped drive is defined in a particular user's profile, so if the registry for the elevated user has not been configured to know about that mapped drive, it won't do any good to try and generate a UNC (without also having some way of getting the drive mapping from the other user's registry profile).  I don't know of any setting that will address this issue for you.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Patterson, Brent
Sent: Tuesday, September 08, 2015 12:51 PM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Installing from a mapped network drive - Force it to use UNC?

Quick question:

How do I set the MSI so it uses UNC instead of mapped drive when installing?  I have a custom action that copies over a config file that uses "SourceDir", but fails due to the MSI being elevated thereby not having access to mapped drive.  Is there a simple way of configuring an option somewhere to use UNC of a mapped drive?  I can't convert from mapped drive to UNC in the custom action as it's too late, the user executing it is admin and not the same user, even though I put "Impersonate='Yes'", so the function fails.

Thanks.

________________________________

Xactware's opt-in mailing list allows you to receive Xactware News that is of interest to you. Visit my.xactware.com today to join or to update your email preferences!

________________________________

This email is intended solely for the recipient. It may contain privileged, proprietary or confidential information or material. If you are not the intended recipient, please delete this email and any attachments and notify the sender of the error.

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list