Martti Malmi 通信

回复:安装、自动运行、v0.1.6

中本聪 · 2009 年 10 月 18 日

SN-10072 附来源、原文与上下文。

阅读语言

我找到了,看到你在改用注册表之前,已经提交过启动文件夹的代码。代码中我没看出明显的问题。我想这取决于“默认情况下并不总是工作”具体是什么问题。是 Vista/UAC 安全机制的问题吗?

I got it, I see you checked in the startup folder code before changing it to registry. I don't see any visible problems in the code. I guess it depends what exactly the problem was with it not always working by default. Was there a Vista/UAC security problem?

引用中本聪此前的文字中本聪来源 ↗

启动文件夹里的快捷方式出了什么问题?如果你能把代码发给我,我想再看一遍,看看能否找出问题所在。注册表代码里的第一个 strcat 应该是 strcpy,否则会间歇性失败。如果快捷方式版本用了同样的代码,也许问题就在这里。

What was the problem with the shortcut in the startup folder? If you could send me the code, I'd like to take another look and see if I can see what the problem was. The first strcat in the registry code should be strcpy, otherwise it would fail intermittently. If the same code was in the shortcut one, maybe that was the problem.

引用 Martti Malmi 的文字Martti Malmi来源 ↗

我为最新版 Bitcoin 做了一个 Windows 安装程序,其中包括自动启动和最小化到托盘功能。安装程序会创建开始菜单快捷方式和一个启动注册表项。我最初是通过在启动文件夹里放快捷方式来实现自动启动的,但发现它在默认情况下并不总能工作,最后改用了注册表项。卸载程序会移除这个注册表项,也可以从选项菜单中禁用它,所以我觉得说到底,它对用户也没有那么大的威胁。

I made a Windows installer for the latest version of Bitcoin, which includes the autostart and minimize to tray features. The installer makes a start menu shortcut and a startup registry entry. I first implemented the autostart with a shortcut to the startup folder, but I found out that it doesn't always work by default and ended up doing it with a registry entry. The registry entry is removed by the uninstaller and can be also disabled from the options menu, so I don't think it's such a big menace to the user after all.

来源

阅读字号

选择适合你的字号,之后阅读会继续使用。