This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
userspace:etu_adobe_reader [2015/04/03 10:01] Robert Tauber created |
userspace:etu_adobe_reader [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 15: | Line 15: | ||
Tree (Q:\Adobe Reader):\\ | Tree (Q:\Adobe Reader):\\ | ||
- | Copy.exe\\ | + | [[Copy.exe]] (Für *.exe)\\ |
Adobe Reader\AdbeRdr##### | Adobe Reader\AdbeRdr##### | ||
Line 25: | Line 25: | ||
==== control ==== | ==== control ==== | ||
+ | < | ||
[Package] | [Package] | ||
version: 2014.12.08 | version: 2014.12.08 | ||
Line 61: | Line 62: | ||
</ | </ | ||
- | ==== 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 ==== | ||
<code winst> | <code winst> | ||
+ | ; Robert Tauber 2014 | ||
+ | |||
[Actions] | [Actions] | ||
requiredWinstVersion >= " | requiredWinstVersion >= " | ||
Line 133: | Line 85: | ||
; | ; | ||
; Kurzer Produktname (max. 12 Zeichen) | ; Kurzer Produktname (max. 12 Zeichen) | ||
- | Set $ProductNameShort$ = "Notepad++" | + | Set $ProductNameShort$ = "Adobe Reader" |
; Langer Produktname (max. 30 Zeichen) | ; Langer Produktname (max. 30 Zeichen) | ||
- | Set $ProductNameLong$ = "Notepad++" | + | Set $ProductNameLong$ = "Adobe Reader" |
; | ; | ||
; Gewünschtes Betriebssystem (alle ungültigen auskommentieren) | ; Gewünschtes Betriebssystem (alle ungültigen auskommentieren) | ||
Line 181: | Line 133: | ||
DosInAnIcon_Copy | DosInAnIcon_Copy | ||
- | ; | + | |
- | ; Die DeInstallation | + | |
- | ; | + | |
- | Set $Part$ = " | + | |
- | if FileExists(" | + | |
- | Winbatch_uninstall | + | |
- | subCheckExitCodeVLC | + | |
- | Files_uninstall | + | |
- | endif | + | |
; | ; | ||
Line 196: | Line 141: | ||
| | ||
| | ||
- | | ||
| | ||
| | ||
Line 212: | Line 156: | ||
[WinbatchInstallation] | [WinbatchInstallation] | ||
- | " | + | " |
- | ;RT 2015.03.13: | ||
- | ; Da npp derzeit nicht dazu in der lage sit ein Globales userDefineLang.xml allen usern zur verfügung zu stellen | ||
- | ; 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 | ||
- | ; 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. | ||
- | [DosBatch_Setings] | ||
- | ren " | ||
- | COPY " | ||
- | [Winbatch_uninstall] | ||
- | " | ||
- | |||
- | [Files_uninstall] | ||
- | delete -sf " | ||
; | ; | ||
Line 318: | Line 248: | ||
==== uninstall.ins ==== | ==== uninstall.ins ==== | ||
<code winst> | <code winst> | ||
+ | ; Robert Tauber 2014 | ||
[Actions] | [Actions] | ||
Line 336: | Line 267: | ||
; | ; | ||
; Kurzer Produktname (max. 12 Zeichen) | ; Kurzer Produktname (max. 12 Zeichen) | ||
- | Set $ProductNameShort$ = "Notepad++" | + | Set $ProductNameShort$ = "Adobe Reader" |
; Langer Produktname (max. 30 Zeichen) | ; Langer Produktname (max. 30 Zeichen) | ||
- | Set $ProductNameLong$ = "Notepad++" | + | Set $ProductNameLong$ = "Adobe Reader" |
; | ; | ||
; Gewünschtes Betriebssystem (alle ungültigen auskommentieren) | ; Gewünschtes Betriebssystem (alle ungültigen auskommentieren) | ||
Line 381: | Line 312: | ||
; Netzlaufwerk verbinden/ | ; Netzlaufwerk verbinden/ | ||
; | ; | ||
- | ;DosInAnIcon_Q | + | DosInAnIcon_Q |
- | ;DosInAnIcon_Copy | + | DosInAnIcon_Copy |
Line 391: | Line 322: | ||
; | ; | ||
Set $Part$ = " | Set $Part$ = " | ||
- | if FileExists(" | + | DosBatchUnInstallation |
- | Winbatch_uninstall | + | |
- | subCheckExitCodeVLC | + | |
- | Files_uninstall | + | |
- | | + | |
- | | + | |
| | ||
| | ||
- | | ||
| | ||
; | ; | ||
Line 413: | Line 338: | ||
mkdir $LocalDir$ | mkdir $LocalDir$ | ||
- | [Winbatch_uninstall] | + | [DosBatchUnInstallation] |
- | " | + | @echo off |
+ | MsiExec.exe /qn /X {AC76BA86-7AD7-1031-7B44-AB0000000001} | ||
- | [Files_uninstall] | ||
- | delete -sf " | ||
Line 501: | Line 426: | ||
Set $ValidOS$ = " | Set $ValidOS$ = " | ||
endif | endif | ||
- | |||
</ | </ | ||
- | ==== notepad++.exe / notepad++.au3 ==== | ||
- | <code autoit> | ||
- | #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 | ||
- | ; | ||
- | |||
- | </ | ||