This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
userspace:etu_notepad [2015/03/28 23:28] Robert Tauber |
userspace:etu_notepad [2015/04/03 10:49] Robert Tauber [ETU Notepad++] |
||
---|---|---|---|
Line 7: | Line 7: | ||
Tested with opsi xxxxx\\ | Tested with opsi xxxxx\\ | ||
- | Tested with opsi xxxxx | + | requiredWinstVersion >= 4.11.4.12 // |
- | requiredWinstVersion >= 4.10.5 // | + | |
Das Setup-File wird unter Q: | Das Setup-File wird unter Q: | ||
+ | |||
+ | Tree (..\opt_pcbin\install\!drivemap): | ||
+ | [[map_Q.exe]]\\ | ||
+ | |||
+ | Tree (Q: | ||
+ | [[Copy.exe]] (Für *.exe)\\ | ||
+ | Notepad++\npp.# | ||
Tree (..\notepadpp): | Tree (..\notepadpp): | ||
Line 21: | Line 27: | ||
CLIENT_DATA\userDefineLang\notepad++.exe\\ | CLIENT_DATA\userDefineLang\notepad++.exe\\ | ||
CLIENT_DATA\userDefineLang\userDefineLang.xml\\ | CLIENT_DATA\userDefineLang\userDefineLang.xml\\ | ||
+ | |||
+ | ==== control ==== | ||
+ | < | ||
+ | [Package] | ||
+ | version: 2015.03.13 | ||
+ | depends: | ||
+ | incremental: | ||
+ | |||
+ | [Product] | ||
+ | type: localboot | ||
+ | id: notepadpp | ||
+ | name: Notepad++ | ||
+ | description: | ||
+ | advice: packed by Robert Tauber | ||
+ | version: 0 | ||
+ | priority: 0 | ||
+ | licenseRequired: | ||
+ | productClasses: | ||
+ | setupScript: | ||
+ | uninstallScript: | ||
+ | updateScript: | ||
+ | alwaysScript: | ||
+ | onceScript: | ||
+ | customScript: | ||
+ | userLoginScript: | ||
+ | |||
+ | [ProductDependency] | ||
+ | action: setup | ||
+ | requiredProduct: | ||
+ | requiredAction: | ||
+ | requirementType: | ||
+ | |||
+ | [ProductDependency] | ||
+ | action: uninstall | ||
+ | requiredProduct: | ||
+ | requiredAction: | ||
+ | requirementType: | ||
+ | </ | ||
+ | |||
+ | ==== Copy.exe / Copy.au3 ==== | ||
+ | Kopieren und Umbenennen \\ | ||
+ | //Später ermitteln der Version Nummer// | ||
+ | |||
+ | <code autoit> | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | ;RT: Wo binn ich / Wo sol es denn hin | ||
+ | Local $sPath = @ScriptDir | ||
+ | Local $aPath = StringSplit( @ScriptDir, " | ||
+ | Local $sPathTo = " | ||
+ | local $extention = " | ||
+ | |||
+ | ;RT: Zur Kontrolle | ||
+ | ; | ||
+ | ;MsgBox ( 1, "Zeil Pfad", $sPathTo | ||
+ | |||
+ | ;RT: Erstmal aufräumen | ||
+ | DirRemove ( $sPathTo , 1 ) | ||
+ | |||
+ | ;RT: Wie sehen meine Ordner aus | ||
+ | Local $sFolderList = _FileListToArray($sPath , " | ||
+ | local $i = 0 | ||
+ | |||
+ | ;RT: Jetzt Ordner für ordner | ||
+ | For $i = 1 to $sFolderList[0] | ||
+ | ;RT: Was gibt es im aktuellen ordner | ||
+ | Local $sFileList = _FileListToArray($sPath & " | ||
+ | ;RT: Umbennenenen der *.[$extention] | ||
+ | if $sFileList <> 0 Then | ||
+ | if $sFileList[0] = 1 Then | ||
+ | ; | ||
+ | $sFrom = $sPath & " | ||
+ | $sTo = $sPathTo & " | ||
+ | FileCopy ( $sFrom, $sTo, 9 ) | ||
+ | ;DirRemove ( $sFrom ,1 ) | ||
+ | ;MsgBox ( 1, " | ||
+ | Else | ||
+ | MsgBox ( 1, " | ||
+ | _ArrayDisplay($sFileList, | ||
+ | EndIf | ||
+ | Else | ||
+ | ;MsgBox ( 1, "No Subfolders in: ", $sPath & " | ||
+ | endif | ||
+ | Next | ||
+ | |||
+ | Exit | ||
+ | |||
+ | |||
+ | |||
+ | </ | ||
==== setup.ins ==== | ==== setup.ins ==== | ||
Line 126: | Line 223: | ||
; z.B.: das Syntax Highlighting für winst dint das als workaround | ; z.B.: das Syntax Highlighting für winst dint das als workaround | ||
; dabei kommt ein auto it skript zum einsatz das sich als Notepad++.exe ausgibt zum einsatz | ; dabei kommt ein auto it skript zum einsatz das sich als Notepad++.exe ausgibt zum einsatz | ||
- | ; dise fängt den Befehl ab Kopirt wenn noch nicht vorhanden die userDefineLang.xml nach %appdata%\Notepad++ | + | ; dise fängt den Befehl ab, Kopirt wenn noch nicht vorhanden die userDefineLang.xml nach %appdata%\Notepad++ |
; und startet dan die umbenante Notepad+++.exe mit den ursprünglichen komandos. | ; und startet dan die umbenante Notepad+++.exe mit den ursprünglichen komandos. | ||
[DosBatch_Setings] | [DosBatch_Setings] | ||
Line 226: | Line 323: | ||
==== uninstall.ins ==== | ==== uninstall.ins ==== | ||
<code winst> | <code winst> | ||
- | ; (c) Robert Tauber 2014 | ||
[Actions] | [Actions] | ||
Line 245: | Line 341: | ||
; | ; | ||
; Kurzer Produktname (max. 12 Zeichen) | ; Kurzer Produktname (max. 12 Zeichen) | ||
- | Set $ProductNameShort$ = "Adobe Reader" | + | Set $ProductNameShort$ = "Notepad++" |
; Langer Produktname (max. 30 Zeichen) | ; Langer Produktname (max. 30 Zeichen) | ||
- | Set $ProductNameLong$ = "Adobe Reader" | + | Set $ProductNameLong$ = "Notepad++" |
; | ; | ||
; Gewünschtes Betriebssystem (alle ungültigen auskommentieren) | ; Gewünschtes Betriebssystem (alle ungültigen auskommentieren) | ||
Line 413: | Line 509: | ||
</ | </ | ||
- | ==== setup.ins ==== | + | ==== notepad++.exe / notepad++.au3 |
- | < | + | < |
+ | #include < | ||
+ | |||
+ | ;=== Befehle aufbereiten === | ||
+ | ;RT 2015.03.13: | ||
+ | ; Ziel ist es die aufruf parameter korekt weiter zu geben | ||
+ | $pfad = @ScriptDir | ||
+ | $name = " | ||
+ | $cmp = _ArrayToString($CmdLine, | ||
+ | $prog = '"' | ||
+ | ;RT 2015.03.13: Zur kontrolle | ||
+ | ; | ||
+ | |||
+ | |||
+ | ;=== Zusatz Aktionen === | ||
+ | ;RT 2015.03.13: | ||
+ | ; Was Soll Pasiren befor das Programm aufgerufen wird | ||
+ | ; == Kopiren == | ||
+ | ;RT 2015.03.13: Quelle und Ziel definiren | ||
+ | $file = " | ||
+ | $quelle = @ScriptDir & " | ||
+ | $ziel = @AppDataDir & " | ||
+ | |||
+ | ;RT 2015.03.13: Prüfen ob Quelle ok und Ziel nochnicht vorhanden | ||
+ | if FileExists($quelle) and not FileExists($ziel) then | ||
+ | ;RT 2015.03.13: Zur kontrolle | ||
+ | ; | ||
+ | | ||
+ | EndIf | ||
+ | |||
+ | run ($prog) | ||
+ | ;RT 2015.03.13: Zur kontrolle | ||
+ | ; | ||
</ | </ | ||
+ |