User Tools

Site Tools


userspace:a_master_copy_for_inserting_scripts_-_eine_vorlage_um_einstellen_von_scripten

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
userspace:a_master_copy_for_inserting_scripts_-_eine_vorlage_um_einstellen_von_scripten [2012/10/04 11:27]
Thomas_H created
userspace:a_master_copy_for_inserting_scripts_-_eine_vorlage_um_einstellen_von_scripten [2021/08/23 08:37] (current)
Line 1: Line 1:
-This is a master copy. Click on <edit this page> and copy the contents under "snipp". Then create the page for your own script, paste the content to the editor and modify it as you need it.+\\ 
 +====== getProductMap.opsiinc ======
  
-====== Programname Ver. 1.0 ====== 
  
 +Tested with opsi 4.0.4\\
 +requiredWinstVersion >= 4.11.2.\\
 +By //[[opsi@gei.de|GEI]] 2014/11/11 17:00//
  
-Tested with opsi X.Y.Z\\ +placed in global library, such as %ScriptDrive$/lib ... 
-requiredWinstVersion >= W.X.Y.Z\\ +call with  
-Files can be downloaded at http://www+<code winst
- +include_insert %ScriptDrive%/lib/getproductmap.opsiinc
-By  <click on the button signature> +
- +
-Tree:\\ +
-<code> +
-insert the files and folders in the folder CLIENT_DATA, maybe use "tree" and copy and paste the output+
 </code> </code>
  
-==== Steps ==== +===  === 
-  - here you enter special steps, if neededExplain it well, so an opsi-beginner can do it+<code winst> 
-  - step two +    ; This sourcecode is partly owned by uib.de 
-  - step three +    ; and published under the Terms of the General Public License. 
-  - ...+    ; credits: http://www.opsi.org/en/credits/ 
 +    ; 
 +    ; written by GEI (Detlef Krummel  opsi@gei.de) 
 +    ; FILE "%ScriptDrive%\lib\getproductmap.opsiinc"
  
-[[nix|Change the following headlines to the names of your scripts]]+    requiredWinstVersion >="4.11.2" 
 +    ; for debugging  setLogLevel = 7 
 +    DefStringList   $ProductMap_List$ 
 +    Set             $ProductMap_List$ = getProductMap 
 +    setLogLevel = 6 
 +    ; --------------------------------- sample values --------------------------------------------------- 
 +    ; 0)id=owncloud                         1)name=ownCloud                 2)description=Win-Cloudclient 
 +    ; 3)advice=(aktualisiert am 4.9.2014)   4)productversion=1.6.3.3721     5)packageversion=17 
 +    ; 6)priority=0                          7)installationstate=unknown     8)lastactionrequest=setup 
 +    ; 9)lastactionresult=successful         10)installedversion=1.6.2.      11)installedpackage=16 
 +    ;12)installedmodificationtime=          13)actionrequest=setup
  
-==== setup.ins ==== +    DefVar          $ProductMap_Id$ 
-<code winst> +    Set             $ProductMap_Id$                         getValue("id",                        $ProductMap_List$) 
-click on "edit this pageto see the complete source.+    DefVar          $ProductMap_Name$ 
 +    Set             $ProductMap_Name$                       getValue("name",                      $ProductMap_List$) 
 +    DefVar          $ProductMap_Description$ 
 +    Set             $ProductMap_Description$                getValue("description",               $ProductMap_List$) 
 +    DefVar          $ProductMap_Advice$ 
 +    Set             $ProductMap_Advice$                     getValue("advice",                    $ProductMap_List$) 
 +    DefVar          $ProductMap_ProductVersion$ 
 +    Set             $ProductMap_ProductVersion$             getValue("productversion",            $ProductMap_List$) 
 +    DefVar          $ProductMap_PackageVersion$ 
 +    Set             $ProductMap_PackageVersion$             getValue("packageversion",            $ProductMap_List$) 
 +    DefVar          $ProductMap_Priority$ 
 +    Set             $ProductMap_Priority$                   getValue("priority",                  $ProductMap_List$) 
 +    DefVar          $ProductMap_InstallationState$ 
 +    Set             $ProductMap_InstallationState$          getValue("installationstate",         $ProductMap_List$) 
 +    DefVar          $ProductMap_LastActionRequest$ 
 +    Set             $ProductMap_LastActionRequest$          = getValue("lastactionrequest",         $ProductMap_List$) 
 +    DefVar          $ProductMap_LastActionResult$ 
 +    Set             $ProductMap_LastActionResult$           = getValue("lastactionresult",          $ProductMap_List$) 
 +    DefVar          $ProductMap_InstalledVersion$ 
 +    Set             $ProductMap_InstalledVersion$           = getValue("installedversion",          $ProductMap_List$) 
 +    DefVar          $ProductMap_InstalledPackage$ 
 +    Set             $ProductMap_InstalledPackage$           = getValue("installedpackage",          $ProductMap_List$) 
 +    DefVar          $ProductMap_InstalledModificationTime$ 
 +    Set             $ProductMap_InstalledModificationTime$  = getValue("installedmodificationtime", $ProductMap_List$) 
 +    DefVar          $ProductMap_ActionRequest$ 
 +    Set             $ProductMap_ActionRequest$              = getValue("actionrequest",             $ProductMap_List$)
 </code> </code>
  
-==== uninstall.ins ==== +==== sample ====
-<code winst> +
-click on "edit this page" to see the complete source. +
-</code>+
  
-==== delsub.ins ====+  (include before)
 <code winst> <code winst>
-click on "edit this pageto see the complete source.+  set $Setupfile$ = "ownCloud-+ $ProductMap_ProductVersion$ + "-setup.exe"
 </code> </code>
- 
-==== myvbs.vbs ==== 
-<code vb> 
-;this is my vbs-script... 
-echo click on "edit this page" to see the complete source. 
-</code> 
- 
  
userspace/a_master_copy_for_inserting_scripts_-_eine_vorlage_um_einstellen_von_scripten.1349350032.txt.gz · Last modified: 2021/08/23 08:37 (external edit)