This shows you the differences between two versions of the page.
userspace:mremoteng [2014/09/16 19:19] GEI |
userspace:mremoteng [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
- | ====== mRemoteNG ====== | ||
- | |||
- | Tested with opsi 4.0.4\\ | ||
- | requiredWinstVersion >= 4.11.3.3\\ | ||
- | By // | ||
- | |||
- | mRemoteNG ist ein guter OpenSource-Sessionmananager | ||
- | für RDP-, SSH-, VNC-, ICA- und HTTP-Sessions \\ | ||
- | (auch als portable/ | ||
- | \\ | ||
- | Version 1.72 ist stable - 1.73-beta1 ist erweitert und läuft bis jetzt gut unter Win7-64\\ | ||
- | Download: http:// | ||
- | |||
- | |||
- | __Tree:__\\ | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | \\ | ||
- | Das komplette OPSI-Paket (mit 1.73-beta1) gibt es hier zum [[https:// | ||
- | \\ | ||
- | ==== setup.opsiscript ==== | ||
- | <code winst> | ||
- | ; ---------------------------------------------------------------- | ||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; A Part of this sourcecode is owned by uib | ||
- | ; and published under the Terms of the General Public License. | ||
- | ; credits: http:// | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | ; | ||
- | ; generated by this _great_ tools: opsi-setup-detector & opsi-packetbuilder | ||
- | ; see https:// | ||
- | ; SETUPTYPE | ||
- | ; | ||
- | ; modificated by GEI | ||
- | ; | ||
- | |||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | ScriptErrorMessages = false | ||
- | |||
- | DefVar $SetupType$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $Setupfile$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $ErrorMsg$ | ||
- | DefVar $LicenseRequired$ | ||
- | DefVar $LicenseKey$ | ||
- | DefVar $LicensePool$ | ||
- | DefVar $NsisInstallBatch$ | ||
- | DefVar $LogDir$ | ||
- | |||
- | DefVar $InstallLanguage$ | ||
- | DefVar $InstallOnUSB$ | ||
- | DefVar $InstallUSBdriveLetter$ | ||
- | |||
- | DefStringList $OpsiProductMapList$ | ||
- | DefVar $OpsiProductName$ | ||
- | DefVar $OpsiProductVersion$ | ||
- | DefVar $OpsiProductInstalledVersion$ | ||
- | |||
- | Set $LogDir$ = " | ||
- | ; ---------------------------------------------------------------- | ||
- | Set $SetupType$ | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | ; new Version: | ||
- | ; please load new .exe into CLIENT_DATA and increment the | ||
- | ; OPSI/ | ||
- | |||
- | Set $ProductId$ | ||
- | Set $MinimumSpace$ | ||
- | |||
- | ; get property from actual opsi packet | ||
- | Set $OpsiProductMapList$ = getProductMap | ||
- | Set $OpsiProductName$ = getValue(" | ||
- | Set $OpsiProductVersion$ = getValue(" | ||
- | Set $OpsiProductInstalledVersion$ = getValue(" | ||
- | |||
- | ; Pattern + OPSI/ | ||
- | Set $Setupfile$ | ||
- | Set $InstallDir$ | ||
- | |||
- | Set $LicenseRequired$ = " | ||
- | Set $LicensePool$ | ||
- | |||
- | ; get property values from " | ||
- | Set $InstallLanguage$ = GetProductProperty(" | ||
- | Set $InstallOnUSB$ = GetProductProperty(" | ||
- | Set $InstallUSBdriveLetter$ = GetProductProperty(" | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | | ||
- | ; Stop process and set installation status to failed | ||
- | | ||
- | else | ||
- | if (not(FileExists(" | ||
- | isFatalError $Setupfile$ + ": not found on %ScriptDrive%, | ||
- | endif | ||
- | |||
- | | ||
- | | ||
- | |||
- | |||
- | | ||
- | | ||
- | |||
- | | ||
- | if ($InstallOnUSB$=" | ||
- | comment "no install on usb or no driveletter" | ||
- | if FileExists(" | ||
- | comment "Start uninstall sub section" | ||
- | Message " | ||
- | Sub " | ||
- | endif | ||
- | if $LicenseRequired$ = " | ||
- | comment " | ||
- | Sub_get_licensekey | ||
- | endif | ||
- | if ($SetupType$ = " | ||
- | Set $NsisInstallBatch$ = " | ||
- | if not ($InstallDir$ = '' | ||
- | Set $NsisInstallBatch$ = $NsisInstallBatch$ + ' / | ||
- | endif | ||
- | endif | ||
- | |||
- | Winbatch_install_nsis | ||
- | Sub_check_exitcode | ||
- | |||
- | else | ||
- | comment " | ||
- | Files_copy-usb | ||
- | endif | ||
- | endif | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; install sections | ||
- | ; ---------------------------------------------------------------- | ||
- | [Winbatch_install_nsis] | ||
- | $NsisInstallBatch$ | ||
- | |||
- | |||
- | [sub_check_exitcode] | ||
- | if FileExists(" | ||
- | Sub " | ||
- | else | ||
- | if FileExists(" | ||
- | Sub " | ||
- | else | ||
- | LogError "SUB check_nsis-exitcode not found!" | ||
- | endif | ||
- | endif | ||
- | |||
- | [Files_copy-usb] | ||
- | copy -su " | ||
- | |||
- | [Sub_get_licensekey] | ||
- | if opsiLicenseManagementEnabled | ||
- | | ||
- | |||
- | | ||
- | Set $LicenseKey$ = demandLicenseKey ($LicensePool$) | ||
- | ; If there is an assignment of exactly one licensepool to the product the following call is possible: | ||
- | ; Set $LicenseKey$ = demandLicenseKey ("", | ||
- | ; | ||
- | ; If there is an assignment of a license pool to a windows software id, it is possible to use: | ||
- | ; DefVar $WindowsSoftwareId$ | ||
- | ; $WindowsSoftwareId$ = " | ||
- | ; Set $LicenseKey$ = demandLicenseKey ("", | ||
- | |||
- | | ||
- | set $ServiceErrorClass$ = getLastServiceErrorClass | ||
- | | ||
- | |||
- | if $ServiceErrorClass$ = " | ||
- | comment " | ||
- | else | ||
- | if $ServiceErrorClass$ = " | ||
- | | ||
- | | ||
- | | ||
- | else | ||
- | if $ServiceErrorClass$ = " | ||
- | LogError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | else | ||
- | | ||
- | | ||
- | endif | ||
- | ; ---------------------------------------------------------------- | ||
- | </ | ||
- | |||
- | ==== uninstall.opsiscript ==== | ||
- | <code winst> | ||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; This sourcecode is owned by uib gmbh | ||
- | ; and published under the Terms of the General Public License. | ||
- | ; credits: http:// | ||
- | |||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | DefVar $SetupType$ | ||
- | DefVar $MsiId$ | ||
- | DefVar $LogDir$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $ErrorMsg$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $LicenseRequired$ | ||
- | DefVar $LicensePool$ | ||
- | |||
- | Set $LogDir$ = " | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | Set $SetupType$ = " | ||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please check the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | Set $ProductId$ | ||
- | Set $InstallDir$ | ||
- | Set $LicenseRequired$ = " | ||
- | Set $LicensePool$ | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | |||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | Message " | ||
- | |||
- | if FileExists(" | ||
- | | ||
- | Sub " | ||
- | endif | ||
- | |||
- | if $LicenseRequired$ = " | ||
- | | ||
- | | ||
- | endif | ||
- | |||
- | [Sub_free_license] | ||
- | comment " | ||
- | |||
- | comment " | ||
- | DefVar $result$ | ||
- | Set $result$ = FreeLicense($LicensePool$) | ||
- | ; If there is an assignment of a license pool to the product, it is possible to use | ||
- | ; Set $result$ = FreeLicense("", | ||
- | ; | ||
- | ; If there is an assignment of a license pool to a windows software id, it is possible to use | ||
- | ; DefVar $WindowsSoftwareId$ | ||
- | ; $WindowsSoftwareId$ = " | ||
- | ; set $result$ = FreeLicense("", | ||
- | </ | ||
- | |||
- | ==== delsub.opsiscript ==== | ||
- | <code winst> | ||
- | |||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; This sourcecode is owned by uib gmbh | ||
- | ; and published under the Terms of the General Public License. | ||
- | ; credits: http:// | ||
- | |||
- | DefVar $found$ | ||
- | DefVar $UninstallProgram$ | ||
- | |||
- | Set $found$ | ||
- | |||
- | Message " | ||
- | |||
- | if ($SetupType$ = " | ||
- | Set $UninstallProgram$ = $InstallDir$ + " | ||
- | if (not($InstallDir$ = '' | ||
- | comment " | ||
- | Winbatch_uninstall_nsis / | ||
- | sub_check_exitcode | ||
- | endif | ||
- | endif | ||
- | |||
- | if (not($InstallDir$ = '' | ||
- | | ||
- | endif | ||
- | |||
- | ; | ||
- | [Winbatch_uninstall_nsis] | ||
- | " | ||
- | ; | ||
- | |||
- | [sub_check_exitcode] | ||
- | Sub " | ||
- | |||
- | [Files_uninstall] | ||
- | del -sf " | ||
- | ; | ||
- | </ | ||
- | |||
- | ==== Steps ==== | ||
- | - here you enter special steps, if needed. Explain it well, so an opsi-beginner can do it. | ||
- | - step two | ||
- | - step three | ||
- | - ... | ||
- | |||
- | [[nix|Change the following headlines to the names of your scripts]] | ||
- | |||
- | |||
- | |||
- | |||
- | ==== OPSI/ | ||
- | <code winst> | ||
- | [Package] | ||
- | version: 4 | ||
- | depends: | ||
- | incremental: | ||
- | |||
- | [Product] | ||
- | type: localboot | ||
- | id: mremoteng | ||
- | name: mRemoteNG | ||
- | description: | ||
- | advice: (Krummel: Paket aktuelisiert am 15.9.2014) | ||
- | version: 1.73 | ||
- | priority: 0 | ||
- | licenseRequired: | ||
- | productClasses: | ||
- | setupScript: | ||
- | uninstallScript: | ||
- | updateScript: | ||
- | alwaysScript: | ||
- | onceScript: | ||
- | customScript: | ||
- | userLoginScript: | ||
- | |||
- | [ProductDependency] | ||
- | action: setup | ||
- | requiredProduct: | ||
- | requiredStatus: | ||
- | requirementType: | ||
- | |||
- | [ProductProperty] | ||
- | type: bool | ||
- | name: usb | ||
- | description: | ||
- | default: False | ||
- | |||
- | [ProductProperty] | ||
- | type: unicode | ||
- | name: usbdriveletter | ||
- | multivalue: False | ||
- | editable: True | ||
- | description: | ||
- | values: [" | ||
- | default: [" | ||
- | </ | ||
- | |||