Prev Previous Post   Next Post Next
Old 17th July 2016, 07:44   #1
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 :
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



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
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump