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!

Geron Keller
Posts: 6
Joined: Tue Aug 12, 2014 3:06 pm

Parse in Parameters in PowerShell-Script

Hello,

im running a PowerShellScript as a Custom Action. In my script i want to have "placeholders" or parameters, so when i call the .msi via comandline i can parse in these values for the parameters.
How can i do that?

Thanks
Geron
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Parse in Parameters in PowerShell-Script

Hello Geron,

Please take a look on the Get value TextBox Dialog with PowerShell Script forum thread which debates a similar subject.

Let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Geron Keller
Posts: 6
Joined: Tue Aug 12, 2014 3:06 pm

Re: Parse in Parameters in PowerShell-Script

Hey Dan,

your tip wasent quite that what i was lookin for.
I've found it out by myself.

In the line of Script Parameters: ive added "-myPropVal [TEST]" and in the Scriptbar:

param ($myPropVal)
$myPropVal > C:\test.txt


Best regards,
Geron
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Parse in Parameters in PowerShell-Script

Hi Geron,

I'm glad you got this working.
If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”