有谁知道如何为 Perl 脚本及其依赖库构建 Windows Installer 程序?
我在当地高中兼职计算机技术人员。他们需要一个系统来跟踪该地区的所有计算机(例如计算机的物理位置和库存序列号),并告诉我要保持预算。我坐下来用 Perl/Tk 编写了一个一千行的小脚本,它访问本地服务器上的 PostgreSQL 数据库。
我还成功地用 C++ 编写了一个启动器,并使用 bcc32 对其进行了编译,因此他们可以单击启动器可执行文件来启动程序,而无需在 DOS 中输入任何内容。这工作得很好,我可以通过手动安装它的所有依赖项来自己加载这个程序。
我想构建一个安装程序来自动加载 PostgreSQL 应用程序、Strawberry Perl 以及 Tk 和 DBD::Pg 库,当然最后还有存储我的应用程序的文件夹。那就太好了也能够创建桌面快捷方式或开始菜单项。
有没有人成功地使用软件在 Windows XP 及更高版本上为 Windows Installer 生成 .MSI 文件?如果有的话,你用的是什么,花了多少钱吗?或者,我需要从哪里开始阅读才能编写自己的安装程序?
I work part-time as a computer tech at the local high school. They needed a system to keep track of all the computers in the district (things like physical location of the machines and serial numbers for inventory), and told me to keep it on a budget. I sat down and wrote a little thousand-line script in Perl/Tk, which accesses a PostgreSQL database on the local server.
I also successfully wrote a launcher in C++ and compiled it with bcc32, so they can single-click the launcher executable to start the program without having to type anything into DOS. That works fine, and I can load this program myself by manually installing all the dependencies for it by hand.
I would like to build a setup program to automatically load the PostgreSQL application, Strawberry Perl, as well as the Tk, and DBD::Pg libraries, and finally, of course, the folder my application is stored in. It'd be nice to be able to create desktop shortcuts or start menu items too.
Has anyone had any success with software to generate .MSI files for Windows Installer on Windows XP and above? If so, what did you use, and did it cost any money? Alternatively, where do I need to begin reading in order to write my own setup program?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Nullsoft 脚本化安装系统
Nullsoft Scriptable Install System
我不确定这是否能完成您想要的一切,但是您查看过 Win32::InstallShield?
I'm not sure if this will do everything you want, but have you looked at Win32::InstallShield?