This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
userspace:kms-activation [2014/06/10 20:55] mensch90 created |
userspace:kms-activation [2021/08/23 08:37] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== KMS-Activation without DNS-Flags====== | ||
| + | |||
| This script does an activation against an internal kms-server hosted on a client-installation of windows 7 and higher and server-installation. | This script does an activation against an internal kms-server hosted on a client-installation of windows 7 and higher and server-installation. | ||
| The advantage is the fact, that you don't need to modify your dns server to serve special records to all clients, maybe also the " | The advantage is the fact, that you don't need to modify your dns server to serve special records to all clients, maybe also the " | ||
| If u don't use an emailscript to get notified about errors please comment out the section in the error-handler. | If u don't use an emailscript to get notified about errors please comment out the section in the error-handler. | ||
| + | ==== setup.ins ==== | ||
| + | <code winst> | ||
| + | |||
| + | ; kms-activation | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | [Actions] | ||
| + | requiredWinstVersion >= " | ||
| + | |||
| + | ; Variablendefinition | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | ; statisch, nicht verändern | ||
| + | DefVar $errorcode$ | ||
| + | DefVar $logdir$ | ||
| + | DefVar $productid$ | ||
| + | DefVar $minimumspace$ | ||
| + | |||
| + | ; variabel, frei veränderbar | ||
| + | |||
| + | ; Variablenzuweisung | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | ; statisch, nur den Gegebenheiten anpassen | ||
| + | Set $logdir$ | ||
| + | Set $productid$ | ||
| + | Set $minimumspace$ | ||
| + | |||
| + | ; teilstatisch, | ||
| + | |||
| + | ; Skriptbeginn | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | ; Prüfung auf freien Speicher | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | if not(Hasminimumspace (" | ||
| + | | ||
| + | | ||
| + | ; Ablauf stoppen und Installationsstatus auf fehlerhaft setzen. | ||
| + | endif | ||
| + | |||
| + | ; Eigene Prozedurenaufrufe und Ablaufplanung | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | ; variabel, frei veränderbar | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | ; Skriptende | ||
| + | |||
| + | ; Subprozeduren | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | ; Installationsopener - statisch, nicht verändern | ||
| + | [Sub_preactions] | ||
| + | | ||
| + | | ||
| + | |||
| + | ; variabel, frei veränderbar | ||
| + | [Sub_activation] | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | [Sub_postactions] | ||
| + | | ||
| + | | ||
| + | |||
| + | ; Fehlerbehandlungsroutine - statisch, nicht verändern | ||
| + | [Sub_errorhandler] | ||
| + | Set $errorcode$ = getLastExitCode | ||
| + | if ($errorcode$ = " | ||
| + | Message " | ||
| + | else | ||
| + | Message " | ||
| + | Sub " | ||
| + | isFatalError | ||
| + | endif | ||
| + | |||
| + | ; Sektionen - variabel, frei veränderbar | ||
| + | ; ---------------------------------------------------------------- | ||
| + | |||
| + | [DosInAnIcon_activate] | ||
| + | REM KMS-Clientkey wird gesetzt... | ||
| + | " | ||
| + | REM KMS-Server wird gesetzt... | ||
| + | " | ||
| + | REM KMS-Aktivierungsanfrage wird gesendet... | ||
| + | " | ||
| + | |||
| + | |||
| + | </ | ||