Beispiel 64-bit Setup/Win 7: Smart FTP

Moderator: MVogt

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

Beispiel 64-bit Setup/Win 7: Smart FTP

Post by Theo_Gottwald » 04. Jan 2010, 17:08

Wir sind hier wieder unter Windows 7/x64. Wie Tests zeigen haben immernoch die meisten Programme, auch 64-bit Programme Ihren alten 32-bit Installer .

Ein Beispiel für ein 64-bit Programm mit einem 64-bit Installer ist das Smart-FTP von Smart Soft Ltd.. Wie smart der Installer dabei ist, sollte man diskutieren, denn der Installer schliesst bei der Deinstallation auch schon mal den Explorer als "benötigtes File das in Verwendung ist".

Wir haben daher optionale Fenster, die keine PopUps sind und verwenden so die Kombination aus IWF\5 und GAC\ um das Problem zu lösen.

Ausserdem hinterläßt das Setup einen weiteren Eintrag in der Systemsteuerung, den wir mit einer Extrazeile EXS\ ganz unten entfernen. Dieses wurde ebenso mit dem UnInstaRec aufgezeichnet und dann hier hineinkopiert.

Der Rest ist einfach mit dem InstaRec 5 aufgezeichnet. Bitte nicht mit dem aktuellen InstaRec 4.3 versuchen, der kennt 64 bit Setups noch nicht!

Das Setup zeigt auch das "customizing" unter x64. Wie üblich kann auch dieses einfach mit dem InstaRec oder mit der gelben Liste aufgezeichnet werden.

Für den Anwender sind 32- oder 64-bit Setups zumeist völlig transparent.

Der einzige Hinweis, dass es sich wohl um 64-bit Software unter dem Mauszeiger handelt, ist der im InstaRec 5.
Wenn der Mauszeiger auf eine ebensolche Anwendung fährt leuchtet ein gelbes "x64" auf.

Code: Select all

' +++ Install_SFTPMSI.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=C:\Program$SP$Files\SmartFTP$SP$Client\
' 
' No.:1 | Time: 16:27:14 | 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\SFTPMSI.exe

' No.:2 | Time: 16:27:19 | Ticks:  102
VAR\$$PRO=2
STW\MsiDialogCloseClass\SmartFTP Client Setup|w45 ' MsiDialogCloseClass\SmartFTP Client Setup
GCW\1002\1\Button\&Next|w45' &Next
WII\4
SAW\
BCS\1||240

' No.:3 | Time: 16:27:20 | Ticks:  135
VAR\$$PRO=3
STW\MsiDialogCloseClass\SmartFTP Client License Agreement|w45 ' MsiDialogCloseClass\SmartFTP Client License Agreement
GCW\1083\2\Button\I &accept the terms in the License Agreement|w45' I &accept the terms in the License Agreement
WII\1
SAW\
' OPR\114,5
BTC\1
BTC\1

' No.:4 | Time: 16:27:21 | Ticks:  164
VAR\$$PRO=4
STW\MsiDialogCloseClass\SmartFTP Client License Agreement|w45 ' MsiDialogCloseClass\SmartFTP Client License Agreement
GCW\1002\1\Button\&Next|w45' &Next
WII\2
SAW\
BCS\1||240

' No.:5 | Time: 16:27:23 | Ticks:  191
VAR\$$PRO=5
STW\MsiDialogCloseClass\SmartFTP Client Setup|w45 ' MsiDialogCloseClass\SmartFTP Client Setup
GCW\1187\1\Button\Custom Installation|w45' Custom Installation
WII\1
SAW\
BCS\1||240

' No.:6 | Time: 16:27:24 | Ticks:  228
VAR\$$PRO=6
STW\MsiDialogCloseClass\SmartFTP Client Setup|w45 ' MsiDialogCloseClass\SmartFTP Client Setup
GCW\1088\1\SysTreeView32\Tree of selections|w45' Tree of selections
WII\30
SAW\
SMH\#9|6
TVI\Add Ons|i
WII\30

' No.:7 | Time: 16:27:27 | Ticks:  310
VAR\$$PRO=7
STW\MsiDialogCloseClass\SmartFTP Client Setup|w45 ' MsiDialogCloseClass\SmartFTP Client Setup
GCW\1088\1\SysTreeView32\Tree of selections|w45' Tree of selections
WII\30
SAW\
SMH\#1|1
TVI\SmartFTP Client|i
WII\30

' No.:8 | Time: 16:27:31 | Ticks:  390
VAR\$$PRO=8
STW\MsiDialogCloseClass\SmartFTP Client Setup|w45 ' MsiDialogCloseClass\SmartFTP Client Setup
GCW\1062\1\Button\Br&owse|w45' Br&owse
WII\4
SAW\
MEL\

' No.:9 | Time: 16:27:33 | Ticks:  432
VAR\$$PRO=9
STW\MsiDialogCloseClass\SmartFTP Client Setup|w45 ' MsiDialogCloseClass\SmartFTP Client Setup
SWP\577,362|499,388
GCW\1048\1\RichEdit20W\*|w45' C:
WII\1
SAW\
RST\$$000|0,-1


' No.:10 | Time: 16:27:34 | Ticks:  450
VAR\$$PRO=10
STW\MsiDialogCloseClass\SmartFTP Client Setup|w45 ' MsiDialogCloseClass\SmartFTP Client Setup
GCW\873\1\Button\OK|w45' OK
WII\1
SAW\
BCS\1||240

' No.:11 | Time: 16:27:36 | Ticks:  479
VAR\$$PRO=11
STW\MsiDialogCloseClass\SmartFTP Client Setup|w45 ' MsiDialogCloseClass\SmartFTP Client Setup
GCW\1002\1\Button\&Next|w45' &Next
WII\1
SAW\
BCS\1||240

' No.:12 | Time: 16:27:37 | Ticks:  526
VAR\$$PRO=12
STW\MsiDialogCloseClass\SmartFTP Client Setup|w45 ' MsiDialogCloseClass\SmartFTP Client Setup
GCW\1169\1\Button\&Install|w45' &Install
WII\2
SAW\
BCS\1||240

' No.:13 | Time: 16:28:51 | Ticks:  2862
VAR\$$PRO=13
STW\MsiDialogCloseClass\SmartFTP Client Setup|w186 ' MsiDialogCloseClass\SmartFTP Client Setup
SWC\Button\notext|w186 ' Ebene: 1 Text:notext
WII\5
' OPR\9,11
BTC\0
BTC\0

' No.:14 | Time: 16:28:53 | Ticks:  2892
VAR\$$PRO=14
STW\MsiDialogCloseClass\SmartFTP Client Setup|w45 ' MsiDialogCloseClass\SmartFTP Client Setup
GCW\1008\1\Button\&Finish|w45' &Finish
WII\2
SAW\
BCS\1||240

' No.:15 | Time: 16:28:54 | Ticks:  2936
VAR\$$PRO=15
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 die Deinstallation:

Code: Select all

' +++ Main_Uninstall SFTP.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:50:48 | Ticks:  0
'USM\1 ' Uncomment this command to use silent mode (no error messages from Robot).

VAR\$$^01=msidialogcloseclass\installer information\ok\the setup was unable to automa
WBC\$$^01

VAR\$$PRO=1
' Please choose the Line that suits best to your needs.
' EXU\SmartFTP Client 3.0.1023.4|u
EXS\MsiExec.exe$SP$/I{E533CFC9-6596-4C4B-8DC7-682247FB2D23}

' No.:2 | Time: 13:50:54 | Ticks:  149
VAR\$$PRO=2
STW\MsiDialogCloseClass\SmartFTP Client Setup|w45 ' MsiDialogCloseClass\SmartFTP Client Setup
GCW\1002\1\Button\&Next|w45' &Next
WII\5
SAW\
BCS\1||240

' No.:3 | Time: 13:50:57 | Ticks:  247
VAR\$$PRO=3
STW\MsiDialogCloseClass\SmartFTP Client Setup|w45 ' MsiDialogCloseClass\SmartFTP Client Setup
SWC\Button\Remove Installation|w45 ' Ebene: 1 Text: "Remove Installation"
WII\4
BCS\1||240

' No.:4 | Time: 13:51:02 | Ticks:  414
VAR\$$PRO=4
STW\MsiDialogCloseClass\SmartFTP Client Setup|w45 ' MsiDialogCloseClass\SmartFTP Client Setup
GCW\632\1\Button\&Remove|w45' &Remove
WII\5
SAW\
BCS\1||240

IWF\5
   GAC\\1\static\files in use|w129
   STW\msidialogcloseclass\smartftp client setup|w69
   GCW\\2\button\automatically &close applications and attempt to restart them after setup is complete|w69
   BTC\1
   STW\msidialogcloseclass\smartftp client setup|w30
   GCW\\1\button\ok|w30
   MEL\
EWF\

' No.:5 | Time: 13:51:26 | Ticks:  1094
VAR\$$PRO=5
STW\MsiDialogCloseClass\SmartFTP Client Setup|w54 ' MsiDialogCloseClass\SmartFTP Client Setup
SWC\Button\&Finish|w54 ' Ebene: 1 Text: "&Finish"
WII\5
BCS\1||240

' Das hier löscht noch einen Eintrag den das normale Uninstall nicht löscht.
EXS\?progs\SmartFTP$SP$Client$SP$3.0$SP$(x64)$SP$Setup$SP$Files\uninst-sftp.exe

' No.:6 | Time: 13:51:30 | Ticks:  1188
VAR\$$PRO=6
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\
Attachments
Uninstall SFTP.rem
MPR Script SFTP-Deinstallation
(2.34 KiB) Downloaded 185 times
Install_SFTPMSI.rem
MPR Script SFTP-Installation
(4.03 KiB) Downloaded 181 times

Post Reply

Return to “Package Robot”

Who is online

Users browsing this forum: No registered users and 2 guests