Autor: Florian
September 20, 2006, 21:33:32
Danke für die Aufklärung, hat tatsächlich geholfen. 

Ich dachte eh, es ist nicht im Paket, sondern im Dienstprogramm dazu.
Und wie kann der Paketmanager das Skript identifizieren?Die Warnung kommt einfach immer dann, wenn ein Skript Namens preflight vorhanden ist.
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.
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.
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.
Es kommt schätzungsweise schon nicht bei jedem Paket. Es haben nicht alle so ein Vorprüf-Skript.