Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Installing an exe with Powershell DSC Package resource gets return code 16389

$
0
0

Update…

I ran “psexec.exe -s D:\Temp\NET4.5.1\NDP451-KB2858728-x86-x64-AllOS-ENU.exe /q /norestart /log d:\temp\ndp451-1″ and was able to install .NET 4.5.1. I looked at the .html log produced, and noticed that when it calls setup.exe, it does so as follows: “Setup.exe /q /norestart /log d:\temp\ndp451-1 /x86 /x64 /redist”. So I tried the following, which did work using DSC:

>>>
Package Microsoft_.NET_Framework_4.5.1
{
Ensure =”Present”
Name = “Microsoft .NET Framework 4.5.1″
Path = “D:\Temp\NET4.5.1\Setup.exe”
ProductId = “7DEBE4EB-6B40-3766-BB35-5CBBC385DA37″
Arguments = “/q /norestart /log D:\Temp\ndp451-3 /x86 /x64 /redist”
}
<<<

So for some reason, running NDP451-KB2858728-x86-x64-AllOS-ENU.exe as System by using “psexec.exe -s” works, whereas running NDP451-KB2858728-x86-x64-AllOS-ENU.exe from DSC as System doesn’t. The failure seems to be when extracting the files, one of which is Setup.exe.


Viewing all articles
Browse latest Browse all 13067

Trending Articles