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