Paul

Paul

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Paul
    Participant
    Post count: 7

    Yes, I forgot to type in the closing ” in Path, but it’s there in the script.

    The dirfiles path has no spaces. So that’s not it.

    When I tried to use the ` symbol in the -Path parameter (in case it doesn’t like the space in Program Files) I get an Illegal character failture

  • Paul
    Participant
    Post count: 7
    in reply to: Session 0 UI #357

    I’ve been using the following in Microsoft’s Configuration Manager (SCCM) to allow installs when either no user is logged on or when a user is logged on (show dialogs), perhaps you can modify the batch files to run in your situation.

    I think that I’ve found a working method to allow an SCCM 2012 application to be used in both task sequences and with users.

    Create an application with two deployment types (one for x64 and one for x86). set the user experience to both to:

    Install for system; Whether or not a User is logged on.

    Create a batch file to be called for each deployment type (x64 and x86), put this command into the file:

    %SYSTEMROOT%\System32\qprocess.exe * | find /i “explorer.exe” >nul 2>&1 && (%~dp0ServiceUIx64.exe %~dp0Deploy-Application.exe Install) || (%~dp0Deploy-Application.exe Install)

    (for x86 use ServiceUIx86.exe)

    What this command does is find if the process “explorer.exe” is running and thus there is a logged on user, if so use ServiceUI.exe to launch Deploy-Application.exe to show the dialogs to the user, if no user logged on (such as in the Task Sequence) just run the Deploy-Application.exe

    You can change the Install command to Uninstall to create the Uninstall batch files

  • Paul
    Participant
    Post count: 7

    I think that I’ve found a working method to allow an SCCM 2012 application to be used in both task sequences and with users.

    Create an application with two deployment types (one for x64 and one for x86). set the user experience to both to:

    Install for system; Whether or not a User is logged on.

    Create a batch file to be called for each deployment type (x64 and x86), put this command into the file:

    %SYSTEMROOT%\System32\qprocess.exe * | find /i “explorer.exe” >nul 2>&1 && (%~dp0ServiceUIx64.exe %~dp0Deploy-Application.exe Install) || (%~dp0Deploy-Application.exe Install)

    (for x86 use ServiceUIx86,exe)

    What this command does is find if the process “explorer.exe” is running and thus there is a logged on user, if so use ServiceUI.exe to launch Deploy-Application.exe to show the dialogs to the user, if no user logged on (such as in the Task Sequence) just run the Deploy-Application.exe

    You can change the Install command to Uninstall to create the Uninstall batch files.

  • Paul
    Participant
    Post count: 7

    Hi:

    I found the error, it was the usual SCCM 2012 error where you try to update files and push them to the distribution point, but it doesn’t get all the new files.

    I had to create a new app from scratch point it to the current app directory and then push it out to the distribution points. Worked after that.

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