Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  1. Fotoware Alto
    • 11.14 Schreckhorn
    • Terminology
    • Solutions
    • User Guide - Deutsch
    • User Guide - English
    • API Changelog
  2. Fotoware Veloz
    • Managing users and groups
    • Configuring archives
    • Configuring workflows
    • Configuring site behavior
    • Navigating and searching to find your assets
    • Working with your assets
    • Editing asset metadata
    • Uploading files
    • Version Control in Fotoware
    • Albums - Creating and sharing collections
    • Placing assets in a CMS
    • Working with the Fotoware Pro interface
    • Using the Fotoware plugins
    • Consent management
    • User guide to FotoWeb for iPad (Legacy)
    • Picture conferencing with FotoWeb Screens (Legacy)
    • What's what in Fotoware
    • GDPR
    • Fotoware Veloz releases
    • Activity Exports
    • Fotoware Example Workflows
  3. Fotostation
    • Getting started with Fotostation
    • Viewing, selecting and sorting files
    • Managing your assets with archives
    • Adding metadata to assets
    • Searching for assets
    • Working with your assets
    • Version Control in Fotostation
    • Automating tasks with Actions
    • Configuring metadata fields and editors
    • Configuring Fotostation
    • Configuring Fotostation for multi-user environments
    • Troubleshooting Fotostation
  4. Fotoware Flow
    • What is Flow?
    • Getting started
    • Flow dictionary
  5. Fotoware On-Premises
    • Getting started
    • Index Manager
    • FotoWeb
    • Color Factory
    • Connect
    • Operations Center Guide
  6. Integrations and APIs
    • The Fotoware API
    • Creating integrations using embeddable widgets
    • Authorizing applications using OAuth
    • Auto-tagging
    • FotoWeb Drag and Drop export
    • Integration using webhooks
    • Optimizely and Episerver plugin documentation
    • User Interface Integrations
  7. Fotoware Mobile
    • User guide for Fotoware Mobile for iPhone and Android
    • User guide to FotoWeb for iPad (Legacy)
    • User guide to FotoWeb for iPhone and Android (Legacy)

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Support

Table of Contents

Actions Global parameters Site-specific parameters Examples Upgrade system with single site and default SQL database with trusted connection Clean installation with default parameters Clean installation with Apache (DEPRECATED) Add another site Remove a site Wait for the command to finish Change web server Restore or remove IIS configuration for all sites Restore or remove IIS configuration for a single site Database parameters
  • Home
  • Fotoware On-Premises
  • FotoWeb
  • Installing FotoWeb (On-Premises)

Scripting the FotoWeb Upgrade Wizard

30. April 2025

Elaine Foley

Table of Contents

Actions Global parameters Site-specific parameters Examples Upgrade system with single site and default SQL database with trusted connection Clean installation with default parameters Clean installation with Apache (DEPRECATED) Add another site Remove a site Wait for the command to finish Change web server Restore or remove IIS configuration for all sites Restore or remove IIS configuration for a single site Database parameters

The FotoWeb setup and configuration wizard, fwsetup.exe, can be run as a command-line application to configure and update FotoWeb programmatically. The command-line interface has extended functionality, which is unavailable in the GUI and may be required in certain situations.

Actions

At least one action must be selected to control what the setup/upgrade process will do.

Parameter Description When to run
-installModeReal Upgrade FotoWeb system.

This action is normally run automatically when a new version of FotoWeb is installed on a system that already has a FotoWeb configuration.

It can be run again to do a repair of the configuration or after manually migrating a site from another server (note that this is not officially supported!)

-addSite Add a new FotoWeb site.

This action is normally run from FotoWeb Administration Console when adding a new site.

There is normally no need to run this on the command-line.

-removeSite Remove a FotoWeb site.

This action is normally run from FotoWeb Administration Console when removing a site.

There is normally no need to run this on the command-line.

-restoreIIS Restore IIS configuration.

This action removes and then restores the fotoweb application from every IIS website that hosts a FotoWeb site. It can also be run for only one individual site by adding the siteName parameter (see below).

This action also repairs the global configuration of IIS, such as setting ISAPI/CGI restrictions, setting up the configuration server, and unlocking config sections.

It also installs IIS if it is not installed.

Note that -installModeReal also does all of this and that you can also remove and add a site to IIS using FotoWeb Administration Console.

-removeIIS Remove IIS configuration

This action does the same as -restoreIIS, except it only removes IIS configuration and does not restore, add or repair it. If IIS is not installed, then this action does nothing.

Note that all of this is also done when uninstalling FotoWeb.

(none) Clean installation of new FotoWeb system

This action is normally run automatically on a fresh installation of FotoWeb.

All existing configuration is removed. When not using -quiet mode, the wizard will prompt for confirmation.


Global parameters

Parameter Description Clean install Add site Remove site Upgrade Restore IIS
-quiet

Run installer in quiet mode. Do not show wizard interface.

MUST be given for unattended operation in automated tasks.

REQUIRED REQUIRED REQUIRED REQUIRED N/A
-useIIS Use IIS as web server (default)   N/A N/A   N/A
-useApache Use Apache as web server          
-processAccountName USERNAME

Username of FotoWeb process account.

If not given, the previously configured process account is used.

REQUIRED

if not already configured

    N/A N/A
-processAccountPassword PASSWORD

Password of FotoWeb process account.

If not given, the previously configured process account is used.

REQUIRED

if not already configured

    N/A N/A
-processAccountDomain DOMAIN_NAME

Domain name of FotoWeb process account.

If not given, the previously configured process account is used.

REQUIRED

if not already configured

    N/A N/A
-siteName Name of the FotoWeb site to add. REQUIRED REQUIRED REQUIRED N/A  


Site-specific parameters

The following parameters are only available during clean installation or when adding a site.

Silent upgrade does not currently allow specifying any per-site parameters, so current configuration and defaults (for example, SQL server trusted authentication) must be used.

Parameter Description Clean install Add site Remove site
-sqlUsername USERNAME

Username for SQL database admin account.

If not given, then trusted authentication is used using the FotoWeb process account.

Silent upgrade requires trusted authentication using the FotoWeb process account.

    N/A
-sqlPassword PASSWORD

Password for SQL database admin account.

If not given, then trusted authentication is used using the FotoWeb process account.

    N/A
-hostName HOSTNAME Host name to be used for the FotoWeb site REQUIRED REQUIRED N/A
-siteHttps Site uses HTTPS     N/A
-iisSiteName WEBSITE_NAME Name of IIS web site to deploy FotoWeb application on.

REQUIRED

if using IIS

REQUIRED

if using IIS

REQUIRED

if using IIS

-sqlServer ADDRESS[:PORT]

Hostname/IP (and optionally port) of custom SQL database.

If not given, then no site database is created.

    N/A
-sqlDbName DATABASE_NAME

SQL database name of custom SQL database.

If not given, then no site database is created.

    N/A
-sqlSaUsername USERNAME

Username for creating database in SQL server.

If not given, then trusted (Windows) authentication is used.

     
-sqlSaPassword PASSWORD

Password for creating database in SQL server.

If not given, then trusted (Windows) authentication is used.

     


Examples

Upgrade system with single site and default SQL database with trusted connection

fwsetup.exe -installModeReal -quiet

Clean installation with default parameters

1 fwsetup.exe -quiet -processAccountName "FotoWebUser" -processAccountPassword "1234" -siteName "SITEONE" -iisSiteName "WEBSITE1" -hostName "www.example.com"

Clean installation with Apache (DEPRECATED)

1 fwsetup.exe -quiet -useApache -processAccountName "FotoWebUser" -processAccountPassword "1234" -siteName "SITEONE" -hostName "www.example.com"

Add another site

1 fwsetup.exe -quiet -addSite -siteName "SITEONE" -hostName "www.example.com" -iisSiteName "WEBSITE1"

Remove a site

1 fwsetup.exe -quiet -removeSite -siteName "SITEONE"

Wait for the command to finish

1 START /WAIT .\bin\fwsetup.exe -installModeReal -quiet

Change web server

1 fwsetup.exe -installModeReal -quiet -useIIS
1 fwsetup.exe -installModeReal -quiet -useApache

When switching to IIS, each site must be mapped to an IIS site. If the system has previously been using IIS, and you have not added any sites since switching to Apache, then these commands work fine. If the mappings still need to be defined, either add the necessary parameters, or remove -quiet to select the web site interactively in the wizard.

Restore or remove IIS configuration for all sites

1 fwsetup.exe -restoreIIS
1 fwsetup.exe -removeIIS

Restore or remove IIS configuration for a single site

1 fwsetup.exe -restoreIIS -siteName "SITEONE"
1 fwsetup.exe -removeIIS -siteName "SITEONE

Database parameters

When creating a new site or updating it, use the following parameters to create the SQL database.

By default, a new site is created without a SQL database. A SQL database is only needed for reporting. All other features do not require a SQL database.

For more information, see Configuring the site database.

No site SQL database

Scenario When creating a site When updating Preparation
No site SQL database      
SQL database with trusted authentication for DB admin and requests -sqlServer, -sqlDbName Add Windows user that runs fwsetup to database with sysadmin privileges. Can be done during installation of SQL server.  
SQL database with trusted authentication for requests -sqlServer, -sqlDbName, -sqlSaUsername, -sqlSaPassword -sqlSaUsername, -sqlSaPassword Add Windows user that runs fwsetup to database with sysadmin privileges. Can be done during installation of SQL server.
SQL database without trusted authentication -sqlServer, -sqlDbName, -sqlSaUsername, -sqlSaPassword, -sqlUsername, -sqlPassword -sqlSaUsername, -sqlSaPassword Add SQL user with given credentials to database with sysadmin privileges. Can be done during installation of SQL server.
automating upgrade process

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Installing FotoWeb
  • Installing Fotoware in an offline environment
  • Activating a Fotoware license with a license server
eco-lighthouse-miljøfyrtårn

Company

  • About us
  • Resellers
  • Careers
  • Contact us

Help & support

  • Support center
  • Consultancy
  • Tech partners
  • Fotostation
  • System status

Trust Center

  • Legal
  • Security
  • Sustainability & ESG

Locations

Fotoware AS (HQ)
Tollbugata 35
0157 OSLO
Norway
FotoWare Switzerland AG
Industriestrasse 25
5033 Buchs (AG)
Switzerland

Copyright 2025 Fotoware All rights reserved.

  • Terms of service
  • Privacy policy
  • Cookie policy

Knowledge Base Software powered by Helpjuice

Expand