<

Deploy single EXE applications without installers

Published on
20,846 Points
846 Views
10 Endorsements
Last Modified:
Shaun Vermaak
My name is Shaun Vermaak and I have always been fascinated with technology and how we use it to enhance our lives and business.
This article runs through the process of deploying a single EXE application selectively to a group of user.
Suppose we have the following requirement:
  • "DummyTest" application is a single EXE application with a configuration file
  • "DummyTest" application should be installed for all users in Group "Some Group 1", "Some Group 2" and "Some Group 3"
  • Group "Some Group 1", "Some Group 2" and "Some Group 3" have different configuration files
  • Users must have a desktop icon to access "DummyTest" application
 

Preperation


First thing is to copy the EXE file and config file to a network location.
In this article I use the domain Netlogon DFS share because the application is small and because the share is highly available and distributed.
After this duplicates are create for configuration file so that we have three, each with different configuration

Files.png


1) Deploying the EXE


a) Create a GPO Add the EXE into User Configuration > Preferences > Windows Settings > Files.
Note that when you specify the source file location, ensure you use the network location for the file
select-file1.pngb) Specify the destination file. This will be the location on the target user’s profiles. You can press F3 to get a neat list of all the variables available.
select-file2.pngc) In this case the file will be deployed in %AppDataDir%\Dummy with name Dummy.exe.
Note this is the path that we need to point shortcut to in a later step
select-file3.pngd) Select the Common tab and tick “Remove this item when it is no longer applied” and “Item-level targeting". The EXE must be deployed when use is member of any of the three groups.
This is done by changing the item filtering to OR
select-file4.png

2) Deploying the configuration file


The deploying of the configuration file is similar to the deploying of the EXE except that depending on the group membership, you will get one of three files and the destination file will always have the same name
select-file5.png
select-file6.png
select-file7.png

3) Deploying the shortcut


a) Add the shortcut into User Configuration > Preferences > Windows Settings > Shortcuts.
Note that the “Target Path” is the destination file from the EXE deploy task
shortcut-1.pngb) The shortcut should be deployed to users that are members of any of the three groups
shortcut-2.pngThe end result is that when a user is added to any of the three groups, they will get an EXE, configuration file and a shortcut. The configuration file is different for the three groups.

Also, if you remove user from group, the EXE, configuration file and shortcut will be removed

Please do not forget to press the "Thumb's Up" button if this article was helpful and valuable for EE members.
It also provides me with positive feedback. Thank you!
 
10
2 Comments
LVL 15

Expert Comment

by:Jamie Garroch
As a developer of PowerPoint templates and add-ins, this article is a great find as clients often do not know how to deploy these types of deliverables centrally. Thanks for taking the time to write it. Is there a way to test this is local mode i.e. when you don't have access to a corporate infrastructure. I see that Win10 has a "Local Group Policy Editor":
Local Group Policy Editor
0
LVL 50

Author Comment

by:Shaun Vermaak
Hi Jamie. Thank you for the comment.

Unfortunately not. In fact, you cannot see preferences even in RSOP.msc, only in GPRESULT.

May I recommend you build a testing DC with a trial account?

Something that you might like is that these preferences are XML and you can variablize it.
2

Featured Post

Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month