/build/static/layout/Breadcrumb_cap_w.png

MSI CustomActionData property with powershell

I am revisting an old MSI that has a binary VBS which I have moved to powershell.

The vbs custom action in the MSI has a custom action type of VBScript source of the binary table.

The vbs has some code to grab the username from the script and logic and the line below is fed into the MSI where the USERNAME property is used.

Session.Property("USERNAME")=userName

Now I want to move to powershell and have written the script.

I have read a few articles and seems either is required to be fed back from the powershell script to the MSI:

AI_SetMsiProperty USERNAME $Username

set-property -name USERNAME -value $Username

where the $Username is the powershell variable to obtain the username.

My question is possible to reference the powershell script from the "binary" table from the custom action table?

I am using Orca for a Windows Installer editor.



0 Comments   [ + ] Show comments

Answers (0)

Be the first to answer this question

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ