Installation without a GUI

Hallo Liebe Community.

Ich suche gerade nach einer Möglichkeit Duplicati ohne die GUI zu installieren.
Ich habe bereits das Forum nach ähnlichem durchsucht habe aber leider nichts gefunden.
Das ziel ist es am Ende, dass ich eine Batch laufen lasse mit der Duplicati installiere um den Prozess zu automatisieren. Ohne mich immer durch die GUI klicken zu müssen und Pfade anzupassen.

Hello everyone.

I’m currently looking for a way to install Duplicati without using the GUI.

I’ve already searched the forum for something similar, but unfortunately haven’t found anything.

The goal is to run a batch file to install Duplicati and automate the process, without having to constantly click through the GUI and adjust paths.

Since you wrote batch file, I assume Windows. You can install .msi with:

msiexec (Microsoft Learn), and search forum for some previous uses of it.

There is also a .zip package. I think Windows tar command can unzip.

Is this still referring to the .msi installer GUI? What needs adjusting?

Thanks in advance for the quick reply.

Duplicati should be installed as a service. Therefore, it must not start on login. So, it needs to be removed. Furthermore, it should be installed in a different path. And at the end of the installation, the checkbox for “Start Duplicati now” must be unchecked.

That’s the requirement. And I’d like to automate this if possible.

Okay, I’ve now looked at the whole thing with the MSI. Unfortunately, msiexec needs a direct API from the executable included in the MSI.

I’ve also looked at the other packages, but haven’t found any reference to an API.

This means the default values ​​are hard-coded in the Install.exe.

So I need a developer to tell me exactly how to modify the MSI via API.

Please see Running the Server as a Windows Service. It’s a later scriptable step after Duplicati is installed by whichever means you pick from my choices, AFAIK.

I assume you mean the below, but I don’t like its “startup” wording
because it’s too suggestive of system startup. It’s actually at login.

With .zip install, put it where you like. I’m not sure if msiexec way can do it.
If I ask Google “can msiexec install to a custom path” it gives me hopeful reply.
That leads me to Duplicati source, which also gives me hope for INSTALLDIR.

One could guess from path and code that it uses WiX language. You can study.

This is the other usual thing one changes to avoid the default of a plain TrayIcon.
That means it’s probably come up before. Did you do any search for the answer?

Let me try starting in About → Changelog going from older to newer in its history:

  • Re-added the FORSERVICE=true flag to MSI packages
  • Fixed an issue with quiet MSI upgrades
  • MSI will automatically attempt to stop and restart the service during install

Got citations? I don’t know the area. Much might be handled by installer code, meaning what goes in between app code in WiX language and Windows itself.

Here’s an AI answer to a question I posed:

Yes, the WiX Toolset is fundamentally designed to create installers for the Windows Installer engine and it leverages the underlying Windows Installer API

Is that the API you mean? If so, I think you’re all set. Just customize WiX code.

This is one of the more recent posts, from lead dev in forum Developer section.

Are you a developer? If not, I’m not sure anyone will direct you from ground up.
There are hundreds or thousands times more “asks” than available developers.

GitHub Issues (two main ones) holds the backlogs. Forum requests can be lost.

It’s still a good place to search. I’d start with searches for msiexec FORSERVICE,
then look at the code if you need ideas on what it does, then look for other ones.

It would be nice if direction got in the manual, but it seems to be changing slowly, evidenced by the change log and forum search. Or maybe it’s a resources issue? There plenty of stuff that the new manual could do better on, but dev is stretched.

You can bypass all of this .msi complexity if you do a .zip install. Will that fly?
It looks like the .msi has the advantage of trying to handle service on upgrades.

https://github.com/duplicati/duplicati/commits/master/ReleaseBuilder/Resources/Windows/TrayIcon/Duplicati.wxs

will show installer change history. In 2019 era, a second developer volunteer did:

Add parameter to Wix installer that will install only the core feature #3893

This new option will only install the Core feature and will not auto start Duplicati:
msiexec /i duplicati.msi FORSERVICE = “true”

You then look at GitHub change history and current version for later change.
You look at forum and maybe Issues, or try Google etc. for a broader search.
That’s how you see if what’s there works and suits you, or needs more work.

If it needs more work and is generally useful, open a pull request for change.
If you’re a mostly-set developer needing boost, try forum developer category.

A pull request, If accepted, stands a chance of letting you use normal release
going forward. If you just change code in your own fork, you will maintain that.

Duplicati is open source under MIT license, so you can reapply custom patch,
however you’re then into building it and figuring out how to get update to user.

I’d still like to hear why .zip install won’t work. I use it all the time on this PC.