AI does not create MSI log directory - Advanced Installer Community
intactfw
Posts: 5
Joined: Fri Feb 10, 2023 9:43 am

AI does not create MSI log directory

Hello!

Our company has recently updated from Advanced Installer 19.3 to the newest version 20.3.1. We have found a breaking change between these versions regarding log files.

A setup built with v20.3.1 does not create a log directory when using a MSI bootstrapper option like this:

Code: Select all

/L*V "[TempFolder]\[|Manufacturer]\[|ProductName]\installlog.log"
Instead the setup crashes if the above directory does not already exist. Manually creating such a directory fixes the issue, but is inconvenient. We have now changed our log directory to

Code: Select all

/L*V "[TempFolder]\[|Manufacturer]-[|ProductName]-installlog.log"
to mitigate the issue.

Could you please fix this in an upcoming version? Thank you for your help.
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: AI does not create MSI log directory

Hello and welcome to our forums,

The folder must exist before the installer is launched. Also, the installer must have write permission to this folder.

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.

Windows Installer simply cannot create folders from the log command before the setup is launched.

There is nothing we can do to control this behavior, because it is handled by Windows Installer.

You can also see that on the MSFT article here: https://learn.microsoft.com/en-us/windo ... ne-options
log path.png
log path.png (21.96 KiB) Viewed 6010 times

I apologize for the inconvenience.

Please let us know if you have any other questions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
intactfw
Posts: 5
Joined: Fri Feb 10, 2023 9:43 am

Re: AI does not create MSI log directory

Hi Liviu!

I am confused that this seems to be the default behavior, since setups that we have created using Advanced Installer 19.3 did create these directories without any further actions or issues. This is why we thought that the upgrade from 19.3 to 20.3.1 introduced a bug. Thank you for your response :D.
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: AI does not create MSI log directory

You're always welcome!

This is quite strange as I've tested this with Advanced Installer 19.3 and the folders are not created if they don't already exist.

Can you please send us a sample project regarding this (when the folders are created by the log command)?

You can attach the sample either here or you can send it by e-mail at support at advancedinstaller dot com.

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

Return to “Common Problems”