HedleyPhillips
Contributor
Contributor

Error when running a Powershell script

Hi,

I'm trying to run a PowerShell script and receiving an error:

Error running cmd.exe /c powershell.exe -ExecutionPolicy Unrestricted -NonInteractive -windowsStyel Hidden -File 'C:\Users\USERNAME\AppData\path to file\installer.ps1 The given paths format is not supported. Specify a valid path for the -File parameter

My xml file ahs the following:

<runProgram>
<program>cmd.exe</program>
<programArguments>/c powershell.exe -ExecutionPolicy Unrestricted -NonInteractive -WindowStyle Hidden -File '${installdir}/installer.ps1'</programArguments>
</runProgram>

I've tried all manner of things with this command. Used This topic and This Topic

but when I wrap cmd.exe in quotes I get an unspecificed error.

This is a 64bit Win 7 SP1 machine.

Many thanks for your help.

Tags (3)
0 Kudos
2 Replies
michieldhont_
Hot Shot
Hot Shot

Hi @HedleyPhillips,

Could you contact us in private support with this issue?

https://installbuilder.com/how-to-create-ticket.html

 

Regards,

Michiel

HedleyPhillips
Contributor
Contributor

Hi Michiel,

 

I've sent an email as when i type an issue description it fails to detect my product and says "We cannot find any VMware Products that match your description." despite me typing all manner of variations of InstallBuilder or Install Builder.

Thanks.

0 Kudos