如何创建不需要管理员密码的 PackageMaker pkg?
我正在尝试使用 PackageMaker 在 Mac OS X 上创建 Internet 插件的安装程序。我对使用的工具并不挑剔,但它必须是免费的。如果我可以用 PackageMaker 做我想做的一切,那就太好了,因为 CMake/CPack 支持 PackageMaker 和项目(使用 FireBreath) 是用 CMake 构建的。
我遇到的问题是,我仅为当前用户安装插件 - 在 ~/Library/Internet Plugins 中 - 但安装程序仍然坚持要求输入管理员密码!我听说只要您不需要针对 10.5 之前的 Mac OS 版本,就可以将其关闭,但我找不到任何方法来执行此操作。
我错过了什么吗?我应该使用其他工具吗?任何帮助将不胜感激!
I am trying to create an installer for a Internet Plugin on Mac OS X with PackageMaker. I'm not picky about the tool I use, but it needs to be free. It'd be nice if I could do everything I want with PackageMaker because CMake/CPack supports PackageMaker and the project (build with FireBreath) is built with CMake.
The problem I am running into is that I am only installing the plugin for the current user -- in ~/Library/Internet Plugins -- but the installer still insists on asking for the admin password! I have heard that you can turn this off as long as you don't need to target versions of Mac OS previous to 10.5, but I can't find any way to do this.
Am I missing something? Is there a different tool I should use? Any help would be appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的安装程序要求输入管理员密码的事实可能是因为您在安装过程中执行了某些操作,例如您执行了终止网络浏览器的操作。
当我为我的(也是 firebreath)插件构建第一个安装程序并安装在用户目录内时,它并不要求输入管理员密码。在我添加停止 Safari 和 Firebreath 的操作后,我的安装程序开始要求输入管理员密码。
The fact that your installer asks for admin password might be because of some actions you have in your installation process, for example if you have actions to kill web browsers.
When I built my first installers for my (also firebreath) plugin, installing inside the user's directory, it was not asking for admin password. After I added actions to stop Safari and Firebreath, then my installer started asking for admin password.