Seite 1 von 1

Winst Produkt auf failed setzen

Verfasst: 22 Jul 2009, 11:45
von mr.quickly
Hallo zusammen,

ich möchte bei der Installation von UltraVNC abfragen ob das Programmverzeichnis bereits existiert und wenn ja die Installation abbrechen. Leider wird das Paket im Webinteface nicht auf failed gesetzt sondern auf installed.

Was mache ich flasch?

Hier der Code des Install Scripts:

Code: Alles auswählen

[Initial]
Message=Installiere UltraVNC ......
LogLevel=2
ExitOnError=false
ScriptErrorMessages=on
TraceMode=off
StayOnTop=false

DefVar $ALLUSERSPROFILE$
Set $ALLUSERSPROFILE$ = EnvVar("ALLUSERSPROFILE")

[Aktionen]
ShowBitmap /3 "%scriptpath%\ultravnc.bmp"

if not(FileExists("%ProgramFilesDir%\UltraVNC\winvnc.exe"))

	if not (HasMinimumSpace("%Systemdrive%","10MB"))
			LogError "Nicht genuegend Platz auf %Systemdrive%"
	else
			WinbatchSetup
			
	endif
	
else

	Stop = Das Programm scheint schon installiert zu sein.
	LogError "Programm scheint schon installiert zu sein."

endif

WinbatchSetup]
	%scriptpath%\ultravnc_setup.exe /loadinf="%scriptpath%\setup_parameters.inf" /silent /nocancel /norestart

Re: Winst Produkt auf failed setzen

Verfasst: 22 Jul 2009, 12:49
von mr.quickly
Habe den Fehler gefunden man muss es so machen:

Code: Alles auswählen

LogError "Programm scheint schon installiert zu sein."
isFatalError