AquaComm
Posts: 45
Joined: Wed May 06, 2020 3:25 am

Create folder to store MSI log

In the Bootstrapper Options I have entered the MSI command line thus:

Code: Select all

/L*V "C:\MyCourts\McLibraryManagerInstall.log"
If the directory does not exist, the install fails.

How can I create the directory before logging commences?
Liviu
Posts: 1047
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Create folder to store MSI log

Hello,

I'm afraid this is the default behavior of Windows Installer. Please note that the command line support to create the log file is handled by Windows Installer, which is designed by Microsoft. Windows Installer is not able to create a new directory for the log file.

This means that if you specify a log file location that does not already exist, the installer will not be able to create it and the logging will fail.

There is nothing we can do to control this behavior, because it is handled by Windows Installer. Only predefined folder systems can be used, any other folders will throw the error.

For more details, you can check the Command-Line Options article.
logfolder.png
logfolder.png (67.88 KiB) Viewed 2655 times

I'm happy to help if you have any other questions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”