Forum

Florian

  • Zurück in der Zukunft
Dieses Paket enthält ein Programm, das bestimmt...
September 20, 2006, 12:43:39
Beim Installieren eines Pakets erscheint ja recht oft folgende Meldung. Was ist damit eigentlich genau gemeint? Ich finde den Text recht verwirrend.
_______
"If music be the food of love, play on!”
                         William Shakespeare
Re: Dieses Paket enthält ein Programm, das bestimmt...
Antwort #1: September 20, 2006, 13:21:14
Man korrigiere mich, wenn ich Müll erzähle:
Pakete können ja Skripte enthalten, die vor (z.B. eben um zu prüfen, ob auf dem vorliegenden Computer wirklich installiert werden kann) oder nach (z.B. zum Setzen von Rechten und ähnlichem) der eigentlichen Installation aufgerufen werden.
Das vorher ausgeführte Skript lief dreinst direkt los, wenn Du das Paket doppelgeklickt hast. Es lief also schon durch, bevor Du überhaupt irgend einen Dialog zu Gesicht erhalten und allenfalls die Installation noch hättest abbrechen können. Liegt ja eigentlich in der Natur eines solchen Skripts. Und weil halt so ein Skript auch Böswilliges tun könnte, hat das im Zuge der Diskussionen rund um diese "OS X Würmer" (bzw. Desigstudien dazu) mal jemand als "Sicherheitslücke" angeprangert. Seitdem gibts nun diese dämliche Warnung, bevor das Skript tatsächlich gestartet wird. Ist halt wie mit Vielem, das nach 9/11 eingeführt wurde. Bringt Null und gar nichts für die Sicherheit. Aber die Leute fühlen sich sicherer.  :)
_______
Complete liberty of contradicting and disproving our opinion, is the very condition which justifies us in assuming its truth for purposes of action; and on no other terms can a being with human faculties have any rational assurance of being right. (John Stuart Mill - On Liberty)

Florian

  • Zurück in der Zukunft
Re: Dieses Paket enthält ein Programm, das bestimmt...
Antwort #2: September 20, 2006, 18:05:21
Ach so, ich dachte das wäre was Spezielleres. So liest sich ja auch die Meldung...
Hatte auch die offensichtlich falsche Meinung, daß käme nicht bei jedem Paket, aber anscheinend mittlerweile doch. Installiere kaum mal was per Paket, darum wohl.

Bald auf ihrem Mac:
"Sie haben das Programm doppelgeklickt. Dieses Programm enthält Programmzeilen. Wollen sie wirklich fortfahren?"
_______
"If music be the food of love, play on!”
                         William Shakespeare
Re: Dieses Paket enthält ein Programm, das bestimmt...
Antwort #3: September 20, 2006, 18:17:35
Es kommt schätzungsweise schon nicht bei jedem Paket. Es haben nicht alle so ein Vorprüf-Skript.
_______
Complete liberty of contradicting and disproving our opinion, is the very condition which justifies us in assuming its truth for purposes of action; and on no other terms can a being with human faculties have any rational assurance of being right. (John Stuart Mill - On Liberty)

Florian

  • Zurück in der Zukunft
Re: Dieses Paket enthält ein Programm, das bestimmt...
Antwort #4: September 20, 2006, 18:35:19
Aha! Also doch (nicht)... habe ich falsch verstanden.
Und wie kann der Paketmanager das Skript identifizieren? Es könnte ja auch ganz was anderes sein (was ja mehr oder minder auch angedeutet wird im Dialog), trotzdem wird es ganz genau benannt und noch dazu mit etwas total Harmlosen. Überprüfung, na und? Denkt man sich doch... es müsste heißen: Blabla kann tiefgreifende Änderungen an Ihrem System vornehmen. Geben sie das Admin-Passwort nur ein, wenn sie der Quelle vertrauen!". Oder ähnlich...
Solche Meldungen sind ja echt Windows-tauglich. Oder stehe ich immer noch auf dem Schlauch?
_______
"If music be the food of love, play on!”
                         William Shakespeare
Re: Dieses Paket enthält ein Programm, das bestimmt...
Antwort #5: September 20, 2006, 18:43:01
Es kommt schätzungsweise schon nicht bei jedem Paket. Es haben nicht alle so ein Vorprüf-Skript.

Also, ich kenne keines, wo diese Abfrage nicht kommt. Aber vielleicht installiere ich auch zu wenig.

Ich dachte eh, es ist nicht im Paket, sondern im Dienstprogramm dazu.
Re: Dieses Paket enthält ein Programm, das bestimmt...
Antwort #6: September 20, 2006, 18:54:07
Ich zitier mal aus der Hilfe zum Package Maker (und spar mir mal die Übersetzung). Das bringt vielleicht ein bisschen Klarheit in die Verwirrung und beantwortet einige der Fragen:
Zitat
You can bundle executable files within your package and Installer.app will run these executables during the install. Generally these files will be shell scripts.

In a built package, scripts are stored in the Contents/Resources/ directory of your package and must have their executable bit set. When building a package, scripts and all other resources should be placed in the Install_resources directory or your root. This directory can be specified in the “Scripts” tab of the PackageMaker user interface.
Installation scripts run during the actual installation of your package. Installer.app looks for scripts with specific names at certain times. You should use the following names for your scripts:

preflight: Executed before the installation process.
postflight: Executed after the installation process.
preinstall: Executed before installing a single package. Not executed during an upgrade.
postinstall: Executed after installing a single package. Not executed during an upgrade.
preupgrade: Executed before upgrading a single package. Not executed during an install.
postupgrade: Executed after upgrading a single package. Not executed during an install.
_______
Complete liberty of contradicting and disproving our opinion, is the very condition which justifies us in assuming its truth for purposes of action; and on no other terms can a being with human faculties have any rational assurance of being right. (John Stuart Mill - On Liberty)
Re: Dieses Paket enthält ein Programm, das bestimmt...
Antwort #7: September 20, 2006, 19:03:11
Aus meinem vorherigen Post ergibt sich somit:

Und wie kann der Paketmanager das Skript identifizieren?
Die Warnung kommt einfach immer dann, wenn ein Skript Namens preflight vorhanden ist.

Zitat
Es könnte ja auch ganz was anderes sein (was ja mehr oder minder auch angedeutet wird im Dialog), trotzdem wird es ganz genau benannt und noch dazu mit etwas total Harmlosen. Überprüfung, na und? Denkt man sich doch... es müsste heißen: Blabla kann tiefgreifende Änderungen an Ihrem System vornehmen.
Das preflight dient halt einfach in den meisten Fällen dazu, vor der Installation irgend etwas zu überprüfen. Aber es könnte natürlich, wie ja selbstverständlich auch die zu installierende Software, irgend etwas Böses tun.

Zitat
Solche Meldungen sind ja echt Windows-tauglich.
Ja, sehe ich ähnlich. Wieso es beim preflight eine Warnung geben muss und bei der Software an sich nicht, leuchtet mir auch nicht ein.
_______
Complete liberty of contradicting and disproving our opinion, is the very condition which justifies us in assuming its truth for purposes of action; and on no other terms can a being with human faculties have any rational assurance of being right. (John Stuart Mill - On Liberty)
Re: Dieses Paket enthält ein Programm, das bestimmt...
Antwort #8: September 20, 2006, 19:05:59
Ich dachte eh, es ist nicht im Paket, sondern im Dienstprogramm dazu.

Ja, die Warnung kommt von Installer.app, wenn das ihr übergebene zu installierende Paket  ein preflight Skript enthält.
_______
Complete liberty of contradicting and disproving our opinion, is the very condition which justifies us in assuming its truth for purposes of action; and on no other terms can a being with human faculties have any rational assurance of being right. (John Stuart Mill - On Liberty)

Florian

  • Zurück in der Zukunft
Re: Dieses Paket enthält ein Programm, das bestimmt...
Antwort #9: September 20, 2006, 21:33:32
Danke für die Aufklärung, hat tatsächlich geholfen. :)
_______
"If music be the food of love, play on!”
                         William Shakespeare