Writing Logfile to "Common Documents" - 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!

phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Writing Logfile to "Common Documents"

Hello,
I have a problem writing the msi-logfile this locations:
  • C:\Users\Public\Documents\MySubFolder\MyLogfile.log (in Windows Vista and 7)
  • C:\Documents und Settings\All Users\Documents\MySubFolder\MyLogfile.log (in Windows XP)
I created a search searching the registry for HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\User Shell Folders\Common Documents and named it COMMON_DOCUMENTS_SEARCH.

Under Media -> Bootstrapper I added under MSI Command Line: /L*V "[|COMMON_DOCUMENTS_SEARCH]\[|Manufacturer]\Log\setup.log".

When I start the setup the following error appears (I get an german error and I try to translage it):
Fehler beim Öffnen der Protokolldatei der Installation. Stellen Sie sicher, dass die angegebene Protokolldatei existiert und nicht schreibgeschützt ist.

Error opening installation log file. Make sure that the specified log file exists and is writable.
When I log e.g. to the desktop everything is all right.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Writing Logfile to "Common Documents"

Hello,

Here is a similar article which debates the same issue. In short, the folder path used in the log command line must exist on the target machine. The /L*V argument can create the log file providing that the folder structure path already exists on the target machine.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phlow666
Posts: 144
Joined: Thu Jan 27, 2011 8:10 am
Location: Germany

Re: Writing Logfile to "Common Documents"

Thanks for your answer.

But:

Is it possible to create a folderstructure (described in http://www.advancedinstaller.com/forums ... 102#p34873) before the /L*V "[|COMMON_DOCUMENTS_SEARCH]\[|Manufacturer]\Log\setup.log"-Command?

I tried it with a custom action under InstallExecuteSequence --> Begin which creates a folder like

Code: Select all

mkdir [COMMON_DOCUMENTS_SEARCH]\[Manufacturer]\Log
but it fails.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Writing Logfile to "Common Documents"

Hi,

The logging starts when the .MSI installer is run so creating a folder for the log file with a custom action from the same installer is impossible.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”