且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ClickOnce应用程序在登录后全部重新安装

更新时间:2023-02-21 22:15:02

嗨Pete,

为了帮助您缩小这个问题的范围,我需要与您确认以下内容提示。

In order to help you narrow down this issue, I need to confirm with you the following tips.

>>他们有许多ClickOnce应用程序,其中三个是VSTO Office加载项,另外两个不是;所有这些都是用VB.Net开发的Visual Studio& .NET 4.0。

>>They have a number of ClickOnce applications, three are VSTO Office add-ins, the other two are not; all developed in VB.Net with Visual Studio & .NET 4.0.

1.您是说VSTO Office加载项和其他类型的应用程序都有相同的问题?

1.Did you mean that both VSTO Office add-ins and the other type of application have the same issue?

如果只是在Office加载项中出现,是否为所有用户安装了此加载项?您介意与我们分享Visual Studio和Office版本吗?

If that just occurs in Office add-in, whether this add-in are installed for all users? Would you mind sharing us the version of Visual Studio and Office with us?

>>不同网站上同一软件的其他用户没有这个问题。

>>Other users of the same software at different sites do not have this problem.

>>仅供参考,所有用户都安装了Dropbox和Kaspersky防病毒软件(并不是说我建议这些产品无论如何都要受到责备)。

>>FYI, all users have Dropbox and Kaspersky anti-virus installed (not that I'm suggesting those products are in any way to blame).

2.在该网站中找不到个人电脑,而这个问题安装了同样的产品?以及这些网站中的PC之间是否存在其他差异?

2.Did the PCs in that site which dones't have this issue installed the same products? And whether there are any other differences between PCs in these sites?

为了确认此问题是否与其他软件有关,如果可能,我们可以暂时禁用所有这些产品并在启动时禁用它们自动运行,然后安装clickonce应用程序进行测试。

And in order to confirm whether this issue is related to the other software, if possible, we could disable all these products temply and disable them auto running when starts, then install clickonce applications for test.




>>经过初步调查后,我们发现AppData \ Local \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Microsoft \ Windows \ CurrentVersion \Deployment\SideBySide\2.0 \ComponentStore_RandomString
已更改。重新安装应用程序时,将在原始缓存文件夹旁边创建一个新的ClickOnce缓存文件夹(名称从ComponentStore_RandomString键派生)。

>>After initial investigation we found that the application files in AppData\Local\Apps\2.0 are stil present when this occurs but the registry value in HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment\SideBySide\2.0\ComponentStore_RandomString has changed. When the applications reinstall, a new ClickOnce cache folder (with a name derived from the ComponentStore_RandomString key) is created alongside the original cache folder.

3。使用#2动作禁用其他软件,确认何时发生这些更改,我建议您在安装clickonce应用程序后检查缓存文件夹路径和注册表值,并将这些值存储到文件中,然后注销
并再次登录,然后再次检查这些值,然后重新安装该应用程序,将它们与存储在该文件中的这些值进行比较。

3. Uder the #2 actions to disable the other softwares, to confirm when these changes occurs, I would recommend you check the cache folder path and the registry value after installing that clickonce application and store these values to a file, then log off and log in again, then check these values again before re-installing that application, compare them with these onse stored in that file.

由于此问题每次都不会发生注销并再次登录,您可以在每次登录时存储这些值,并分享在发生此问题时是否更改这些值。

Since this issue doesn't occur each time after log off and log in again, you could store these values each time log in, and share whether they are changed when this issue occurs.

问候。

Carl