Hello to eveyone.
I have serious problems to understand the msi logging system.
It’s important for me to have a secure and common place where to write the installation log files. This location must be easy as possible to be found by an unexperienced customer.
Our installation is hidden (silent and run by a service with no gui interaction). Therefor the logging system is very important.
I’ve chosen the ProgramData forder ... yes I know it’s a hidden folder and not that easy to find.
Is there a better folder to use?
Every Prerequisites that I install is launched with this arg: /l+* “[CommonAppDataFolder][Manufacturer]\Logs\ThePack.log”
And the MSI command line is: /l+* “[CommonAppDataFolder][Manufacturer]\Logs\ThePack.log”
This doesn’t work for two reasons:
1) Some times [CommonAppDataFolder] is empty. This is unexpected (issue?).
2) If the sub folder [Manufacturer]\Logs is missing the MSIEXEC is unable to create the sub folder and an error is shown (issue?).
I’ve tried replacing [CommonAppDataFolder] with %ProgramData% and it’s not resolved as an environment variable, at least not always (other issue?).
I’m unable to understand which variable to use and when.
Are those issues? or I ‘haven’t understood the MSI demoniac behavior?
Can you help me?
Thanks
Ricardo
FOLLOW US
Get the latest news in Application Packaging