Im currently would like to get a little help or input. Yes im currently not using SCCM (we are planning to switch to SCCM but its a huge task). We use another Software deployment that offers installations been done with localsystem non interactive.
Our company does not have a local administrator account on the machines, also no user has local admin rights. That means we need to run all tasks as local system.
I was able to run deploy-application.exe install as (my user with admin, localsystem interactive mode) all did work well. As soon as i do run it in non interactive mode no popups and installation progress shows up in the user context.
Interactive mode is very dangerous because the user could interact with the installer application, so we need to run it in non-interactive mode.
Found the following posts with the search function:
Hi Pelle,
Thanks for the answer, unfortunately i do not wanna surpress the information windows from PSAD, only surpress all messages from from the application.
This works too, but the user does not see any popup from PSAD (so the user is not aware to close specific applications and does not know that the installation is still running)
As you can see the only difference is the -i option… im not allowed to use the -i option because the user can interfer with the application and gain system access. Also i can not use a runas option, because our local admin passwords are dynamically generated every day with LAPS. Currently i was able to use local system for every software in our enviroment but im not able to use localsystem as PSAD does not show any message windows when run in a nointeractive system shell.
Sounds to me like you are asking for the silent switches of the application you are trying to install, and this is something the toolkit does not solve for you automatically.
What is the application if I may ask, and/or what kind of installer is it? If it’s a well known application you might also find useful tips on itninja.com, which is a community for application packaging.
The PowerShell Application Deployment Toolkit is like a swiss army knife – it will help you assembly an Ikea shelf if you have the right instructions, so to speak :). I’m guessing when you’re starting an interactive installation you’re getting the “welcome window” of your installer at this moment, and do not wish your users to complete the installation themselves eh?
The application is a simple test application i coded myself… the only thing it does is a console application that is in a while loop till a file exists.
i just call this file in PSAD (there are for sure no attributes for the application)
-s -i works (i dont see the application , but see the windows prompts from PSAD)
-s i see it gets executed by PSAD, but the user does not receive any message window.
Display the PSAppDeploymentToolkit Welcome dialog box and ask the user to end <application-x>.exe
Start <simple-test-application> in a hidden shell from inside the deployment script?
…
If that’s the case – how do you execute the application from inside of the deploy-application.ps1 script? What’s the command? That’s where you want to add the hiding bits.
But you’re saying:
im not allowed to use the -i option because the user can interfer with the application and gain system access.
And then later
-s -i works (i dont see the application , but see the windows prompts from PSAD)
So it is a bit hard to understand what the problem is :)…
i was able to solve it and run only the deployment executable interactive… the rest is running in non interactive mode…
REM #########
REM ######### Installer show user information if user is logged in
REM #########
start %~dp0office_notification\psexec.exe \\localhost -s -i -accepteula %~dp0office_notification\Deploy-Application.exe
SET INSTALLSTARTED=“C:\Maintenance\Logs\user-close-apps”