Customization of the web Installer with config.json

Hi,

I’m looking into Duplicacy as something i could use for interested clients, in this process it would be nice if we can customize the look and feel and maybe even do unattended installations?

1. Customization
I’m struggling without the Customization as explained here:
https://forum.duplicacy.com/t/customization-of-the-web-gui/3485

There is only one file in the icons path:
\icons\product-icon.png

Unfortunately the installer doesn’t use the config.json.
Based on: No name change, no custom logo, no custom provider, …

Log file content:
2021/02/03 13:54:27 Created a new configuration.
2021/02/03 13:54:27 A new license has been downloaded for TESTPC
2021/02/03 13:54:27 Temporary directory set to C:\ProgramData/.duplicacy-web/repositories
2021/02/03 13:54:27 Duplicacy Web Edition 1.5.0 (baff49)
2021/02/03 13:54:28 Downloading the CLI executable from https://github.com/gilbertchen/duplicacy/releases/download/v2.7.2/duplicacy_win_x64_2.7.2.exe
2021/02/03 13:54:29 Duplicacy CLI 2.7.2

Any idea what I’m doing wrong?

2. Unattended
Is there a command line option to uninstall the webGUI unattended?

Kind regards,
Jim

The installer can’t be customized. The s3backup-config.json is supposed to go with the web GUI executable.

There is a /S option for the installer/uninstaller, but I’m not sure if the default choices in the silent mode are what you want.

Hi gchen,

Thank you for your prompt reply; much appreciated!

I’ve been able to install the custom service with customizations :grinning:
As a reference for others I’ll include the install and remove scripts below for demo purposes.

There was only one thing that i missed, that is a silent switch for registering the service, that would be a great plus!

Downloading, Installing and register a customized version:

rem ##
rem ## Download the lasted web installer 1.5.0
rem ## Install this web installer
rem ## Add demo customization
rem ## Register customized service
rem ## Open URL
rem ## 

set url=https://acrosync.com/duplicacy-web/duplicacy_web_installer_win64_1.5.0.exe
set file=duplicacy_web_installer_win64_1.5.0.exe

SET S2PATH=C:\s2backup
SET S2CONFIG=S2Backup-config.json
SET DUPLICACY_PATH=C:\Program Files\Duplicacy Web Edition

rem ## Create local folder 'C:\s2backup'
C:
CD \
MKDIR s2backup
;rem CD %S2PATH%\

rem ## Download Duplicacy Web Installer
certutil -urlcache -split -f %url% %S2PATH%\%file%
;rem bitsadmin.exe /transfer "duplicacy_download" %url% %S2PATH%\%file%

rem ## Install the web installer unattended (silent mode)
%S2PATH%\duplicacy_web_installer_win64_1.5.0.exe /S

rem ## Wait for installer to complete
PING localhost -n 10 >NUL

rem ## Create Example config for Backblaze S2 Storage
Echo { > "%DUPLICACY_PATH%\%S2CONFIG%"
Echo     "product_version": "2.0", >> "%DUPLICACY_PATH%\%S2CONFIG%"
Echo     "product_name": "S2Backup", >> "%DUPLICACY_PATH%\%S2CONFIG%"
Echo     "product_full_name": "S2Backup", >> "%DUPLICACY_PATH%\%S2CONFIG%"
Echo     "product_website": "http://127.0.0.1:3875/dashboard", >> "%DUPLICACY_PATH%\%S2CONFIG%"
Echo     "company_name": "S2Backup", >> "%DUPLICACY_PATH%\%S2CONFIG%"
Echo     "company_website": "http://127.0.0.1:3875/dashboard", >> "%DUPLICACY_PATH%\%S2CONFIG%"
Echo     "service_description": "An S2 backup tool based on Lock-Free Deduplication", >> "%DUPLICACY_PATH%\%S2CONFIG%"
Echo     "configuration_directory": "s2backup", >> "%DUPLICACY_PATH%\%S2CONFIG%"
Echo     "configuration_file": "s2backup.json", >> "%DUPLICACY_PATH%\%S2CONFIG%"
Echo     "log_file": "s2backup.log", >> "%DUPLICACY_PATH%\%S2CONFIG%"
Echo     "password_variable": "S2BACKUP_PASS", >> "%DUPLICACY_PATH%\%S2CONFIG%"
Echo     "storages": "s2" >> "%DUPLICACY_PATH%\%S2CONFIG%"
Echo } >> "%DUPLICACY_PATH%\%S2CONFIG%"

rem ## Create an service with the example config file

rem ##  1. rename the exe to match the config file
DEL /Q "%DUPLICACY_PATH%\S2Backup_2.0.exe
ren "%DUPLICACY_PATH%\duplicacy_web_win_x64_*.exe" "S2Backup_2.0.exe"

rem ##  2. Create icons folder + download example
C:
CD "%DUPLICACY_PATH%"
mkdir icons
CD icons
SET url=https://o.dlf.pt/dfpng/smallpng/48-482055_cloud-backup-icon-png-transparent-png.png
certutil -urlcache -split -f %url% product-icon.png

rem ##  3. Create service
C:
CD "%DUPLICACY_PATH%"
start /w S2Backup_2.0.exe -install-service

rem ##  All Finished
rem ##  Open the URL
start "" "http://127.0.0.1:3875" 

Clean up (remove service, uninstall duplicacy:

SET S2PATH=C:\s2backup
SET DUPLICACY_PATH=C:\Program Files\Duplicacy Web Edition

C:
CD "%DUPLICACY_PATH%\"
start /w S2Backup_2.0.exe -uninstall-service
rmdir /S /Q "%programdata%\.S2Backup"

"%DUPLICACY_PATH%\Duplicacy Web Edition Uninstall.exe" /AllUsers /S

rmdir /S /Q "%S2PATH%"

Kind regards,
Jim

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.