Thread: Executing .ppkg
View Single Post
Old 18th July 2016, 07:37   #15
Junior Member
Join Date: Jul 2016
Posts: 11
the powershell script : powershell -inputformat none -ExecutionPolicy Unrestricted -File "C:\Users\Ycos3D\Desktop\Provisioning OS deployment\tempfile.ps1" is working in "Windows Powershell" and the command : "C:\Windows\System32\provtool.exe" "<C:\Users\Ycos3D\Desktop\Provisioning OS deployment\packagename.ppkg>" is working in "Command prompt" but not working in NSIS

The ExecToStack return 0(succes) and the message is :

Invoke-Item : Application not found

At C:\Users\Ycos3D\Desktop\Provisioning OS deployment\tempfile.ps1:1 char:1

+ Invoke-Item "<ppkg path>"

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: ( [Invoke-Item], Win32Exception

+ FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.P

Ycos3D is offline   Reply With Quote