Use group policy to install application with .EXE file

IT Guy
IT Guy used Ask the Experts™
on
What steps can be used to create a Server 2016 group policy to install an application with an .EXE file on Windows 10 client computers?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Director of Information Technology
Commented:
You will need to create either a start up or logon script as one method.

The other is to create a new scheduled task via Group Policy Preferences to run at specific time.

I think the scheduled task is the easier method.

Do you have the switches needed to install without any user interaction?  Without this you will never get it to run.
Distinguished Expert 2018
Commented:
yo_bee's correct.
The author is asking another anonymous question about exe to msi conversion, by the way.

About scheduled tasks: we can use immediate tasks, here, to make it install as soon as possible.
Commented:
yo_bee's correct.
try script something like below


Be sure that the computer accounts have read access to your share. They need both share and NTFS permissions. You can do this by adding domain computers to the permissions.

check for the application exists
if exist "%ProgramFiles(x86)%\Program Name" set TargetDir=%ProgramFiles(x86)%\Program Name"
if exist "%TargetDir%\%InstallRev.txt" goto Finish


"\\fileshare\Client Installation\setup.exe -q"

:finish

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial