alco
Posts: 79
Joined: Thu Nov 18, 2010 5:02 pm

Log the custom action name

I have a custom action called "DeviceInstall" that calls the "RunCommand" function from an attached DLL, whose execution time is 'deferred'. I also have some other custom actions that call "RunCommand". I already log the function name "RunCommand" in there using Session.Log(...), but I don't know w/c is w/c, so my question is is it possible to log the actual custom action name from w/in the C# method? Is the custom action name on the installer project being passed at all to the underlying C# method via the Session object or something?
alco
Posts: 79
Joined: Thu Nov 18, 2010 5:02 pm

Re: Log the custom action name

An alternative is to copy the custom action name as another key-value pair in action data, but I'm running into a strange issue where, for this particular custom action, the action data becomes blank.
alco
Posts: 79
Joined: Thu Nov 18, 2010 5:02 pm

Re: Log the custom action name

for this particular custom action, the action data becomes blank.
Found bug: one of the key-value pairs points to an installation file that didn't install, so consider this bit solved.
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Log the custom action name

Hello Albert,

Not quite sure if you've gotten this working now?

If yes, then that's great!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alco
Posts: 79
Joined: Thu Nov 18, 2010 5:02 pm

Re: Log the custom action name

The alternative works so please consider this resolved. Thanks.
Catalin
Posts: 6608
Joined: Wed Jun 13, 2018 7:49 am

Re: Log the custom action name

You are always welcome, Albert!

Thank you for sharing your solution with us!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”