nickrod518 / Create-EXEFromPS1

Takes one PowerShell script and any number of supplementary files or even a directory and creates an exe using Windows's built in iexpress program. The exe will run on any machine with PowerShell 2.0+.
94 stars 31 forks source link

How to pass parameters to embedded PowerShell Script #9

Open Masterciw opened 1 year ago

Masterciw commented 1 year ago

Hello,

maybe i've overseen something. I created an EXE file from a PS Script and an additional folder. In the next step i want to run the EXE file silent with an additional parameter or named parameter. That did not work for me.

What i already tried:

That starts the installer and extracts the content to C:\temp. Afterwards the ps script is started and asks for the parameter install.exe /t:c:\temp

install.exe /t:c:\temp install (unnamed parameter for PS Script) install.exe /t:c:\temp -action (named parameter for PS Script)

Is it not possible to run the exe with additional parameter?

Thank you for coming back to me.

Greetings Michael