Thread: Executing .ppkg
View Single Post
Old 17th July 2016, 07:44   #1
Ycos3D
Junior Member
 
Join Date: Jul 2016
Posts: 11
Executing .ppkg

I tryed to execute ppkg with multiple sintax : ExecuteWait,ShellExecute,nsExec::ExecToStack

When i execute with nsExec
nsExec::ExecToStack 'powershell -inputformat none -ExecutionPolicy Unrestricted -File "$INSTDIR\tempfile.ps1" '
on "tempfile.ps1" i have : Invoke-Item "ppkg_path.ppkg"
, nothing happening.My messages are:

First :
0(succes)
Second:
---------------------------
Provisioning OS deployment Setup
---------------------------
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

owerShell.Commands.InvokeItemCommand




---------------------------
OK
---------------------------


When i execute the command in powershell with the same parameters , the ppkg is running.


I tryed ExecWait '"C:\Windows\System32\provtool.exe" "<ppkg_path.ppkg>" ' , nothing happening.
When i run same command from cmd , the ppkg is running
Ycos3D is offline   Reply With Quote