Unattended Installation

When using Windows you can make an unattended installation of nomacs. Therefore you need to place install-script in a folder together with the nomacs-setup.exe. Then you can call
nomacs-setup.exe --script install-script.js
If you want to change the target directory, you can edit the following line in the install-script.js:

// Choose a target dir -----------------------------------------------------
// installer.setValue("TargetDir", "C:/nomacs");

Moreover, which components to install can be changed here:

// Select your components -----------------------------------------------------
// var page = gui.currentPageWidget();
// page.selectComponent("nomacs.x86");
// page.deselectComponent("nomacs.x64");
// Select your components -----------------------------------------------------

Local Repository

you can install nomacs using a local repository. Therefore you need to clone the current repository: http://download.nomacs.org/repository.zip. Extract this repository to a local server or machine.

Insalling from the Local Repository (GUI)

On the first page of the nomacs installer click the Settings button. Then add a User Defined Repository and uncheck the Default Repository. You can additionally add user credentials if needed (see screenshot).

img-2016-01-12 11.53.39-bInstalling from the Local Repository (CMD)

Open the nomacs-setup.exe or maintainancetool.exe from the Windows command line. Then type:

nomacs-setup.exe --addRepository <URI,...>

Configuring Presets (Export Settings)

If you want to automatically configure some settings, you can adjust nomacs on your machine. Then, run regedit.exe and choose the settings key you want to export:

regedit /e C:\nomacs-settings.reg "HKEY_CURRENT_USER\SOFTWARE\nomacs\Image Lounge"

If you run nomacs-settings.reg on the client machine, all your settings will be applied there.

11 thoughts on “Unattended Installation”

  1. Hi markus,

    I Installed the .msi on my PC (Win10), after removing off-line version.

    Just a few remarks: pictures are still linked with previous version that is not installed in the same directory. Another think: The installer only install the x64 version. Is there also a x86 version inside the .msi (like off-line installer), or is it only x64 version? Are you planned to make different version for x64 and x86?

    CU

    1. Hi,
      thanks for your feedback. We will update the picture link accordingly in 3.7 (for now you can open Settings > File Associations, change one checkbox and close nomacs to re-register them).
      We plan to ship two msi installers (x86 and x64)
      cheers,
      markus

  2. Hello! Thank you for your product. It’s really very good. can you explain how to make a silent mode for local installation without network connectivity for “nomacs 3.4”. For example if the installer and repository are in the “C:\nomacs” folder.

  3. hello,
    how do i disable the autorun “openappcheckbox” so that after the installation no nomax .exe starts automaticly ?
    greedings Jake

      1. A MSI installer is great because a packaging solution like Microsoft SCCM can create the deployment package with all of the required switches for install and uninstall.

        Where as an EXE, in SCCM is quite manual. You have to enter the install path and any required extra’s like uninstall, detection, etc info.

        So in SCCM if creating an MSI package, it can be created in seconds, where as an EXE deployment may take a while.

Leave a Reply

Your email address will not be published.