How to use the Advanced installer log from .NET Custom Actio - 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!

marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

How to use the Advanced installer log from .NET Custom Actio

Hi there

I have a .net Custom action that runs after the files get copied, I want to add some items to the log (if the application is being logged), how can i append to the same log as the Advanced installer is using?

I see a "LogFile" on the "edit .NET Custom Action" but I cannot find a property to load to it.

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

Hi,

I'm afraid that this cannot be done because the .Net Custom Action runs in a different process, therefore it doesn't have access to the installation handle.

Note that for a C++ DLL custom action this can be done by using the MsiProcessMessage function:
http://msdn2.microsoft.com/en-us/library/aa370354.aspx
and for a VBScript custom action you can use the Session.Message method:
http://msdn2.microsoft.com/en-us/library/aa371672.aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Hi Cosmin,

What is the LogFile property used for then? How can i use it?

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

Hi,

The /LogFile parameter is used to create a log for the .Net custom action's install progress. You can read more about this here:
http://msdn2.microsoft.com/en-us/librar ... ssage.aspx

You can read more about the predefined parameters here:
http://www.advancedinstaller.com/user-g ... ialog.html

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

Return to “Common Problems”