if FileExist --> mal ja, mal nein

Antworten
conquestador
Beiträge: 35
Registriert: 12 Nov 2015, 12:42

if FileExist --> mal ja, mal nein

Beitrag von conquestador »

Hallo Community,

ich habe da ein seltsames Phänomen:

Ich prüfe in den Scripten, ob das Installationsfile im Repositorie vorhanden ist (mehrere Repositorys, da mehrere Standorte).

Code: Alles auswählen

If FileExists ( $InstallFileDir$ + $InsallFile$ )
		WinBatch_install /WaitOnClose
		Sub "%ScriptPath%\exitcodesub.ins"
	Else
		Message "Fatal error: File not found: " + $InstallFileDir$ + $InsallFile$
		LogError "File not found: " + $InstallFileDir$ + $InsallFile$
		IsFatalError "File not found: " + $InstallFileDir$ + $InsallFile$
	EndIf
Funktioniert im Test tadellos.
Jetzt habe ich das in einer Gruppe 3 Produkte auf setup gesetzt.
Ergebnis:
bei einigen PCs Setup erfolgreich, bei einigen PCs fehlgeschlagen, weil FileExists false.
Seltsame geschichte.
Ich baue gerade um, dass ohne Abfrage installiert wird und anschließend geprüft wird, ob die .exe im "Programme-Ordner" liegt.
(Was grundsätzlich gut ist, da auch eine heutige "erfolgreiche" Installation zwar deinstalliert aber nanschl. nicht installiert hat)

Kennt das Problem jemand?
Hat irgendjemand eine Idee, woran das liegen könnte?

LG Tom
Antworten