; ---------------------------------------------------------------- ; This is a opsi-script file. ; See https://opsi.org https://uib.de ; This code was originally created by opsi-setup-detector 4.2.1.18 ; ---------------------------------------------------------------- encoding=utf8 [Actions] requiredOpsiscriptVersion >= "4.12.4.23" importlib "uib_exitcode.opsiscript" importlib "osd-lib.opsiscript" importlib "uib_lin_install.opsiscript" ; All variables are defined here: include_insert "declarations.opsiinc" ; ---------------------------------------------------------------- ; Please edit the following values: ; ---------------------------------------------------------------- ; $ProductId$ is the name of the product in opsi, only lower letters, no umlauts, no white spaces, use '-' as a separator Set $ProductId$ = "l-new_touch_script__test" ; the path where we find the product after the installation Set $InstallDir$ = "/tmp" ; ---------------------------------------------------------------- Message "Installing " + $ProductId$ + " ..." set $OS$ = GetOS if not(($OS$ = "linux")) logError "Installation aborted: wrong OS version: only Linux" isFatalError "wrong OS" endif comment "Show product picture" ShowBitmap "%ScriptPath%\" + $ProductId$ + ".png" $ProductId$ set $desktopicon$ = GetProductProperty("desktopicon", "False") set $installerSourceDir$ = "%scriptpath%/files1" comment "Start setup " ChangeDirectory $installerSourceDir$ ;---------------------------------------------- cleanupPackageSystem() set $exitcode$ = shellCall('$installerSourceDir$ + "/new_touch_script.sh" ') cleanupPackageSystem() ;---------------------------------------------- if "true" = isMsExitcodeFatal_short($exitcode$, "true", $ErrorString$ ) LogError $ErrorString$ isfatalerror $ErrorString$ else Comment $ErrorString$ endif ; handle desktop icon if $DesktopIcon$ = "true" comment "Create Desktop Icon" Linkfolder_create_desktop_icon else comment "Remove Desktop Icon" Linkfolder_remove_desktop_icon endif [Linkfolder_remove_desktop_icon] ; check delete_element set_basefolder common_desktopdirectory set_subfolder "" delete_element $productId$ [Linkfolder_create_desktop_icon] ; check name, target and working_dir set_basefolder common_desktopdirectory set_subfolder "" set_link name: $productId$ target: $Installdir$\$targetprogram$ parameters: working_dir: $Installdir$ icon_file: icon_index: end_link ; ---------------------------------------------------------------- ; ----------------------------------------------------------------