User Tools

Site Tools


userspace:etu_adobe_reader

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
userspace:etu_adobe_reader [2015/04/03 10:02]
Robert Tauber [Copy.exe / Copy.au3]
userspace:etu_adobe_reader [2015/04/03 10:52]
Robert Tauber [ETU Adobe Reader]
Line 15: Line 15:
  
 Tree (Q:\Adobe Reader):\\ Tree (Q:\Adobe Reader):\\
-Copy.exe\\+[[Copy.exe]]\\
 Adobe Reader\AdbeRdr#####_de_DE.exe => [[http://get.adobe.com/de/reader/enterprise/]]\\ Adobe Reader\AdbeRdr#####_de_DE.exe => [[http://get.adobe.com/de/reader/enterprise/]]\\
  
Line 67: Line 67:
  
 <code autoit> <code autoit>
-#cs ---------------------------------------------------------------------------- 
- 
- AutoIt Version: 3.3.8.1 
- Author:         myName 
- 
- Script Function: 
- Template AutoIt script. 
- 
-#ce ---------------------------------------------------------------------------- 
- 
-; Script Start - Add your code below here 
 #include <File.au3> #include <File.au3>
- 
 #include <Array.au3> #include <Array.au3>
  
Line 120: Line 108:
 ==== setup.ins ==== ==== setup.ins ====
 <code winst> <code winst>
 +; Robert Tauber 2014
 +
 [Actions] [Actions]
 requiredWinstVersion >= "4.10.5" requiredWinstVersion >= "4.10.5"
Line 137: Line 127:
 ;----------------------------------------------------- ;-----------------------------------------------------
 ; 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 185: Line 175:
 DosInAnIcon_Copy DosInAnIcon_Copy
  
-;----------------------------------------------------- + 
-; Die DeInstallation +
-;----------------------------------------------------- +
- Set $Part$ = "setup.exe" +
- if FileExists("%ProgramFiles32Dir%\VideoLAN\vlc\uninstall.exe"+
- Winbatch_uninstall +
- subCheckExitCodeVLC +
- Files_uninstall +
- endif+
  
 ;----------------------------------------------------- ;-----------------------------------------------------
Line 200: Line 183:
  WinbatchInstallation  WinbatchInstallation
  subCheckExitCodeEXE  subCheckExitCodeEXE
- DosBatch_Setings 
  FilesCleanTemp  FilesCleanTemp
  ExitWindows /Reboot  ExitWindows /Reboot
Line 216: Line 198:
  
 [WinbatchInstallation] [WinbatchInstallation]
-"C:\Temp\$ProductNameShort$\Notepad++.exe" /+"C:\Temp\$ProductNameShort$\AdobeReader.exe" /sPB ;/sAll
- +
-;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 "%ProgramFiles(x86)%\Notepad++\Notepad++.exe" "Notepad+++.exe" +
-COPY "%scriptpath%\userDefineLang\*.*" "%ProgramFiles(x86)%\Notepad++\"+
  
  
  
-[Winbatch_uninstall] 
-"%ProgramFiles32Dir%\Notepad++\uninstall.exe" /S 
  
-[Files_uninstall] 
-delete -sf "%ProgramFiles32Dir%\Notepad++\" 
  
 ;----------------------------------------------------- ;-----------------------------------------------------
Line 322: Line 290:
 ==== uninstall.ins ==== ==== uninstall.ins ====
 <code winst> <code winst>
 +; Robert Tauber 2014
  
 [Actions] [Actions]
Line 340: Line 309:
 ;----------------------------------------------------- ;-----------------------------------------------------
 ; 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 385: Line 354:
 ; Netzlaufwerk verbinden/Copy ; Netzlaufwerk verbinden/Copy
 ;----------------------------------------------------- ;-----------------------------------------------------
-;DosInAnIcon_Q +DosInAnIcon_Q 
-;DosInAnIcon_Copy+DosInAnIcon_Copy
  
  
Line 395: Line 364:
 ;----------------------------------------------------- ;-----------------------------------------------------
  Set $Part$ = "setup.exe"  Set $Part$ = "setup.exe"
- if FileExists("%ProgramFiles32Dir%\VideoLAN\vlc\uninstall.exe"+ DosBatchUnInstallation
- Winbatch_uninstall +
- subCheckExitCodeVLC +
- Files_uninstall +
- endif +
- Winbatch_uninstall+
  subCheckExitCodeEXE  subCheckExitCodeEXE
  FilesCleanTemp  FilesCleanTemp
- Files_uninstall 
  ExitWindows /Reboot  ExitWindows /Reboot
 ;----------------------------------------------------- ;-----------------------------------------------------
Line 417: Line 380:
 mkdir $LocalDir$ mkdir $LocalDir$
  
-[Winbatch_uninstall+[DosBatchUnInstallation
-"%ProgramFiles32Dir%\Notepad++\uninstall.exe/S+@echo off 
 +MsiExec.exe /qn /X {AC76BA86-7AD7-1031-7B44-AB0000000001}  
  
-[Files_uninstall] 
-delete -sf "%ProgramFiles32Dir%\Notepad++\" 
  
  
Line 505: Line 468:
  Set $ValidOS$ = "true"  Set $ValidOS$ = "true"
 endif endif
- 
 </code> </code>
  
-==== notepad++.exe / notepad++.au3 ==== 
-<code autoit> 
-#include <Array.au3> 
- 
-;=== Befehle aufbereiten === 
-;RT 2015.03.13:  
-;  Ziel ist es die aufruf parameter korekt weiter zu geben 
-$pfad = @ScriptDir 
-$name = "notepad+++.exe" 
-$cmp = _ArrayToString($CmdLine, " ",1) 
-$prog = '"' & $pfad & "\" & $name & '" ' & $cmp 
-;RT 2015.03.13: Zur kontrolle 
-;MsgBox(1,"",$prog) 
- 
- 
-;=== Zusatz Aktionen === 
-;RT 2015.03.13: 
-;  Was Soll Pasiren befor das Programm aufgerufen wird 
-; == Kopiren == 
-;RT 2015.03.13: Quelle und Ziel definiren 
-$file = "userDefineLang.xml" 
-$quelle = @ScriptDir & "\" & $file 
-$ziel = @AppDataDir & "\Notepad++\" & $file 
- 
-;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 
-   ;MsgBox(1,"",$quelle & " ==> " & $ziel) 
-   FileCopy ($quelle,$ziel,8) & @error) 
-EndIf 
- 
-run ($prog) 
-;RT 2015.03.13: Zur kontrolle 
-;MsgBox(1,"",$prog) 
- 
-</code> 
  
userspace/etu_adobe_reader.txt · Last modified: 2021/08/23 08:37 (external edit)