Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Linux-Einsteiger
#32
Zitat:Original von wernieman
...
Ein Installer bräuchte dann auch eine "Uninstall"-Funktion .... ansonsten könnte man sich ja mal überlegen einen reinen "bash-script-installer", nur entstehen dann keine automaitschen "Menüeinträge" ..

Mit einer Abfrage nach dem System im Script sollten Verknüpfungen möglich sein.

So siehts bei Windows-Bat aus
Code:
echo Welche Windows-Version? echo. echo 1 Windows 2000 echo 2 Windows XP echo 3 Windows Vista echo. choice /C:123 if errorlevel 3 goto WinVista if errorlevel 2 goto WinXP if errorlevel 1 goto Win2000 :WinXP set system1=%ALLUSERSPROFILE%\Startmenü\Programme set system2=%ALLUSERSPROFILE%\Desktop set system3=%ProgramFiles% goto weiter :WinVista set system1=%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs set system2=%PUBLIC%\Desktop set system3=%ProgramFiles% goto weiter :Win2000 set system1=%ALLUSERSPROFILE%\Startmenü\Programme set system2=%ALLUSERSPROFILE%\Desktop set system3=%ProgramFiles% goto weiter

Und wenn man weis, welches System verwendet wird, dann kann man auch ein entsprechendes uninstall-Script mit kopieren. Oder fragt das System im uninstall-Script erneut ab.

Beispiel dafür sind die Verknüpfungen
Code:
echo. echo Wie soll Simutrans gestartet werden? echo. echo 1 normal echo 2 ohne Hintergrundmusik echo 3 ohne Geräusche echo 4 ohne Hintergrundmusik und Geräusche echo. choice /C:1234 if errorlevel 4 goto nomidisound if errorlevel 3 goto nosound if errorlevel 2 goto nomidi if errorlevel 1 goto normal :nomidisound copy "Simutrans 0.99.16 nomidisound.lnk" "%system2%\Simutrans 0.99.16.lnk" copy "Simutrans 0.99.16 nomidisound.lnk" "%system1%\Simutrans\Simutrans 0.99.16.lnk" goto weiter2 :nomidi copy "Simutrans 0.99.16 nomidi.lnk" "%system2%\Simutrans 0.99.16.lnk" copy "Simutrans 0.99.16 nomidi.lnk" "%system1%\Simutrans\Simutrans 0.99.16.lnk" goto weiter2 :nosound copy "Simutrans 0.99.16 nosound.lnk" "%system2%\Simutrans 0.99.16.lnk" copy "Simutrans 0.99.16 nosound.lnk" "%system1%\Simutrans\Simutrans 0.99.16.lnk" goto weiter2 :normal copy "Simutrans 0.99.16.lnk" "%system2%" copy "Simutrans 0.99.16.lnk" "%system1%\Simutrans" goto weiter2 :weiter2 copy "Simutrans 0.99.16 entfernen.lnk" "%system1%\Simutrans" goto clean

Ich kann Dir meine bat-Dateien zukommen lassen, wenn Du Interesse hast.
Zitieren


Nachrichten in diesem Thema
Linux-Einsteiger - von Wurzelgnom - 26-03-2006, Sunday-12:54:44
[Kein Betreff] - von sojo - 26-03-2006, Sunday-14:42:18
RE: Linux-Einsteiger - von martinalex - 26-03-2006, Sunday-16:21:01
[Kein Betreff] - von Wurzelgnom - 26-03-2006, Sunday-17:57:22
[Kein Betreff] - von JMD - 27-03-2006, Monday-14:42:21
[Kein Betreff] - von Wurzelgnom - 28-03-2006, Tuesday-20:24:38
[Kein Betreff] - von wernieman - 28-03-2006, Tuesday-20:38:31
[Kein Betreff] - von Wurzelgnom - 28-03-2006, Tuesday-21:06:50
[Kein Betreff] - von hellmade - 10-07-2006, Monday-18:09:02
[Kein Betreff] - von Wurzelgnom - 10-07-2006, Monday-18:22:54
[Kein Betreff] - von hellmade - 10-07-2006, Monday-18:29:40
[Kein Betreff] - von hellmade - 11-07-2006, Tuesday-14:18:23
[Kein Betreff] - von Wurzelgnom - 11-07-2006, Tuesday-16:23:40
[Kein Betreff] - von hellmade - 11-07-2006, Tuesday-16:29:13
[Kein Betreff] - von hellmade - 11-07-2006, Tuesday-16:34:11
[Kein Betreff] - von wernieman - 11-07-2006, Tuesday-16:36:38
[Kein Betreff] - von Wurzelgnom - 11-07-2006, Tuesday-17:11:14
[Kein Betreff] - von wernieman - 11-07-2006, Tuesday-18:00:52
[Kein Betreff] - von hellmade - 11-07-2006, Tuesday-19:00:36
[Kein Betreff] - von prissi - 11-07-2006, Tuesday-23:22:10
[Kein Betreff] - von wernieman - 12-07-2006, Wednesday-00:03:05
[Kein Betreff] - von hellmade - 12-07-2006, Wednesday-01:01:00
[Kein Betreff] - von wernieman - 12-07-2006, Wednesday-10:08:33
[Kein Betreff] - von hellmade - 12-07-2006, Wednesday-12:07:20
[Kein Betreff] - von Wurzelgnom - 09-12-2007, Sunday-10:16:20
[Kein Betreff] - von Dirk - 09-12-2007, Sunday-14:23:02
[Kein Betreff] - von Wurzelgnom - 09-12-2007, Sunday-14:29:12
[Kein Betreff] - von wernieman - 09-12-2007, Sunday-16:20:47
[Kein Betreff] - von Wurzelgnom - 09-12-2007, Sunday-16:27:17
[Kein Betreff] - von Dirk - 09-12-2007, Sunday-16:31:59
[Kein Betreff] - von wernieman - 09-12-2007, Sunday-17:24:34
[Kein Betreff] - von Wurzelgnom - 09-12-2007, Sunday-17:37:05
[Kein Betreff] - von wernieman - 09-12-2007, Sunday-17:59:31
[Kein Betreff] - von Wurzelgnom - 09-12-2007, Sunday-18:14:19
[Kein Betreff] - von Hajo - 10-12-2007, Monday-12:55:03
[Kein Betreff] - von wernieman - 10-12-2007, Monday-13:06:32
[Kein Betreff] - von Hajo - 10-12-2007, Monday-13:34:52
[Kein Betreff] - von wernieman - 10-12-2007, Monday-13:43:18
[Kein Betreff] - von Wurzelgnom - 10-12-2007, Monday-14:12:42
[Kein Betreff] - von hellmade - 10-12-2007, Monday-15:27:14
[Kein Betreff] - von wernieman - 10-12-2007, Monday-15:53:44
[Kein Betreff] - von hellmade - 10-12-2007, Monday-17:16:39
[Kein Betreff] - von hellmade - 10-12-2007, Monday-17:29:12

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste