Creating a Log File - 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!

Matt
Posts: 109
Joined: Tue Oct 19, 2010 4:54 pm

Creating a Log File

Hi,

I wonderd if it is possible to create a log of an installation? I would like todo this for trouble shooting purposes so if someone has a problem installing the product I will be able to find the fault in the log? any advice or help would be brilliant

Matt
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Creating a Log File

Hi Matt,

Please read this how to from our user guide. It has the answer to your question.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Matt
Posts: 109
Joined: Tue Oct 19, 2010 4:54 pm

Re: Creating a Log File

Hi,

That page isnt clear so just to clarify with you to creat a log file of the whole installation I can run a the following Command in a custom action?

Code: Select all

msiexec /i "<Path to MSI>" /L*V "<Path>"
Sorry about this I am fairly new to this software

Cheers for the help
Matt
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Creating a Log File

Hi Matt,

The command line is correct, to be a little more precise here is exact command line example from the how to:

Code: Select all

msiexec /i <path_to_msi> /L*V <path_to_log>
You can test this command line from your "cmd.exe" shell.
I can run a the following Command in a custom action?
I assume that by this you mean you want your package to create a log each time it is installed. In this case you can use the approach described in the "Use the EXE boostrapper" section of the how to from my first post.
If this is not the case please give us more details on why would you want to use a custom action.

Let us know if you have any more questions.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Matt
Posts: 109
Joined: Tue Oct 19, 2010 4:54 pm

Re: Creating a Log File

Hi,

I want my Installer Project to create a Log file for trouble shooting purposes. As it will allow me to know where the fault is. I know through the Advanced installer Console you can use the option Run and log which runs the installer localy and produces a log. I was just wondering If this could be done without running it through the Advanced installer console. Will the Bootstrapper do what I want the How to Article is a little unclear and I can't seem to make sense of whether the logs are for files or for the whole installation.

Matt
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Creating a Log File

Hello Matt,
Will the Bootstrapper do what I want the How to Article is a little unclear and I can't seem to make sense of whether the logs are for files or for the whole installation.
If you want your installation package to always create a log, you can follow these steps:
  • open your installation package's Advanced Installer project
  • 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, an installation log ("package.log") will be created automatically in the "C:\" drive.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Matt
Posts: 109
Joined: Tue Oct 19, 2010 4:54 pm

Re: Creating a Log File

Hi,

I have tried this but I get the error:

Error opening installation log file. Verify that the specified log file location exists and you can write to it

Do I need to create a file in the Files and folders section? Also is it possible to get the log file to install into the APPDIR?

Matt
Matt
Posts: 109
Joined: Tue Oct 19, 2010 4:54 pm

Re: Creating a Log File

Hi,

I have solved the problem with the error. The Command line is telling thel log file to be saved to the "C" Drive. However to make changes to the root of the C Drive you must have admin rights so I changed the Execurtion level to require Administrator and this has solved the issue. I dont need to save to files to the APPDIR anymore but is it possible to save them to create a file on the "C" and save the LOGS to this place through Advanced installer?

Thanks for your help
Matt
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Creating a Log File

Hello Matt,
is it possible to save them to create a file on the "C" and save the LOGS to this place through Advanced installer?
I assume that by "create a file on the C" you mean create a folder on the C drive. I'm afraid that this is not possible in the msiexec command line. I recommend you use one of the existing folders on your primary drive, for example the Temporary folder. Thus, you would have the following command line in the "MSI Command Line" text field from the Bootstrapper tab:

Code: Select all

/L*V "[TempFolder]package.log"
Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Matt
Posts: 109
Joined: Tue Oct 19, 2010 4:54 pm

Re: Creating a Log File

Hi,

This has worked now.

Thanks for your help and keep up the good work

Matt

Return to “Common Problems”