[Initial]
Message=Installiere Axure RP 10...
DefVar $Arch$
DefVar $ExitCode$
DefVar $Version$

[Aktionen]
ShowBitmap "%ScriptPath%\logo.png" "Axure RP 10"
WinBatch_Setup
Files_CopyLicense
Sub_HandleExitCode

[WinBatch_Setup]
"%ScriptPath%\data\AxureRP-Setup.exe" /passive InstallLocation="%ProgramFiles64Dir%\Axure\RP10"

[Files_CopyLicense]
copy -s "%ScriptPath%\license\*" "%ProgramFiles64Dir%\Axure\RP10"


[Sub_HandleExitCode]
; check return code
Set $ExitCode$ = GetLastExitCode
comment "GetLastExitCode: " + $ExitCode$
if not($ExitCode$ = "0")
  LogError "Fatal: setup returned exit code " + $ExitCode$
  IsFatalError
endif
