# Scripted silent installation of EasyMorph Desktop

**URL:** <https://community.easymorph.com/t/scripted-silent-installation-of-easymorph-desktop/3935>\
**Category:** General Q&A\
**Created:** [September 29, 2022, 10:35pm UTC](https://community.easymorph.com/t/scripted-silent-installation-of-easymorph-desktop/3935 "2022-09-29T22:35:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [September 29, 2022, 10:35pm UTC](https://community.easymorph.com/t/scripted-silent-installation-of-easymorph-desktop/3935/1 "2022-09-29T22:35:09Z")

</div>

In organizations with many EasyMorph users (tens and hundreds) it might be necessary to perform EasyMorph Desktop installation and configuration in an automated (scripted) way. Here is how you can do it.

1. Make a clean install of EasyMorph Desktop (e.g. under a temporary Windows user account). The free edition would suffice.
2. Open EasyMorph Desktop and configure Server Link as follows:
  - Connect to EasyMorph Server
  - Add one or more spaces (the ones that users will need to access). Make sure that in the space settings on the Server the option for accessing the space's repository from Desktops is enabled (it's disabled by default).
  - Configure it to use the Server-hosted repository of that space
  - Configure it to use a license from Server

3. Make a copy of `EasyMorph.config.xml` located in the installation folder (`C:\Users\<account name>\AppData\Local\EasyMorph`) and then uninstall the temporary EasyMorph copy as it's no longer needed.
4. Create a script to silently install and configure EasyMorph as follows:
  - Run the EasyMorph Desktop installer from the command line with option `/SILENT` or `/VERYSILENT` (more command line options are explained [here](https://jrsoftware.org/ishelp/index.php?topic=setupcmdline))
  - After installation, replace in the installation folder the file `EasyMorph.config.xml` with the one configured above

5. On EasyMorph Server, add Windows user accounts in the tab Licensing (you need to have a license key with [Dynamic licensing](https://community.easymorph.com/t/what-is-dynamic-licensing/2893)).

Now, when you run the script on a user's machine, it will silently install EasyMorph with configured Server Link, and on the first launch, it will automatically lease a license from EasyMorph Server.

UPDATE  
If your organization doesn't use EasyMorph Server, then replace p.2 above with the following:

1. Open EasyMorph Desktop and configure the path to the license key by pressing the "Setup license" link on the Start screen or in the initial configuration wizard. The path to the key should be the same for all scripted EasyMorph installations. Therefore:
  - Put the license key on a shared network drive
  - Or, put a copy of the license key next into a folder with known name, such as `C:\Users\Public\Documents`
  - Or, put a copy to another folder and modify programmatically `EasyMorph.config.xml` to have the correct license key path.

---

<div class="post-metadata">

**Author:** ![reynsnivea](https://community.easymorph.com/letter_avatar_proxy/v4/letter/r/9f8e36/32.png) [@reynsnivea](https://community.easymorph.com/u/reynsnivea)\
**Post date:** [January 31, 2023, 8:26am UTC](https://community.easymorph.com/t/scripted-silent-installation-of-easymorph-desktop/3935/2 "2023-01-31T08:26:01Z")

</div>

> [@dgudkov](#):
>
> Run the EasyMorph Desktop installer from the command line with option `/SILENT` or `/VERYSILENT` (more command line options are explained [here](https://jrsoftware.org/ishelp/index.php?topic=setupcmdline))

Could you just post a minimal script that installs EM ?  
I think in our setup, the license key is a file that sits on a shared drive, we do not use server links.  
So I am only interested to have a script that runs the installer.  
Is this via command prompt, or powershell?  
Could you post an example please?

What is also odd in our setup is the fact that Easymorph has been installed under C:\EasyMorph and not in AppData. Is this normal?

Thanks !

---

<div class="post-metadata">

**Author:** ![reynsnivea](https://community.easymorph.com/letter_avatar_proxy/v4/letter/r/9f8e36/32.png) [@reynsnivea](https://community.easymorph.com/u/reynsnivea)\
**Post date:** [January 31, 2023, 8:43am UTC](https://community.easymorph.com/t/scripted-silent-installation-of-easymorph-desktop/3935/3 "2023-01-31T08:43:30Z")

</div>

Found it, something like this ? It seems to work but for some reason the shortcut on the desktop is pointing to the old version. Any idea why?  
I ran cmd in admin mode and there are 2 USERS with their own appdata folder.  
Despite the choice for "/ALLUSERS", it only installed the software for the admin user it seems.

![image](https://community.easymorph.com/uploads/default/original/2X/f/fb1906cf175c3209a17f2323b17123fbb3bef6ce.png)

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [January 31, 2023, 11:06am UTC](https://community.easymorph.com/t/scripted-silent-installation-of-easymorph-desktop/3935/4 "2023-01-31T11:06:06Z")

</div>

> [@reynsnivea](#):
>
> Any idea why?

No idea.

We don't have full control over the installer utility. It's 3rd party software called InnoSetup. They should have a support forum.

Also, their [documentation](https://jrsoftware.org/ishelp/index.php?topic=filessection) is quite detailed. It may be worth checking out.

---

<div class="post-metadata">

**Author:** ![reynsnivea](https://community.easymorph.com/letter_avatar_proxy/v4/letter/r/9f8e36/32.png) [@reynsnivea](https://community.easymorph.com/u/reynsnivea)\
**Post date:** [February 1, 2023, 9:10am UTC](https://community.easymorph.com/t/scripted-silent-installation-of-easymorph-desktop/3935/5 "2023-02-01T09:10:02Z")

</div>

@dgudkov

I discovered today that windows has a package manager "winget" to install programs.  
Maybe EasyMorph could be added to that database so that we can use winget in the future.

> **[Use WinGet to install and manage applications](https://learn.microsoft.com/en-us/windows/package-manager/winget/)**
>
> The WinGet command line tool enables developers to discover, install, upgrade, remove and configure applications on Windows computers.

---

<div class="post-metadata">

**Author:** ![reynsnivea](https://community.easymorph.com/letter_avatar_proxy/v4/letter/r/9f8e36/32.png) [@reynsnivea](https://community.easymorph.com/u/reynsnivea)\
**Post date:** [February 21, 2023, 7:28am UTC](https://community.easymorph.com/t/scripted-silent-installation-of-easymorph-desktop/3935/6 "2023-02-21T07:28:03Z")

</div>

@dgudkov

Our repository file sits on a shared drive. If we install EasyMorph manually via the installer or via the command below, does it overwrite the repository file ? Does EasyMorph makes a backup automatically of the repository file in case an issue occurs?

![image](https://community.easymorph.com/uploads/default/optimized/2X/8/865865c21f96e718850e790ef00543aa5c44f553_2_690x33.png)

Thanks  
Nikolaas

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [February 21, 2023, 12:00pm UTC](https://community.easymorph.com/t/scripted-silent-installation-of-easymorph-desktop/3935/7 "2023-02-21T12:00:50Z")

</div>

The EasyMorph installer never overwrites a repository.

---

<div class="post-metadata">

**Author:** ![reynsnivea](https://community.easymorph.com/letter_avatar_proxy/v4/letter/r/9f8e36/32.png) [@reynsnivea](https://community.easymorph.com/u/reynsnivea)\
**Post date:** [February 24, 2023, 7:33am UTC](https://community.easymorph.com/t/scripted-silent-installation-of-easymorph-desktop/3935/8 "2023-02-24T07:33:04Z")

</div>

Ok so when installing EasyMorph the connector repository file does not get overwritten ?  
Is this also the case when installing EasyMorph server ? Release notes of EasyMorph say:

![image](https://community.easymorph.com/uploads/default/original/2X/5/5da426b80847bb0a220066e7f15c773dc72da892.png)

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [February 24, 2023, 11:38am UTC](https://community.easymorph.com/t/scripted-silent-installation-of-easymorph-desktop/3935/9 "2023-02-24T11:38:36Z")

</div>

Neither EasyMorph installer overwrites an existing repository.

Although, rarely, some versions can migrate repositories to another repository version (repositories) have their own versions. In such cases, a backup version is created.

Always read Release Notes. We write in Release Notes when a repository version is changed. The last time it was in version 5.0.

Also, if you don't backup your projects and repositories (regardless of EasyMorph installations), you should do it in any case.
