Page 1 of 1

batch script error 11

Published: November 22, 2016 - 3:11 PM
by Stenon
Hi,

I'm having a small error that's bothering me:
CalledProcessError: Command '('installnet.bat',)' returned non-zero exit status 11.

The goal is to install .NET 3.5 on Windows 10...
the following command in the admin console works fine:

C:\Windows\System32\Dism.exe /online /enable-feature /featurename:NetFx3 /All /Source:./LimitAccess

I put
in my WAPT package. I do have the dotNet.cab file that's needed (which I reference with /Source:).

If you have any ideas, I'm all ears. I've already tried the package from the internet, but that doesn't work either (tis-dotnet35).
Many thanks!

**Additional info

setup.py:
from setuphelpers import *
uninstallkey = [""]
def install():
run('installnet.bat')

installnet.bat:
@echo off
C:\Windows\System32\Dism.exe /online /enable-feature /featurename:NetFx3 /All /Source:. /LimitAccess