Hallo zusammen,
ich habe da ein Problem mit dem Preloginloader 3.3.1, files zu kopieren und dann ausführen.
habe das Problem bei zwei Apps z.B "Ghostscript und IBN", bei denen sollte ich zuerst die Files lokal kopieren und dann lokal ausführen.
habe schon viele Variationen ausprobiert, ohne Erfolg.
beim Debuggen mit dem Winst auf nem XP, als Admin angemeldet, gibt es nie ein Problem,
nur wenn ich es mit dem Preloginloader beim hochfahren ausführen möchte.
Habe es schon mit nem Aufruf von einer batchdatei oder einem autoit script probiert auch keine chance.
habe das kopieren mit dem Pfad %SCRIPTPATH%\... oder direkt mit P:\install\... ausprobiert auch keine chance.
kann es sein das ich mit dem Preloginloader user keine schreibrechte im %ProgramFilesDir% hat oder es nicht sieht?
wahrscheinlich eher doch nicht.
Es steht immer im log, konnte nicht kopiert werden
oder die installer bringen Fehlermeldungen, dass die setup datei fehlt...
Könnte mir jemand ein Tip geben?
Viele Grüsse
Roman
copy und install files, mit Preloginloader 3.3.1
-
- Beiträge: 10
- Registriert: 09 Jun 2009, 15:29
- Wohnort: Zürich
Re: copy und install files, mit Preloginloader 3.3.1
Hallo Roman,
Gruß,
R.Röder
im Logfile steht doch auch der Grund, warum die Dateien nicht kopiert werden konnte. Poste das doch mal,rokoHumanBiosCH hat geschrieben:
Es steht immer im log, konnte nicht kopiert werden
oder die installer bringen Fehlermeldungen, dass die setup datei fehlt...
Gruß,
R.Röder
opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.
Wondering who's using opsi? Have a look at the opsi map: http://opsi.org/opsi-map/.
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.
Wondering who's using opsi? Have a look at the opsi map: http://opsi.org/opsi-map/.
-
- Beiträge: 10
- Registriert: 09 Jun 2009, 15:29
- Wohnort: Zürich
Re: copy und install files, mit Preloginloader 3.3.1
============ Version 4.8.4 WIN32 script "P:\install\ibn-portal-2\install.ins"
start: 2009-06-26 17:11:57 (on client named as : "testclient01.humanbios.local")
[executing: "C:\Program Files\opsi.org\preloginloader\utils\winst32.exe"]
system infos:
00:0C:29:41:05:98 - PC hardware address
testclient01.humanbios.local - IP name
192.168.212.55 - IP address
DES - System default locale
LogLevel set to 2
Set $ProductId$ = "IBN"
The value of the variable is now: "IBN"
Set $ProductDir$ ="C:\Program Files\Mediachase"
The value of the variable is now: "C:\Program Files\Mediachase"
Set $Productfile$ = "IBN"
The value of the variable is now: "IBN"
Set $MinimumSpace$ = "20 MB"
The value of the variable is now: "20 MB"
Set $InstallDir$="C:\Program Files\Mediachase\Instant Business Network\4.1\Client"
The value of the variable is now: "C:\Program Files\Mediachase\Instant Business Network\4.1\Client"
Set $NewExe$=$InstallDir$+"\"+$Productfile$+".exe"
The value of the variable is now: "C:\Program Files\Mediachase\Instant Business Network\4.1\Client\IBN.exe"
Set $TEMP$ = EnvVar("TEMP")
The value of the variable is now: "C:\WINDOWS\TEMP"
If
Free on Disk C:: 4'367'212'544 bytes This is more than the required amount of 20'000'000 bytes
HasMinimumSpace ("C:", $MinimumSpace$) <<< result true
not(HasMinimumSpace ("C:", $MinimumSpace$)) <<< result false
Then
Else
show product picture
If
Starting query if file exist ...
FileExists("P:\install\ibn-portal-2\delsub.ins") <<< result true
Then
start uninstall sub section
~~~~~~~ Start Sub ~~~~~~~ sub "P:\install\ibn-portal-2\delsub.ins"
start uninstall program if exists
If
Starting query if file exist ...
"C:\Program Files\Mediachase\Instant Business Network\4.1\Client\IBN.exe": File Error 2 (The system cannot find the file specified)
FileExists($InstallDir$+"\IBN.exe") <<< result false
Then
EndIf
If
Starting query if file exist ...
"C:\Program Files\Mediachase\Instant Business Network\4.1\Client\SETUP.MSI": File Error 2 (The system cannot find the file specified)
FileExists($InstallDir$+"\SETUP.MSI") <<< result false
Then
EndIf
delete files
Execution of Files_uninstall
Delete recursively "C:\Program Files\Mediachase\"
Search "C:\Program Files\Mediachase\"
Search "C:\Program Files\Mediachase\Instant Business Network\"
Search "C:\Program Files\Mediachase\Instant Business Network\4.1\"
Search "C:\Program Files\Mediachase\Instant Business Network\4.1\Client\"
Directory "C:\Program Files\Mediachase\Instant Business Network\4.1\Client" deleted
Directory "C:\Program Files\Mediachase\Instant Business Network\4.1" deleted
Directory "C:\Program Files\Mediachase\Instant Business Network" deleted
Directory "C:\Program Files\Mediachase" deleted
cleanup Registry
Warning: Section "Registry_uninstall" does not exist or is empty
clear start menu
Warning: Section "LinkFolder_uninstall" does not exist or is empty
Section ending since next line is starting with "["
~~~~~~~ End Sub ~~~~~~~ sub "P:\install\ibn-portal-2\delsub.ins"
EndIf
start setup program
Execution of Winbatch_install
Call ""P:\install\ibn-portal-2\AutoIt3.exe" "P:\install\ibn-portal-2\copy.au3""
Waiting until the called process is finished
ExitCode 0 Executed process ""P:\install\ibn-portal-2\AutoIt3.exe" "P:\install\ibn-portal-2\copy.au3""
Call "msiexec /qn /norestart /i "C:\Program Files\Mediachase\Instant Business Network\4.1\Client\SETUP.msi" /passive ALLUSERS=2"
Waiting until the called process is finished
ExitCode 1619 Executed process "msiexec /qn /norestart /i "C:\Program Files\Mediachase\Instant Business Network\4.1\Client\SETUP.msi" /passive ALLUSERS=2"
test for installation success via exit code
Set $ExitCode$ = getLastExitCode
The value of the variable is now: "1619"
If
$ExitCode$ = "0" <<< result false
not($ExitCode$ = "0") <<< result true
Then
Error: Fatal: Setup program gives exitcode unequal zero: 1619
Error level set to fatal
Else
EndIf
If
Starting query if file exist ...
"C:\Program Files\Mediachase\Instant Business Network\4.1\Client\IBN.exe": File Error 2 (The system cannot find the file specified)
FileExists($NewExe$) <<< result false
not(FileExists($NewExe$)) <<< result true
Then
EndIf
EndIf
Process stopped
___________________
1 error
2 warnings
Im Autoit Script steht nichts anderes drin wie:
$file01 = "SETUP.MSI"
$destination = @ProgramFilesDir & "\Mediachase\Instant Business Network\4.1\Client\"
If FileExists($destination & $file01) Then
DirRemove($destination, 1)
DirCreate($destination)
FileCopy($file01, $destination, 1)
Else
DirCreate($destination)
FileCopy($file01, $destination, 1)
EndIf
Exit
( Verzeichnisse wurden angelegt aber es konnte nichts kopiert werden lokal funktionierts, das selbe mit einer batch Datei)
wäre schön wenn mir jemand weiter helfen könnte
Merci Roman
start: 2009-06-26 17:11:57 (on client named as : "testclient01.humanbios.local")
[executing: "C:\Program Files\opsi.org\preloginloader\utils\winst32.exe"]
system infos:
00:0C:29:41:05:98 - PC hardware address
testclient01.humanbios.local - IP name
192.168.212.55 - IP address
DES - System default locale
LogLevel set to 2
Set $ProductId$ = "IBN"
The value of the variable is now: "IBN"
Set $ProductDir$ ="C:\Program Files\Mediachase"
The value of the variable is now: "C:\Program Files\Mediachase"
Set $Productfile$ = "IBN"
The value of the variable is now: "IBN"
Set $MinimumSpace$ = "20 MB"
The value of the variable is now: "20 MB"
Set $InstallDir$="C:\Program Files\Mediachase\Instant Business Network\4.1\Client"
The value of the variable is now: "C:\Program Files\Mediachase\Instant Business Network\4.1\Client"
Set $NewExe$=$InstallDir$+"\"+$Productfile$+".exe"
The value of the variable is now: "C:\Program Files\Mediachase\Instant Business Network\4.1\Client\IBN.exe"
Set $TEMP$ = EnvVar("TEMP")
The value of the variable is now: "C:\WINDOWS\TEMP"
If
Free on Disk C:: 4'367'212'544 bytes This is more than the required amount of 20'000'000 bytes
HasMinimumSpace ("C:", $MinimumSpace$) <<< result true
not(HasMinimumSpace ("C:", $MinimumSpace$)) <<< result false
Then
Else
show product picture
If
Starting query if file exist ...
FileExists("P:\install\ibn-portal-2\delsub.ins") <<< result true
Then
start uninstall sub section
~~~~~~~ Start Sub ~~~~~~~ sub "P:\install\ibn-portal-2\delsub.ins"
start uninstall program if exists
If
Starting query if file exist ...
"C:\Program Files\Mediachase\Instant Business Network\4.1\Client\IBN.exe": File Error 2 (The system cannot find the file specified)
FileExists($InstallDir$+"\IBN.exe") <<< result false
Then
EndIf
If
Starting query if file exist ...
"C:\Program Files\Mediachase\Instant Business Network\4.1\Client\SETUP.MSI": File Error 2 (The system cannot find the file specified)
FileExists($InstallDir$+"\SETUP.MSI") <<< result false
Then
EndIf
delete files
Execution of Files_uninstall
Delete recursively "C:\Program Files\Mediachase\"
Search "C:\Program Files\Mediachase\"
Search "C:\Program Files\Mediachase\Instant Business Network\"
Search "C:\Program Files\Mediachase\Instant Business Network\4.1\"
Search "C:\Program Files\Mediachase\Instant Business Network\4.1\Client\"
Directory "C:\Program Files\Mediachase\Instant Business Network\4.1\Client" deleted
Directory "C:\Program Files\Mediachase\Instant Business Network\4.1" deleted
Directory "C:\Program Files\Mediachase\Instant Business Network" deleted
Directory "C:\Program Files\Mediachase" deleted
cleanup Registry
Warning: Section "Registry_uninstall" does not exist or is empty
clear start menu
Warning: Section "LinkFolder_uninstall" does not exist or is empty
Section ending since next line is starting with "["
~~~~~~~ End Sub ~~~~~~~ sub "P:\install\ibn-portal-2\delsub.ins"
EndIf
start setup program
Execution of Winbatch_install
Call ""P:\install\ibn-portal-2\AutoIt3.exe" "P:\install\ibn-portal-2\copy.au3""
Waiting until the called process is finished
ExitCode 0 Executed process ""P:\install\ibn-portal-2\AutoIt3.exe" "P:\install\ibn-portal-2\copy.au3""
Call "msiexec /qn /norestart /i "C:\Program Files\Mediachase\Instant Business Network\4.1\Client\SETUP.msi" /passive ALLUSERS=2"
Waiting until the called process is finished
ExitCode 1619 Executed process "msiexec /qn /norestart /i "C:\Program Files\Mediachase\Instant Business Network\4.1\Client\SETUP.msi" /passive ALLUSERS=2"
test for installation success via exit code
Set $ExitCode$ = getLastExitCode
The value of the variable is now: "1619"
If
$ExitCode$ = "0" <<< result false
not($ExitCode$ = "0") <<< result true
Then
Error: Fatal: Setup program gives exitcode unequal zero: 1619
Error level set to fatal
Else
EndIf
If
Starting query if file exist ...
"C:\Program Files\Mediachase\Instant Business Network\4.1\Client\IBN.exe": File Error 2 (The system cannot find the file specified)
FileExists($NewExe$) <<< result false
not(FileExists($NewExe$)) <<< result true
Then
EndIf
EndIf
Process stopped
___________________
1 error
2 warnings
Im Autoit Script steht nichts anderes drin wie:
$file01 = "SETUP.MSI"
$destination = @ProgramFilesDir & "\Mediachase\Instant Business Network\4.1\Client\"
If FileExists($destination & $file01) Then
DirRemove($destination, 1)
DirCreate($destination)
FileCopy($file01, $destination, 1)
Else
DirCreate($destination)
FileCopy($file01, $destination, 1)
EndIf
Exit
( Verzeichnisse wurden angelegt aber es konnte nichts kopiert werden lokal funktionierts, das selbe mit einer batch Datei)
wäre schön wenn mir jemand weiter helfen könnte
Merci Roman
- Dateianhänge
-
- dpkg-l _ opsi-packetmanager -l .txt
- (4.34 KiB) 37-mal heruntergeladen
Re: copy und install files, mit Preloginloader 3.3.1
Hi,
dazu stellen sich mir folgende Fragen:
- warum wird vorher kopiert und die Installation nicht direkt von %ScriptPath% aufgerufen ?
- warum wird per autoit und nicht per Files Sektion kopiert (dann würde in der Log-Datei stehen was schief geht) ?
- Hinweis: es ist immer besser %ScriptPath% statt p:\install\xxxxx zu verwenden.
- Hinweis: Wahrscheinlich findet der autoit den quellpfad nicht:
$file01 = "%ScriptPath%\SETUP.MSI"
statt
$file01 = "SETUP.MSI"
aber siehe oben beim kopieren mit einer Files-Sektion wüsste man es.....
gruss
detlef oertel
dazu stellen sich mir folgende Fragen:
- warum wird vorher kopiert und die Installation nicht direkt von %ScriptPath% aufgerufen ?
- warum wird per autoit und nicht per Files Sektion kopiert (dann würde in der Log-Datei stehen was schief geht) ?
- Hinweis: es ist immer besser %ScriptPath% statt p:\install\xxxxx zu verwenden.
- Hinweis: Wahrscheinlich findet der autoit den quellpfad nicht:
$file01 = "%ScriptPath%\SETUP.MSI"
statt
$file01 = "SETUP.MSI"
aber siehe oben beim kopieren mit einer Files-Sektion wüsste man es.....
gruss
detlef oertel
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org