Hi,
I have a strange thing on 2 Windows 7 computers (not even tried on Windows 10).
When using a full path containing a '.' or '..' folder, the application fails to install the product but Inside the BATCH, all is working.
Let's have a look to my POC code :
@echo OFF
cls
echo [Initialisation]
setlocal enabledelayedexpansion
set g_strBatchPath=%~dp0
set g_strCurrentDirectory=%CD%
set strLibreOfficeVersion=5.4.1.2
echo Batch path : %g_strBatchPath%
echo Current path : %g_strCurrentDirectory%
rem NON WORKING
set strMsiFile=H:\_Maintenance\.\repository\LibreOffice_%strLibreOfficeVersion%_Win_x86.msi
rem WORKING
rem set strMsiFile=H:\_Maintenance\repository\LibreOffice_%strLibreOfficeVersion%_Win_x86.msi
echo %strMsiFile%
if EXIST "%strMsiFile%" (
echo MSI OK : %strMsiFile%
)
msiexec /i "%strMsiFile%" /log "%TEMP%\Nolme_MsiExe.log"
Pause
- The file presence check is working well Inside BATCH.
- I was able to reproduce the problem on 2 computers (full updates)
Does soemone have the same problem ?
Vincent