"Installation directory must be on a local drive" msi install error

After much debugging we narrowed it down to problems with rights to temp folders with the current user. Different steps resolved the issue on different computers. Here I will be listing the fixes from the least to the most invasive approaches:

  1. Ensure that the installer is run as administrator
    This is something we already require, but some users tend to forget this. This is also the most common solution to the issue I've found when searching for a solution.
    The simplest way to ensure this, is by pressing the WinKey and type cmd to find the command prompt, and then press CTRL + SHIFT + ENTER to open the command prompt as administrator, then navigate to the msi folder (for navigation instructions, see this link) and run it from there.
  2. Manually install KB3072630
    Some of our users had, for some reason, not correctly received this particular update from MS which seemed to fix the issue! This was where most users got their problem resolved.
  3. Run the installer silently
    The bug is related to a WIX UI component, so running the the MSI silently will not activate the UI component, and therefore the bug will not be triggered either. You can do this through the commandprompt as specified in above step, but with these added parameters to the MSI:
    /qn+
    Thanks to Kr3m on GitHub for this approach
  4. Run the installer with UI check disabled
    The WIX UI component that bugs it all up can also be disabled. WARNING: This will also disable any sanity checks on the installation path, and might mess up the installation process! This can be done with another commandline parameter:
    WIXUI_DONTVALIDATEPATH="1"
    Thanks to peterflynn on GitHub for this approach
  5. Disable LUA
    The only sure way to remove the issue, was to disable the LUA completely, which was the standard for some of our environments, to be able to work with legacy features. Disabling LUA completely requires manual changes to the registry, so be sure that you know what you are doing, and the consequenses of it as well. Instructions can be found here on MS' forum.

One thing we did not test, that might solve it as well, is to recreate the user on the computer, because we think it has to do with access rights to the users own temp folders. They might be recreated correctly through a recreation of the user.