Wie lauten die Befehlszeilen-Parameter des Installers für die Silent Installation des Client?

Im Folgenden finden Sie die Kommandozeilenparameter, um einen Silent Install durchzuführen. Sollten Sie die Anweisungen auf Deutsch benötigen, sprechen Sie uns gerne an. 

Befehlszeilen-Parameter des Installers

Das Setup-Programm akzeptiert optionale Befehlszeilenparameter. Diese können für Systemadministratoren und andere Programme, die das Setup-Programm aufrufen, nützlich sein.

Spezielle Parameter für die Einrichtung der Clients

Password Depot bietet Ihnen eine umfangreiche Liste von Parametern für die individuelle Konfiguration des Clients an. Diese können Sie entweder als Silent-Parameter über den Installer oder über die Datei DefSettings.ini übergeben. 

Die Liste der Parameter wird im FAQ-Artikel der DefSettings.ini aktualisiert. Wenn Sie einen Parameter von dort im Installer anwenden möchten, so müssen Sie lediglich ein "/" voranstellen.

Beispiel:

Definition des Servers in der ini-Datei:

Server=127.0.0.1

Definition des Servers über Befehlszeilenparameter im Installer:

/Server=127.0.0.1

Angepasste Parameter

/COMPONENTS="Komma getrennte Liste von Komponentennamen"

Überschreibt die Standardkomponenteneinstellungen. Die Verwendung dieses Befehlszeilenparameters bewirkt, dass Setup automatisch einen benutzerdefinierten Typ auswählt. Wenn kein benutzerdefinierter Typ definiert ist, wird dieser Parameter ignoriert.

Nur die angegebenen Komponenten werden aktiviert; die übrigen werden deaktiviert.

Wenn einem Komponentennamen ein "*"-Zeichen vorangestellt ist, werden auch alle untergeordneten Komponenten ausgewählt (mit Ausnahme derjenigen, die das Flag dontinheritcheck enthalten). Wenn einem Komponentennamen ein "!"-Zeichen vorangestellt wird, wird die Komponente abgewählt.

Dieser Parameter ändert nicht den Zustand von Komponenten, die das Flag fixed enthalten.

Das Setup für den Client von Password Depot verwendet diese Komponenten:

- Main: Das Hauptprogramm "Password Depot"
- FileTools: Die Tools zum Verschlüsseln, Entschlüsseln und Schreddern vvon Dateien
- FileTools\ShellExt: Die Explorer-Integration
- IEAddOn: Das Add-on für den Internet Explorer
- FirefoxAddOn: Das Add-on für Firefox
- ChromeAddOn: Das Add-on für Chrome
- EdgeAddOn: Das Add-on für Edge Chromium
- VirtKbd: Die virtuelle Tastatur
 
Beispiel:
Alle Komponenten deselektieren, dann die Komponenten "Main" und "VirtKbd" auswählen
/COMPONENTS="Main,VirtKbd"
HINWEIS: Die im Password Depot-Client vorab integrierte virtuelle Tastatur kann grundsätzlich NICHT deaktiviert werden, da sie Teil des Programms ist. Daneben gibt es eine zweite virtuelle Tastatur, bei der es sich um eine eigenständige Anwendung handelt und mit der auch externe Anwendungen bedient werden können. Letztere kann über obige Komponente "VirtKbd" auf Wunsch deaktiviert werden. 
 
/TASKS="Komma getrennte Liste von Aufgabennamen"

Gibt eine Liste von Aufgaben an, die anfänglich ausgewählt werden sollen.

Nur die angegebenen Aufgaben werden ausgewählt; die übrigen werden abgewählt. Verwenden Sie stattdessen den Parameter /MERGETASKS, wenn Sie den Standardsatz von Aufgaben beibehalten und nur einige von ihnen auswählen/abwählen möchten.

Wenn einem Aufgabennamen ein "*"-Zeichen vorangestellt ist, werden auch alle untergeordneten Aufgaben ausgewählt (mit Ausnahme derjenigen, die das Flag dontinheritcheck enthalten). Wenn einem Aufgabennamen ein "!"-Zeichen vorangestellt ist, wird die Aufgabe abgewählt.

Das Setup für den Client von Password Depot verwendet diese Aufgaben:

- autostart: Password Depot immer automatisch mit Windows starten
- desktopicon: Ein Desktop-Icon erzeugen
- importold: Versuchen, eventuell vorliegende Konfigurationsdateien aus Vorgängerversionen zu übernehmen
- startAfterInstall: Nach der Installation Password Depot starten

Beispiel:
Deselektieren Sie alle Aufgaben und wählen Sie dann die Aufgaben "autostart" und "desktopicon":
/TASKS="desktopicon, autostart"

/KEY=

Schaltet den Client mit dem in der Befehlszeile angegebenen Lizenzschlüssel frei (gilt ab Version 16.0.5).
Beispiel: /KEY=XXXX-XXXX-XXXX-XXXX

 

Standard-Parameter des Inno-Setup Installers

Nachfolgend finden Sie eine Auflistung der Standard-Parameter des Inno-Setup Installers, wie Sie sie auch auf der offiziellen Website unter https://jrsoftware.org/ishelp/index.php?topic=setupcmdline vorfinden:

 

/HELP, /?

Shows a summary of this information. Ignored if the UseSetupLdr [Setup] section directive was set to no.

/SP-

Disables the This will install... Do you wish to continue? prompt at the beginning of Setup. Of course, this will have no effect if the DisableStartupPrompt [Setup] section directive was set to yes.

/SILENT, /VERYSILENT

Instructs Setup to be silent or very silent. When Setup is silent the wizard and the background window are not displayed but the installation progress window is. When a setup is very silent this installation progress window is not displayed. Everything else is normal so for example error messages during installation are displayed and the startup prompt is (if you haven't disabled it with DisableStartupPrompt or the '/SP-' command line option explained above).

If a restart is necessary and the '/NORESTART' command isn't used (see below) and Setup is silent, it will display a Reboot now? message box. If it's very silent it will reboot without asking.

/SUPPRESSMSGBOXES

Instructs Setup to suppress message boxes. Only has an effect when combined with '/SILENT' or '/VERYSILENT'.

The default response in situations where there's a choice is:

  • Yes in a 'Keep newer file?' situation.
  • No in a 'File exists, confirm overwrite.' situation.
  • Abort in Abort/Retry situations.
  • Cancel in Retry/Cancel situations.
  • Yes (=continue) in a DiskSpaceWarning/DirExists/DirDoesntExist/NoUninstallWarning/ExitSetupMessage/ConfirmUninstall situation.
  • Yes (=restart) in a FinishedRestartMessage/UninstalledAndNeedsRestart situation.
  • The recommended choice in a PrivilegesRequiredOverridesAllowed=dialog situation.

5 message boxes are not suppressible:

  • The About Setup message box.
  • The Exit Setup? message box.
  • The FileNotInDir2 message box displayed when Setup requires a new disk to be inserted and the disk was not found.
  • Any (error) message box displayed before Setup (or Uninstall) could read the command line parameters.
  • Any task dialog or message box displayed by [Code] support functions TaskDialogMsgBox and MsgBox.
/ALLUSERS

Instructs Setup to install in administrative install mode. Only has an effect when the [Setup] section directive PrivilegesRequiredOverridesAllowed allows the commandline override.

/CURRENTUSER

Instructs Setup to install in non administrative install mode. Only has an effect when the [Setup] section directive PrivilegesRequiredOverridesAllowed allows the commandline override.

/LOG

Causes Setup to create a log file in the user's TEMP directory detailing file installation and [Run] actions taken during the installation process. This can be a helpful debugging aid. For example, if you suspect a file isn't being replaced when you believe it should be (or vice versa), the log file will tell you if the file was really skipped, and why.

The log file is created with a unique name based on the current date. (It will not overwrite or append to existing files.)

The information contained in the log file is technical in nature and therefore not intended to be understandable by end users. Nor is it designed to be machine-parsable; the format of the file is subject to change without notice.

/LOG="filename"

Same as /LOG, except it allows you to specify a fixed path/filename to use for the log file. If a file with the specified name already exists it will be overwritten. If the file cannot be created, Setup will abort with an error message.

/NOCANCEL

Prevents the user from cancelling during the installation process, by disabling the Cancel button and ignoring clicks on the close button. Useful along with '/SILENT' or '/VERYSILENT'.

/NORESTART

Prevents Setup from restarting the system following a successful installation, or after a Preparing to Install failure that requests a restart. Typically used along with /SILENT or /VERYSILENT.

/RESTARTEXITCODE=exit code

Specifies a custom exit code that Setup is to return when the system needs to be restarted following a successful installation. (By default, 0 is returned in this case.) Typically used along with /NORESTART. See also: Setup Exit Codes

/CLOSEAPPLICATIONS

Instructs Setup to close applications using files that need to be updated by Setup if possible.

/NOCLOSEAPPLICATIONS

Prevents Setup from closing applications using files that need to be updated by Setup. If /CLOSEAPPLICATIONS was also used, this command line parameter is ignored.

/FORCECLOSEAPPLICATIONS

Instructs Setup to force close when closing applications.

/NOFORCECLOSEAPPLICATIONS

Prevents Setup from force closing when closing applications. If /FORCECLOSEAPPLICATIONS was also used, this command line parameter is ignored.

/RESTARTAPPLICATIONS

Instructs Setup to restart applications if possible. Only has an effect when combined with '/CLOSEAPPLICATIONS'.

/NORESTARTAPPLICATIONS

Prevents Setup from restarting applications. If /RESTARTAPPLICATIONS was also used, this command line parameter is ignored.

/LOADINF="filename"

Instructs Setup to load the settings from the specified file after having checked the command line. This file can be prepared using the '/SAVEINF=' command as explained below.

Don't forget to use quotes if the filename contains spaces.

/SAVEINF="filename"

Instructs Setup to save installation settings to the specified file.

Don't forget to use quotes if the filename contains spaces.

 

/DIR="x:\dirname"

Overrides the default directory name displayed on the Select Destination Location wizard page. A fully qualified pathname must be specified. May include an "expand:" prefix which instructs Setup to expand any constants in the name. For example: '/DIR=expand:{autopf}\My Program'.

/GROUP="folder name"

Overrides the default folder name displayed on the Select Start Menu Folder wizard page. May include an "expand:" prefix, see '/DIR='. If the [Setup] section directive DisableProgramGroupPage was set to yes, this command line parameter is ignored.

/NOICONS

Instructs Setup to initially check the Don't create a Start Menu folder check box on the Select Start Menu Folder wizard page.

/TYPE=type name

Overrides the default setup type.

If the specified type exists and isn't a custom type, then any /COMPONENTS parameter will be ignored.

 

/MERGETASKS="comma separated list of task names"

Like the /TASKS parameter, except the specified tasks will be merged with the set of tasks that would have otherwise been selected by default.

If UsePreviousTasks is set to yes, the specified tasks will be selected/deselected after any previous tasks are restored.

Example:
Keep the default set of selected tasks, but additionally select the "desktopicon" and "fileassoc" tasks:
/MERGETASKS="desktopicon,fileassoc"
Example:
Keep the default set of selected tasks, but deselect the "desktopicon" task:
/MERGETASKS="!desktopicon"
/PASSWORD=password

Specifies the password to use. If the [Setup] section directive Password was not set, this command line parameter is ignored.

When an invalid password is specified, this command line parameter is also ignored.

War dieser Beitrag hilfreich?
14 von 14 fanden dies hilfreich

Kommentare

2 Kommentare
  • Bitte ergänzen. Neuerungen im PSD 16.0.6. Ich denke das ist sehr hilfreich.
    Neuer Kommandozeilenparameter /KEY= für das Client-Installationsprogramm hinzugefügt, um einen Lizenzschlüssel auf dem Client-Computer zu installieren.

    0
  • Sehr geehrter Herr Gruber,

    vielen Dank den für den Hinweis und entschuldigen Sie bitte die verspätete Rückmeldung!

    Der FAQ-Artikel wurde nun entsprechend angepasst.

    Freundliche Grüße

    Dimitrios Varytimos

    - AceBIT Support-Team -

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.