// if no supported language is found -> English is default

%lang = 0

if %SYSLANG == %FRENCH
  %lang = 1
endif

if %SYSLANG == %GERMAN
  %lang = 1
endif

if %SYSLANG == %ITALIAN
  %lang = 1
endif

if %SYSLANG == %SPANISH
  %lang = 1
endif

if %SYSLANG == %SWEDISH
  %lang = 1
endif

if %SYSLANG == %DUTCH
  %lang = 1
endif

if %lang == 0
  %SYSLANG = %ENGLISH
endif



/*
*************************************
** Translations
*************************************
*/

// Allgemein

	$back (%ENGLISH) = "Back"	
	$back (%GERMAN)  = "Zurück"
	$back (%FRENCH)  = "Retour"
	$back (%SPANISH) = "Atrás"
	$back (%ITALIAN) = "Indietro"
	$back (%SWEDISH) = "Tillbaka"

	$software_installation (%ENGLISH) = "Software installation"
	$software_installation (%GERMAN)  = "Softwareinstallation"
	$software_installation (%FRENCH)  = "Installation de logiciel"
	$software_installation (%SPANISH) = "Instalación del software"
	$software_installation (%ITALIAN) = "Installazione del software"
	$software_installation (%SWEDISH) = "Programvaruinstallation"	
	
	$driver_installation (%ENGLISH) = "Driver installation"
	$driver_installation (%GERMAN)  = "Treiberinstallation"
	$driver_installation (%FRENCH)  = "Installation de pilotes"
	$driver_installation (%SPANISH) = "Instalación de controladores"
	$driver_installation (%ITALIAN) = "Installazione dei driver "
	$driver_installation (%SWEDISH) = "Installation av drivrutin"
	
	$install_driver (%ENGLISH) = "Install driver"
	$install_driver (%GERMAN)  = "Treiber installieren"
	$install_driver (%FRENCH)  = "Installer le pilote"
	$install_driver (%SPANISH) = "Instalar controlador"
	$install_driver (%ITALIAN) = "Installa driver"
	$install_driver (%SWEDISH) = "Installera drivrutin"	

	$manual (%ENGLISH) = "Documentation"	
	$manual (%DUTCH)   = "Documentatie"
	$manual (%GERMAN)  = "Dokumentation"
	$manual (%FRENCH)  = "Documentation"
	$manual (%SPANISH) = "Documentación"
	$manual (%ITALIAN) = "Documentazione"
	$manual (%SWEDISH) = "Dokumentation"
	
	// AcrobatReader
	
	$noacro (%ENGLISH) = "Sorry, no viewer for PDF files found. Do you want to install Adobe Reader now?"
	$noacro (%DUTCH  ) = "Sorry, er is geen programma gevonden voor PDF bestanden. Wilt u Adobe Reader nu installeren?"
	$noacro (%GERMAN)  = "Der Adobe Reader, zum Betrachten der Dokumentation ist nicht installiert. Möchten Sie ihn jetzt installieren?"
	$noacro (%FRENCH)  = "Excusez, pas de vision pour les fichiers PDF trouves. Voulez vous installer Adobe Reader?"
	$noacro (%SPANISH) = "El Adobe Reader para leer la documentación no está instalado. ¿Quiere instalarlo ahora?"
	$noacro (%ITALIAN) = "Per visualizzare i file PDF occorre installare Adobe Reader, si vuole effettuare l'installazione di Acrobat Reader?"
	$noacro (%SWEDISH) = "Sorry, no viewer for PDF files found. Do you want to install Adobe Reader now?"
	
	
/*
********************************************
** Funktionen
********************************************
*/

function &f_Doku
{
	if SupportExtension(".pdf")
		WinExec("explorer /e,/root," + $EXEDIR + "Manuals")
	else 	
		if YesToQuestion ($noacro)
			ShellExecute("www.adobe.com/go/EN_US-H-GET-READER/")
		endif
	endif
}

%directxmajorversionneeded = 9
%directxminorversionneeded = 0
%directxbuildneeded = 902

/*
***********************************************
** Devices:
***********************************************
*/

$Device_1_Image   = $EXEDIR + "Autorun\Data1\device_masthead.bmp"
$Device_1_DrvPath = $EXEDIR + "Drivers\Video_Capture_Driver_Installer.exe"
$Device_1_SoftPath = $EXEDIR + "Software\VideoCaptureSetup.msi"

/*
***********************************************
** Elemente:
***********************************************
*/

%DEFAULTBUTTONHEIGHT = 26
%DEFAULTBUTTONWIDTH=223
%AUTOBUTTONSPACING = 4
%AUTOBUTTONLEFT = 298
$DEFAULTPAGEPICTURE = $EXEDIR + "Autorun\Data1\Background.bmp"
%AUTOBUTTONBOTTOM = 60

$DEFAULTBUTTONPICTURE = $EXEDIR + "Autorun\Data1\button_big_normal.bmp"
$DEFAULTBUTTONMOUSEOVER = $EXEDIR + "Autorun\Data1\button_big_focus.bmp"
$DEFAULTBUTTONSELECTED = $EXEDIR + "Autorun\Data1\button_big_pressed.bmp"

//SetDefaultButtonTransparency(0,1,0)
SetDefaultButtonTextColor(20,20,20)
SetDefaultButtonHighTextColor(25,25,25)



CreateButton(&b_device_1_inst)
	caption = $driver_installation
	pressed = 'ElevateExec($Device_1_DrvPath)'
	
CreateButton(&b_software_install)
	caption = $software_installation
	pressed = 'ShellExecute($Device_1_SoftPath)'

CreateButton(&b_documentation)
	caption = $manual
	pressed = &f_Doku

CreateImage(&i_Device_1_Image)
	picture = $Device_1_Image
	top = 80
	left = 311	

	
/*
*******************************************
** Seiten
*******************************************
*/

CreatePage(&main)
	caption = $Device_1_Name
	AddButton(&b_device_1_inst)
  AddButton(&b_software_install)
  AddButton(&b_documentation)
		
	AddImage(&i_Device_1_Image)
