bjk68
Posts: 55
Joined: Tue Dec 01, 2009 12:45 pm

Logging an event using a powershell custom action

An event can be logged to the MSI logfile using a vbscript custom action:
http://www.advancedinstaller.com/user-g ... ction.html

Does anyone know if this is possible from a Windows Powershell custom action too? And if so, how?

Thanks,

Bart
Dan
Posts: 4513
Joined: Wed Apr 24, 2013 3:51 pm

Re: Logging an event using a powershell custom action

Hi Bart,

Currently we don't have support for this. We added your request on our TODO list and hopefully such an improvement will be available in a future version of Advanced Installer. Thank you for your suggestion.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Logging an event using a powershell custom action

Hello,

Our development team investigated this scenario and it seems you can write to the MSI installation log by simply using the "Write-Output" cmdlet into your PowerShell custom action code.

Hope this is still valuable help for you. Also, if you have any questions or doubts just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”