Silent-Installation des MPR selbst und seine REG-Keys

Moderator: MVogt

Antworten
Benutzeravatar
Theo_Gottwald
Beiträge: 296
Registriert: 03. Okt 2009, 08:57
Wohnort: Herrenstr.11 * 76706 Dettenheim
Kontaktdaten:

Silent-Installation des MPR selbst und seine REG-Keys

Beitrag von Theo_Gottwald » 10. Aug 2010, 09:43

Eine Supportanfrage betraf heute den MPR selbst.

"Wir wollen den MPR an unsere Paketierer verteilen und ein default Template sowie eigene Einstellungen verteilen,
Wie können wir es hinbekommen dass trotzdem der EInstellungen-Dialog einmalig aufpoppt.
Damit der jeweilige Paketierer seinen Namen eingeben kann?"

Die Verteilung kann ja beim MPR Setup selbst "Silent" erfolgen, mit den üblichen Parametern für das Inno-Setup, siehe unten. Danach schickt man eine ".reg"-File mit den gewünschen Settings. Man kann dann auch noch Einträge in der "Settings.ini" anpassen, hierfür verwendet man am einfachsten gleich den MPR selbst.

Aber nun zu der Einstellungen Maske und zu den REG-Keys. Unbedingt beachten:
Unter Windows 7 muß das UAC auf der Aufzeichnungsmaschine ausgeschaltet sein!
Auf den Clients jedoch nicht!

Da die Scripte auf den Clients vom Empirum mit Systemrechten gestartet werden, spielt auf der Client Seite das UAC keine Rolle. Aber da wo man aufzeichnet muß es ausgeschaltet sein, sonst gibt es jede Menge undefinierbarer Fehler.

Das geht alles via REG-Keys. Hier mal die wichtigsten:

Code: Alles auswählen

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Delphin Software\Remedit]
"InstallDir"="c:\\program files (x86)\\matrix42\\package robot\\"
' Hier liegt das Template
"Template"="C:\\Program Files (x86)\\Matrix42\\Package Robot\\Remfiles\\Templates\\"
' Das ist das Projektverzeichnis
"Project"="C:\\Local\\MPR"
' Das hier ist der Key der anzeigt ob die Einstellungen Maske schon ausgefüllt worden ist.
"StartCount"=dword:0000004e
' Dieser Key gibt an, ob bei der Patternsuch die Bildschirmlupe verwendet werden soll.
"UseMag"="-1"
Inno-Setup-Parameter für die Silent-Installation des MPR.

Code: Alles auswählen

The Setup program accepts optional command line parameters. These can be useful to system administrators, and to other programs calling the Setup program.

/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' and '/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/ExitSetupMessag
e/ConfirmUninstall situation. 
Yes (=restart) in a FinishedRestartMessage/UninstalledAndNeedsRestart
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 message box displayed by [Code] support function MsgBox. 
/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-parseable; 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
Instructs Setup not to reboot even if it's necessary.

/RESTARTEXITCODE=exit code
Specifies the custom exit code that Setup is to return when a restart is needed. Useful along with '/NORESTART'. Also see Setup Exit Codes.

/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.

/LANG=language
Specifies the language to use. language specifies the internal name of the language as specified in a [Languages] section entry.

When a valid /LANG parameter is used, the Select Language dialog will be suppressed.

/DIR="x:\dirname" 
Overrides the default directory name displayed on the Select Destination Location wizard page. A fully qualified pathname must be specified.

/GROUP="folder name" 
Overrides the default folder name displayed on the Select Start Menu Folder wizard page. 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.

/COMPONENTS="comma separated list of component names" 
Overrides the default components settings. Using this command line parameter causes Setup to automatically select a custom type.

/TASKS="comma separated list of task names" 
Specifies a list of tasks that should be initially selected or deselected.
To deselect a task, prefix its name with a "!" character.

Only the specified tasks (and their children) will be selected; the rest will be deselected. Use the /MERGETASKS parameter instead if you want to keep the default set of tasks and only select/deselect some of them.

Example:
Deselect all tasks, then select the "desktopicon" and "fileassoc" tasks:
/TASKS="desktopicon,fileassoc" 
Example:
Deselect all tasks, then select a parent task item, but exclude one of its
children:
/TASKS="parent,!parent\child" 
/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.

Benutzeravatar
Theo_Gottwald
Beiträge: 296
Registriert: 03. Okt 2009, 08:57
Wohnort: Herrenstr.11 * 76706 Dettenheim
Kontaktdaten:

Re: Silent-Installation des MPR selbst und seine REG-Keys

Beitrag von Theo_Gottwald » 15. Aug 2017, 11:10

Das sollte mal wieder gesagt werden.

Antworten

Zurück zu „Package Robot“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast