question

AB123-6633 avatar image
0 Votes"
AB123-6633 asked AB123-6633 answered

installing exe via gpo

Hi all,


How do I deploy exe via gpo? I am trying to install Python but they only do EXEs now!


Help!

windows-serverwindows-active-directorywindows-group-policy
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

learn2skills avatar image
0 Votes"
learn2skills answered

Hi @AB123-6633

You can install exe's via active directory GPO.

Refer below link it is explained step-by-step.
https://community.spiceworks.com/how_to/160869-how-to-install-exe-with-group-policy



If the Answer is helpful, please click Accept Answer and up-vote, so that it can help others in the community looking for help on similar topics.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AB123-6633 avatar image
0 Votes"
AB123-6633 answered

Hi @learn2skills

Is there not a way without using a MSI converter to deploy exes?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

cthivierge avatar image
0 Votes"
cthivierge answered

You cannot deploy ".exe" through GPO. It has to be .msi.

You need to convert the .exe to .msi first and then you will be able to install the .msi

hth

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AB123-6633 avatar image
0 Votes"
AB123-6633 answered

Hi @cthivierge @learn2skills

I have tried to use : https://www.exemsi.com/ to convert python 3.5.2 exe into a msi but no luck! Any ideas on what I am doing wrong or if there is a better way to do it

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello @AB123-6633,

The most common way would be to create a logon script that verifies the installation (installed/not installed).

The GPO would be:
Computer Configuration > Policies > Windows Settings > Scripts (Startup/Shutdown).

You will need to save a script in a DFS share accessible for the clients (such as Netlogon, or other if configured) and store a BAT script.

Examples of the script:

IF EXIST "c:\myapp - Installed.txt" GOTO END

\\servername\sharename\<path>\installfilename.exe
echo "Myapplication is installed on this computer" > "c:\myapp - Installed.txt"
goto END

:END

Basically it checks if a TXT file is already created, if yes: it finishes, if not: proceeds with install and then write the file. You may need to check the install parameters of your app for things like /passive or /silent to run on background without user interaction.

Hope this helps in your case,



--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AB123-6633 avatar image
0 Votes"
AB123-6633 answered

Hi @LimitlessTechnology-2700

Thank you! one step closer! I am getting the following error;

134577-capture4.png



Any ideas?


capture4.png (4.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.