waspy
Posts: 64
Joined: Fri Oct 03, 2008 10:58 am

Passing LogFile to the .NET custom action

Hello guys,
Can you advise me how to pass log file specified in the MSI arguments (e.g. /l*v "c:\log_filename.log) to the .NET custom action /LogFile parameter?

Many thanks,
Alex
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Passing LogFile to the .NET custom action

Hi Alex,

I'm afraid that the log file path specified in the MSI command line cannot be obtained dynamically during the install process. Also, even if you could use that path, the .NET custom action cannot write in the installation log.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
waspy
Posts: 64
Joined: Fri Oct 03, 2008 10:58 am

Re: Passing LogFile to the .NET custom action

Hello Cosmin,
Ok, but what is /LogFile parameter in .NET custom action is reserved for then? I can't find any info on that...

Thanks,
Alex
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Passing LogFile to the .NET custom action

Hi Alex,

This parameter allows you to specify a log file for the .NET custom action. You can find more details about the predefined parameters in the Edit .NET Custom Action article from the User Guide.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”