简体   繁体   English

Windows 安装程序必须写入注册表(与 NSIS 一起安装的编译的 python 应用程序)

[英]It is necessary for a windows installer to write to registary (compiled python app installed with NSIS)

I have an application written in python, compiled to .exe with pyinstller that I would like to distribute with the installer NSIS.我有一个用 python 编写的应用程序,用 pyinstller 编译为 .exe,我想与安装程序 NSIS 一起分发。

Currently the installer unpacks to Program Files (x86) and creates desktop shortcuts, however does not write to registery.目前,安装程序会解压到 Program Files (x86) 并创建桌面快捷方式,但不会写入 registery。 Having read some tutorials I see installers generally write a reference to the installed software to the windows registery, but it is not clear if this is always done.阅读了一些教程后,我看到安装程序通常会将已安装软件的引用写入 Windows 注册,但不清楚是否总是这样做。 Is this really necessary?这真的有必要吗? My app is standalone and I would like to avoid writing to registery if I can.我的应用程序是独立的,如果可以的话,我想避免写信给 registery。

Any references for futher reading would be much appreciated as am having trouble finding much on this.任何进一步阅读的参考资料将不胜感激,因为我在这方面找不到太多东西。

Writing to the registry is optional but if you are distributing your app in a installer instead of a zip file then it is pretty common to register your uninstaller so that it is displayed in the control panel.写入注册表是可选的,但如果您在安装程序而不是 zip 文件中分发应用程序,那么注册卸载程序以便它显示在控制面板中是很常见的。

The NSIS documentation tells you where and what to write . NSIS 文档会告诉您在何处编写以及编写什么内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PyQt 应用程序在 NSIS 安装程序后激活 Windows Focus Assist - PyQt App activates Windows Focus Assist after NSIS installer Python - 将 python 模块添加到由 Windows 上的 py 安装程序编译的 .exe 文件 - Python - Adding python modules to .exe file compiled by py Installer on Windows Cython编译的应用程序需要安装python吗? - Cython compiled app requires python to be installed? 如何用Python编写Windows SDK的安装程序? - How do I write an installer for a Windows SDK in Python? Windows上适用于Python的安装程序 - Installer for Python Executable on Windows Python安装程式无法在Windows 8上运作 - Python installer not working on windows 8 如何让python-for-android的安装程序脚本识别Windows系统上安装的pbs? - How do I get python-for-android's installer script to recognize the installed pbs on a Windows system? 切换python安装程序安装的python版本(mac) - Switching python versions (mac) installed by python installer 如何为Windows Box编写安装程序(安装python,python模块和其他依赖项)? - how to write installer (installing python, python modules and other dependencies) for windows boxes? 不管是否已安装python(在Windows上),都将python嵌入C ++应用程序中 - Embed Python in C++ app regadless if python is installed or not (on windows)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM