Mac OS X - Modify an Installation with Scripts(1)
来源:互联网 发布:淘宝详情页的无线链接 编辑:程序博客网 时间:2024/05/16 12:55
While processing, the Installer.app will look for some name-predefined executables to process customized operation. Theoretically, users can use these executables to do everything they want. However, according to Apples's official documentation, there are two kind of actions discouraged to do:
1. fix issues such as incorrect file permissions
2. call any applications with UI
After some test, I found these two recommendations can be ignored until Tiger(10.4). It seems that the Apple takes it for furture compatibility.
You can refer "Software Distribution Legacy Guide" for details to utilize the scripts in installation. Here I want to note something not mentioned in the documentation or different with it.
1. $1($PACKAGE_PATH) should be the package file absolute path. however, if there is space among the path string, Installer will take the last piece as the path. For example: Installer will cut "/Users/Admin/Projects/My Tools.mpkg" to "Tools.mpkg"
2. Relevant to the first one. If you want to specify a path containing space, you should use slash "/" to catenate two pieces. For example: you should use "/Applications/My/ Tools.app/" instead of "/Applications/My Tools.app/"
3. The names of the predefined executables is case sensitive.
VolumeCheck, InstallaionCheck
preinstall, preupgrade, postinstall, postupgrade
1. fix issues such as incorrect file permissions
2. call any applications with UI
After some test, I found these two recommendations can be ignored until Tiger(10.4). It seems that the Apple takes it for furture compatibility.
You can refer "Software Distribution Legacy Guide" for details to utilize the scripts in installation. Here I want to note something not mentioned in the documentation or different with it.
1. $1($PACKAGE_PATH) should be the package file absolute path. however, if there is space among the path string, Installer will take the last piece as the path. For example: Installer will cut "/Users/Admin/Projects/My Tools.mpkg" to "Tools.mpkg"
2. Relevant to the first one. If you want to specify a path containing space, you should use slash "/" to catenate two pieces. For example: you should use "/Applications/My/ Tools.app/" instead of "/Applications/My Tools.app/"
3. The names of the predefined executables is case sensitive.
VolumeCheck, InstallaionCheck
preinstall, preupgrade, postinstall, postupgrade
- Mac OS X - Modify an Installation with Scripts(1)
- Mac OS X - Modify an Installation with Scripts(2)
- Mac OS X - Modify an Installation with Scripts(3)
- Mac OS X - Modify an Installation with Scripts(4)
- Mac OS X - Modify an Installation with Scripts(5)
- HowtoPhing/PHPUnit Installation unter Mac OS X
- Mac OS X - Apple Events (1) - Building an Apple Event
- Mac OS X: 实用脚本程序(bash scripts)系列
- Mac OS X: 实用脚本程序(bash scripts)系列-2
- Mac OS X: 实用脚本程序(bash scripts)系列-3
- Mac OS X: 实用脚本程序(bash scripts)系列-4
- Mac OS X: 实用脚本程序(bash scripts)系列-5
- Mac OS X: 实用脚本程序(bash scripts)系列-6
- Mac OS X: 实用脚本程序(bash scripts)系列-6
- Mac OS X: 实用脚本程序(bash scripts)系列-7
- Mac OS X: 实用脚本程序(bash scripts)系列-8
- Mac OS X: 实用脚本程序(bash scripts)系列-9
- Mac OS X: 实用脚本程序(bash scripts)系列-10
- 树和自联表(一)
- 固定表格大小
- 简单json对象for asp
- 找了自己的第一份工作
- .net2005 radiosbuttonlist 控件控制文本显示!
- Mac OS X - Modify an Installation with Scripts(1)
- http多线程下载
- 向HTML元素动态添加事件!
- 〖整理〗管理时间的21条原则
- VC小技巧(10)-----运行后自删除程序
- 去Live Messenger广告,共享文件夹
- 关于Atlas和ASP.NET Ajax
- 3.9~3.12
- 抽象工厂模式