Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • André
    Post count: 9

    i started now the script on the machine who makes trouble and this comes out if i start only the PS1 File.
    i think that the system is missing some files, the package was created with PSAPPDEP 3.5.0. Now i make an update and will check it again.


    Add-Type : (0) : Warnung als Fehler: Ungültiger Suchpfad C:\PROGRA~1\SQLLIB~1\LIB in LIB-Umgebungsvariable — Das System kann den angegebenen Pfad nicht finden. ..

    (1) : using System;

    Bei C:\Windows\ccmcache\3f\AppDeployToolkit\AppDeployToolkitMain.ps1:7603 Zeichen:12
    + Add-Type <<<< -TypeDefinition $QueryUserSessionSource -Language CSharp
    + CategoryInfo : InvalidData: (error CS1668: W…icht finden. ..:CompilerError) [Add-Type], Exception
    + FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand

    Module [C:\Windows\ccmcache\3f\AppDeployToolkit\AppDeployToolkitMain.ps1] failed to load:
    Der Typ kann nicht hinzugefügt werden. Fehler bei der Kompilierung.

  • André
    Post count: 9

    Why? Better is that you learn to recreate your batch files to Powershell.
    that´s what i done. PSAPPDEP is a great tool with them you have a basic set an Powershell.
    very good help is the DOCumentation, there are very good examples so you can learn.

    but if you want run your batch file you must copy them to the files folder and then call with this line:

    execute-process -path “YOURCMD.CMD” -Parameters “when needed”

    take a look in the DOC too.

  • André
    Post count: 9
    in reply to: PSAPPDep with DISM #297

    Ahh, thank you very well.
    this was the hint i´m looking for. 😉

    i solved this so but your way is shorter. 🙂

    $DISM = $env:WinDir + ‘\System32\DISM.exe’
    $POWERSHELL = $env:WinDir + ‘\System32\WindowsPowershell\v1.0\powershell.exe’
    $PACKAGE = $dirfiles + ‘\Microsoft.SurfaceHub_2015.516.56.635_neutral_~_8wekyb3d8bbwe.appxbundle’
    $LICENSE = $dirFiles + ‘\Microsoft.SurfaceHub_8wekyb3d8bbwe.xml’
    Execute-Process -Path $DISM -Parameters “/Online /AddProvisionedAppxPackage /PackagePath:$PACKAGE /LicensePath:$LICENSE”

Viewing 3 posts - 1 through 3 (of 3 total)