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!

dexter_v
Posts: 23
Joined: Sat Nov 22, 2014 5:25 pm

Reading log file

Hello

Can you please help me with the following
In the verbose log file,
1) how do I check if a user has installed or skipped a prerequisite installation. If there is any error while installing prerequisite.
2) how to check which all dlls and files were installed while installation.
3) how to check which all dlls and files were uninstalled during uninstallation.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Reading log file

Hi,

In order to understand how to read a verbose log file you can read the How Do I Read a Windows Installer Verbose Log File article.
1) how do I check if a user has installed or skipped a prerequisite installation. If there is any error while installing prerequisite.
For this you can check the state of the prerequisite's related feature as described in the 4th section of the above article.
2) how to check which all dlls and files were installed while installation.
3) how to check which all dlls and files were uninstalled during uninstallation.
To see the installed and uninstalled files you can search for the "FileCopy" and "FileRemove" actions. This is described in the 3rd section of the article.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dexter_v
Posts: 23
Joined: Sat Nov 22, 2014 5:25 pm

Re: Reading log file

Thanks Eusebiu,

I'm trying to make a custom action to read the log file and generate an installation report (which will be a pdf file). The installation report should be attached to the read me button of the last dialog.

As the log file is used by the installer until we exit the installation process, I'm not able to read the log file because its already in use.

Is there a way to read the log file, generate the pdf file and attached it to the readme button
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Reading log file

Hi,

I'm afraid that this scenario is not possible. The log file is not entirely written at that point, actually Windows Installer writes into that file even few seconds after the installation of the package has finished. However, as far as I know, the file is accessible even if it is not finished.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dexter_v
Posts: 23
Joined: Sat Nov 22, 2014 5:25 pm

Re: Reading log file

Thanks Eusebiu,

I was able to read the log file in read only mode :)
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Reading log file

You're welcome. I'm glad you managed to do this.

Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”