Log Files - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

eeboy
Posts: 7
Joined: Fri May 14, 2010 12:28 am

Log Files

I want a log file from my installation. I followed the instructions listed in the help:
Use the EXE boostrapper

Another approach is to create a log file by using the /L*V parameters in the command line of the Advanced Installer Bootstrapper. Also, these parameters can be always passed to the MSI when the package is launched through the EXE bootstrapper.

If you want your installation package to always create a log, you can follow these steps:

•open the Advanced Installer project of your installation package
•go to the Media page and select the Bootstrapper tab
•check the Create EXE setup file option
•set the MSI Command Line field to: /L*V "C:\package.log"
This way, when the user launches the installation through the bootstrapper, a log of the installation ("package.log") will be created automatically in the "C:\" drive.
This works fine most of the time but I have run into one occurrence where the log could not be created in the root of C and so the installation didn't proceed. I presume it was a permissions issue. Regardless, I'd rather the log go to the [CommonFilesFolder]. I tried a command line argument of...

Code: Select all

/L*V [CommonFilesFolder]"\myapp\install.log"

... but that gives an invalid command line error.

Any suggestions?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Log Files

Hi,

You can try creating the log in this path:

Code: Select all

/L*V "[CommonFilesFolder]myapp\install.log"
But this path also needs Administrator privileges. So it will work only if your EXE bootstrapper requests elevation through its execution level. Usually logs are created in the user Temp folder:

Code: Select all

/L*V "[TempFolder]myapp\install.log"
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”