[英]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.