Microsoft SQL Server 2005 Setup via Package Robot

Moderator: MVogt

Post Reply
User avatar
Theo_Gottwald
Posts: 367
Joined: 03. Oct 2009, 08:57
Location: Herrenstr.11 * 76706 Dettenheim
Contact:

Microsoft SQL Server 2005 Setup via Package Robot

Post by Theo_Gottwald » 04. Jan 2010, 15:48

Der MS SQL Server 2005 ist ein Paket das man üblicherweise wohl als MSI verteilen wird.

Trotzdem kann man es auch mit dem MPR paketieren. Wer das bisher probiert hat, stellt dann fest, dass der bisherige InstaRec 4.3 bei Office-Button nicht aufgezeichnet hat.

Man mußte also hier die gelbe Liste nehmen um ein paar der Buttons aufzuzeichnen. Was aber auch bisher kein Problem war, wenn man sich mit dem System auskennt.

Mit dem brandneuen InstaRec 5 den es bald in einem Update geben wird, hatte ich Gelegenheit es nun nochmals zu versuchen.

Das Resultat ist ein Script, das man wie gewohnt mit dem InstaRec aufzeichnet und das ohne jede Änderung sofort funktioniert. Wie man das auch bisher mit dem InstaRec gewohnt ist.

Auch Klicks in Office-Programmen und im IE zeichnet der InstaRec 5 nun auf, ob gleich das auch in Zukunft wohl nicht seine Hauptaufgabe sein wird.

Darüber hinaus findet man viele weitere Goodies besonderes für Windows 7/x64 in dem angekündigten Update.

In diesem Post sind nun erstmal die Scripte die ich mit dem InstaRec 5 aufgezeichnet habe.

Eine Anmerkung zur Deinstallation.
Bei mir beendet die Deinstallation die zugehörigen Dienste nicht von selbst. Da man diese aber vor einer Deinstallation anhalten muß,
habe ich hier manuell drei SVC\ (ServiceCommand) eingefügt, um vor der Installation die Dienste anzuhalten.

Das sieht so aus:

Code: Select all

SVC\2|MSSQL$SQLEXPRESS|4
SVC\2|SQLBrowser|4
SVC\2|SQLWriter|4
Details dazu gibt es beim SVC\-Command in der MPR Hilfe.

Alo hier zunächst die Installation:

Code: Select all

' +++ Install_SQLEXPR_DEU.rem +++
' Zweck: 
' erstellt am: 04.01.2010
' von: Theo
'========================
'#SPI:ForceWrite
'#EXE:?path
'#INC:vbrun
'#SPI:NoAuto
'#FDC:Ask

'USM\3 ' Uncomment this command to use silent mode with redirected error messages to error files.
' 
' ***** Package Robots Version 8.5 *****
' ***** instaRec iEngine Ver.5.0 ******
' 
' You can change these variables which are used inside the script.
VAR\$$000=Windows-Benutzer
' 
' No.:1 | Time: 13:07:34 | Ticks:  0
'USM\1 ' Uncomment this command to use silent mode (no error messages from Robot).
VAR\$$PRO=1
' Please change '$ev4$' to '?pfad' if you have included the Setup within the EXE-File.
VAR\$$PFA=$ev4$

EXE\$$PFA\SQLEXPR_DEU.EXE

' No.:2 | Time: 13:08:07 | Ticks:  630
VAR\$$PRO=2
STW\#32770\Setup für Microsoft SQL Server 2005|w50 ' #32770\Setup für Microsoft SQL Server 2005
SWC\Button\Ich stimme den Bestimmungen des Lizenzvertr&ags zu.|w50 ' Ebene: 1 Text: "Ich stimme den Bestimmungen des Lizenzvertr&ags zu."
WII\5
' OPR\100,11
BTC\1
BTC\1

' No.:3 | Time: 13:08:08 | Ticks:  652
VAR\$$PRO=3
STW\#32770\Setup für Microsoft SQL Server 2005|w45 ' #32770\Setup für Microsoft SQL Server 2005
GCW\1001\1\Button\&Weiter|w45' &Weiter
WII\1
SAW\
BCS\1||240

' No.:4 | Time: 13:08:48 | Ticks:  1912
' The following statics have been found: 
'  1. Static\Installationsvoraussetzungen
'  2. Static\Installiert Softwarekomponenten, die vor der Installation von SQ
VAR\$$PRO=4
STW\#32770\Setup für Microsoft SQL Server 2005|w100 ' #32770\Setup für Microsoft SQL Server 2005
' This command is used between equal buttons to prevent problems.
SPC\Static\Installiert Softwarekomponenten, die vor der Installation von SQ|w100
TDL\40
GCW\1001\1\Button\&Weiter|w100' &Weiter
WII\5
SAW\
BCS\1||240

' No.:5 | Time: 13:09:17 | Ticks:  2780
VAR\$$PRO=5
STW\WindowsForms10.Window.8.app.0.378734a\Microsoft SQL Server 2005 Setup|w69 ' WindowsForms10.Window.8.app.0.378734a\Microsoft SQL Server 2005 Setup
SWP\771,431|501,453
GCW\\1\WindowsForms10.BUTTON.app.0.378734a\&Next|w69' &Next
WII\5
SAW\
AGR\43\Next >\{&NOTEXT:}
MEL\

' No.:6 | Time: 13:09:25 | Ticks:  2986
VAR\$$PRO=6
STW\WindowsForms10.Window.8.app.0.378734a\Microsoft SQL Server 2005 Setup|w45 ' WindowsForms10.Window.8.app.0.378734a\Microsoft SQL Server 2005 Setup
SWP\771,431|501,453
GCW\\8\WindowsForms10.BUTTON.app.0.378734a\&Report|w45' &Report
WII\5
SAW\
AGR\43\Report\{&NOTEXT:}
MEL\

' No.:7 | Time: 13:09:26 | Ticks:  3019
VAR\$$PRO=7
GTW\#32768\|w45 ' #32768\
'SWP\1148,821|225,94
AGR\12\View Report\{&NOTEXT:}
MLI\!

' No.:8 | Time: 13:09:32 | Ticks:  3051
VAR\$$PRO=8
STW\WindowsForms10.Window.8.app.0.378734a\View Report|w45 ' WindowsForms10.Window.8.app.0.378734a\View Report
WII\1
CLW\1

' No.:9 | Time: 13:09:34 | Ticks:  3096
VAR\$$PRO=9
STW\WindowsForms10.Window.8.app.0.378734a\Microsoft SQL Server 2005 Setup|w45 ' WindowsForms10.Window.8.app.0.378734a\Microsoft SQL Server 2005 Setup
SWP\771,431|501,453
SWC\WindowsForms10.BUTTON.app.0.378734a\&Next|w45 ' Ebene: 1 Text: "&Next >"
WII\2
AGR\43\Next >\{&NOTEXT:}
MEL\

' No.:10 | Time: 13:09:47 | Ticks:  3479
VAR\$$PRO=10
STW\MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition|w45 ' MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition
SWP\779,435|486,445
GCW\3706\1\RichEdit20W\*|w45' Windows-Benutzer
WII\5
SAW\
RST\$$000|0,-1


' No.:11 | Time: 13:09:52 | Ticks:  3614
VAR\$$PRO=11
STW\MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition|w45 ' MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition
GCW\1753\1\Button\&Weiter|w45' &Weiter
WII\5
SAW\
BCS\1||240

' No.:12 | Time: 13:09:55 | Ticks:  3674
VAR\$$PRO=12
STW\MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition|w45 ' MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition
GCW\2032\1\SysTreeView32\|w45'
WII\30
SAW\
SMH\#4
TVI\Clientkomponenten|i
WII\30

' No.:13 | Time: 13:09:57 | Ticks:  3723
VAR\$$PRO=13
STW\MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition|w45 ' MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition
GCW\2032\1\SysTreeView32\|w45'
WII\2
SAW\
TVI\Datenbankdienste|e
MEL\

' No.:14 | Time: 13:09:58 | Ticks:  3754
VAR\$$PRO=14
STW\MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition|w45 ' MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition
GCW\2032\1\SysTreeView32\|w45'
WII\30
SAW\
SMH\#4
TVI\Datenbankdienste\Replikation|i
WII\30

' No.:15 | Time: 13:10:09 | Ticks:  4070
VAR\$$PRO=15
STW\MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition|w45 ' MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition
GCW\1753\1\Button\&Weiter|w45' &Weiter
WII\5
SAW\
BCS\1||240

' No.:16 | Time: 13:10:12 | Ticks:  4156
' The following statics have been found: 
'  1. Static\K&ennwort eingeben:
'  2. Static\&Kennwort bestätigen:
'  3. Static\DialogBanner
'  4. Static\Der Authentifizierungsmodus gibt die Sicherheit an, die beim Her
'  5. Static\Wählen Sie den Authentifizierungsmodus für diese Installation au
VAR\$$PRO=16
STW\MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition|w45 ' MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition
' This command is used between equal buttons to prevent problems.
SPC\Static\Der Authentifizierungsmodus gibt die Sicherheit an, die beim Her|w45
TDL\40
GCW\1753\1\Button\&Weiter|w45' &Weiter
WII\3
SAW\
BCS\1||240

' No.:17 | Time: 13:10:13 | Ticks:  4180
' The following statics have been found: 
'  1. Static\DialogBanner
'  2. Static\Benutzer- und Administratorkonten konfigurieren
'  3. Static\Konfigurationsoptionen
'  4. Static\Mithilfe dieser Option können Benutzer ohne Administratorberecht
'  5. Static\Mithilfe dieser Option wird der Benutzer, der das Installationsp
VAR\$$PRO=17
STW\MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition|w45 ' MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition
' This command is used between equal buttons to prevent problems.
SPC\Static\Mithilfe dieser Option wird der Benutzer, der das Installationsp|w45
TDL\40
GCW\1753\1\Button\&Weiter|w45' &Weiter
WII\1
SAW\
BCS\1||240

' No.:18 | Time: 13:10:14 | Ticks:  4202
' The following statics have been found: 
'  1. Static\DialogBanner
'  2. Static\Helfen Sie Microsoft beim Verbessern einiger SQL Server 2005-Kom
'  3. Static\Einstellungen für Fehler- und Verwendungsberichte
'  4. Static\Durch Installieren von Microsoft SQL Server 2005 werden SQL Serv
VAR\$$PRO=18
STW\MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition|w45 ' MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition
' This command is used between equal buttons to prevent problems.
SPC\Static\Durch Installieren von Microsoft SQL Server 2005 werden SQL Serv|w45
TDL\40
GCW\1753\1\Button\&Weiter|w45' &Weiter
WII\1
SAW\
BCS\1||240

' No.:19 | Time: 13:10:15 | Ticks:  4236
VAR\$$PRO=19
STW\MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition|w45 ' MsiDialogCloseClass\Setup für Microsoft SQL Server 2005 Express Edition
GCW\1077\1\Button\&Installieren|w45' &Installieren
WII\1
SAW\
BCS\1||240

' No.:20 | Time: 13:14:43 | Ticks:  12717
VAR\$$PRO=20
STW\#32770\Microsoft SQL Server 2005 Setup|w678 ' #32770\Microsoft SQL Server 2005 Setup
SWC\Button\&Next|w678 ' Ebene: 1 Text: "&Next >>"
WII\5
BSC\1||240

' No.:21 | Time: 13:14:47 | Ticks:  12804
VAR\$$PRO=21
STW\#32770\Microsoft SQL Server 2005 Setup|w45 ' #32770\Microsoft SQL Server 2005 Setup
GCW\1000\1\Button\&Finish|w45' &Finish
WII\3
SAW\
BCS\1||240

' No.:22 | Time: 13:14:48 | Ticks:  12839
VAR\$$PRO=22
SRV\0 ' This command will set the return code.
END\

:Always
SRV\$$PRO' If this command is executed an error has happened
' and the return code from the script will be the block number of the last block.
END\
Und hier auch gleich die Deinstallation:

Code: Select all

' +++ Uninstall_SQLEXPR_DEU.rem +++
' Zweck: 
' erstellt am: 04.01.2010
' von: Theo
'========================
'#SPI:ForceWrite
'#EXE:?path
'#INC:vbrun
'#SPI:NoAuto
'#FDC:Ask

'USM\3 ' Uncomment this command to use silent mode with redirected error messages to error files.
' 
' ***** Package Robots Version 8.5 *****
' ***** instaRec iEngine Ver.5.0 ******
' 
' No.:1 | Time: 13:15:32 | Ticks:  0
'USM\1 ' Uncomment this command to use silent mode (no error messages from Robot).

SVC\2|MSSQL$SQLEXPRESS|4
SVC\2|SQLBrowser|4
SVC\2|SQLWriter|4

VAR\$$PRO=1
' Please choose the Line that suits best to your needs.
' EXU\Microsoft SQL Server 2005 |u
EXS\"?progs\Microsoft$SP$SQL$SP$Server\90\Setup$SP$Bootstrap\ARPWrapper.exe"$SP$/Remove

' No.:2 | Time: 13:15:36 | Ticks:  100
VAR\$$PRO=2
STW\#32770\Microsoft SQL Server 2005 Uninstall|w45 ' #32770\Microsoft SQL Server 2005 Uninstall
GCW\1007\2\SysTreeView32\|w45'
WII\4
SAW\
TVI\SQLEXPRESS: Database Engine|e
MEL\

' No.:3 | Time: 13:15:48 | Ticks:  405
VAR\$$PRO=3
STW\#32770\Microsoft SQL Server 2005 Uninstall|w45 ' #32770\Microsoft SQL Server 2005 Uninstall
GCW\1016\2\Button\Remove SQL Server 2005 instance components|w45' Remove SQL Server 2005 instance components
WII\5
SAW\
' OPR\7,3
BTC\0
BTC\0

' No.:4 | Time: 13:15:48 | Ticks:  425
VAR\$$PRO=4
STW\#32770\Microsoft SQL Server 2005 Uninstall|w45 ' #32770\Microsoft SQL Server 2005 Uninstall
GCW\1016\2\Button\Remove SQL Server 2005 instance components|w45' Remove SQL Server 2005 instance components
WII\1
SAW\
' OPR\7,3
BTC\1
BTC\1

' No.:5 | Time: 13:15:49 | Ticks:  448
VAR\$$PRO=5
STW\#32770\Microsoft SQL Server 2005 Uninstall|w45 ' #32770\Microsoft SQL Server 2005 Uninstall
GCW\1007\2\SysTreeView32\|w45'
WII\1
SAW\
TVI\SQLEXPRESS: Database Engine|e
MEL\

' No.:6 | Time: 13:15:51 | Ticks:  482
VAR\$$PRO=6
STW\#32770\Microsoft SQL Server 2005 Uninstall|w45 ' #32770\Microsoft SQL Server 2005 Uninstall
GCW\12324\1\Button\&Next|w45' &Next
WII\1
SAW\
BSC\1||240

' No.:7 | Time: 13:15:53 | Ticks:  544
VAR\$$PRO=7
STW\#32770\Microsoft SQL Server 2005 Uninstall|w45 ' #32770\Microsoft SQL Server 2005 Uninstall
GCW\12325\1\Button\Finish|w45' Finish
WII\3
SAW\
BCS\1||240

' No.:8 | Time: 13:20:16 | Ticks:  6709
VAR\$$PRO=8
SRV\0 ' This command will set the return code.
END\

:Always
SRV\$$PRO' If this command is executed an error has happened
' and the return code from the script will be the block number of the last block.
END\
Es gibt hierzu nun auch eine Videoserie auf YouTube, die einen Mitschnitt zeigt. Siehe hier:
Matrix42 Package Robot Videos auf YouTube.
Attachments
Install_SQLEXPR_DEU.rem
MPR Script-Installation MS SQL Server 2005.
(7.96 KiB) Downloaded 170 times
Uninstall_SQLEXPR_DEU.rem
MPR Script-DeInstallation MS SQL Server 2005.
(2.48 KiB) Downloaded 171 times

Post Reply

Return to “Package Robot”

Who is online

Users browsing this forum: No registered users and 2 guests