如何在设置中使用图像和图标在Python 3.6中创建MSI [英] How to create MSI in Python 3.6 with images and icon on setup

查看:152
本文介绍了如何在设置中使用图像和图标在Python 3.6中创建MSI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在python 3.6中创建了一个GUI应用程序,它在我的系统上运行正常。现在我想给我的朋友提供相同的GUI应用程序,将它安装在自己的机器上。

我创建的GUI指的是一些图像。



我的要求是任何人都可以安装它,并且可以看到我在申请中使用的所有图像。

我想要创建桌面上的图标快捷方式,就像我们安装的其他应用程序一样。





请帮我创建设置。



谢谢提前。



我尝试了什么:



我试过pytoexe但它不适用于python 3.6

Hi All,

I have created one GUI app in python 3.6 and which is working fine on my system. Now i want to give the same GUI application to my friend to install it on there own machine.
The GUI i have created referring to some images.

My requirement is once anyone can install it and can see all the images which i have used in application.
I want to create the shortcut with the icon on desktop like the other apps which we install.


Please help me to create the setup.

Thanks in advance.

What I have tried:

I have tried pytoexe but it doesn't work for python 3.6

推荐答案

主要问题是你不仅需要分发你的Python应用程序,还要确保在目标上安装Python系统。



所有安装应用程序(如MSI)都会处理复制和安装文件以及创建快捷方式。但它需要熟悉这样的应用程序,比如任何开发工具。



对于安装Python应用程序, Cyrille Rossant - 为您的Python应用程序创建一个独立的Windows安装程序 [ ^ ]。它不使用MSI,而是使用免费的InnoSetup实用程序。
The main problem is that you not only have to distribute your Python application but also ensure that Python is installed on the target system.

Copying and installing files and creating shortcuts are handled by all installation applications like MSI. But it requires to become familiar with such applications like with any development tool.

For installing Python applications there is good description at Cyrille Rossant - Create a standalone Windows installer for your Python application[^]. It does not use MSI but the free InnoSetup utility.


这篇关于如何在设置中使用图像和图标在Python 3.6中创建MSI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆