<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Windows Installer MSI package can not install if \Windows\Installer folder is a junction point or symbolic link to another location"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134103">134103</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Windows Installer MSI package can not install if \Windows\Installer folder is a junction point or symbolic link to another location
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.0.0.0.beta1+
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Installation
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>joaopauloag-freedesktop@yahoo.com.br
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Systems with a primary small SSD and a secondary bigger HDD which have the
"%SystemRoot%\Installer" folder moved (with the same owner and permissions) to
the HDD (for example "D:\Windows\Installer", or just "D:\Installer"), then
created a junction point or symbolic link redirecting the old path to the new
location are becoming common.  However, the MSI package for LibreOffice
7.0.0.0.beta1 can not install if the folder is redirected and throws an error
message.

Steps to Reproduce:
1. Use a computer with Windows 10 version 1909 64 bits (Vista or newer and 32
bit OSes will probably get the same error, but I did not test on them) and two
storage devices:  A primary SSD (C:) where Windows is installed and a secondary
HDD (D: or any other) to store non-executable files (user documents, media
files, etc.).

2. Open an elevated Command Prompt and execute the following, substituting "D:"
for your HDD letter:

MkDir D:\Windows
REM the next line will move the folder, its contents, and copy the security
permissions
RoboCopy.exe "%SystemRoot%\Installer" "D:\Windows\Installer" /Copy:DATSOU
/DCopy:DAT /Mir /MovE 
REM the next line will create a junction point / to create a symbolic link, use
"/d" instead of "/j"
MkLink /j "%SystemRoot%\Installer" "D:\Windows\Installer"
REM to erase the junction point or directory symbolic link, use RmDir
"%SystemRoot%\Installer"

3. Open the MSI package for LibreOffice 7.0.0.0.beta1 (32 or 64 bits) and try
to install it.

Actual Results:
The installer can not copy the files, stops and throws the following error
messages:

   "The system could not open the device or file specified."

And then:

   "Internal error 2755. 110, D:\Windows\Installer."

Expected Results:
It was expected the MSI package copied itself to the path
"%SystemRoot%\Installer", effectively copying itself to "D:\Windows\Installer".


Reproducible: Always


User Profile Reset: No



Additional Info:
The MSI package for LibreOffice 6.4.4.2 (64 or 32 bits) could install correctly
with the redirection from "%SystemRoot%\Installer" to "D:\Windows\Installer" or
any other path chosen.  Something changed while building the MSI package for
LibreOffice 7.0.0.0.beta1.

I will send the log generated with "MsiExec.exe /Package
LibreOfficeDev_7.0.0.0.beta1_Win_x64.msi /l*vx D:\LibreOffice7beta1.log".</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>