ClickOnce应用程序在登录后全部重新安装 [英] ClickOnce applications all reinstall after login

查看:86
本文介绍了ClickOnce应用程序在登录后全部重新安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个站点的许多用户在注销后重新安装ClickOnce部署的应用程序时遇到间歇性问题。他们有许多ClickOnce应用程序,其中三个是VSTO Office加载项,另外两个不是;所有使用Visual Studio& amp ;;在VB.Net中开发了
.NET 4.0。每次他们注销时都不会出现这个问题,但往往会让人讨厌。通常在登录后,用户将看到ClickOnce应用程序的快捷方式已丢失其图标,然后打开
快捷方式会导致安装程序运行。同样,打开Office会启动Office Customization Installer,它会重新安装加载项。不同站点的同一软件的其他用户没有这个问题。

A number of users at one site are experiencing an intermittent problem with ClickOnce deployed applications reinstalling after logging off. 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. The problem does not occur every time they log off but often enough to be annoying. Typically after logging on, the user will see that shortcuts to the ClickOnce applications have lost their icons then opening the shortcut causes the installer to run. Similarly, opening Office launches the Office Customization Installer which re-installs the add-ins. Other users of the same software at different sites do not have this problem.

在初步调查后,我们发现AppData \ Local \ Apps \2.0中的应用程序文件在stil时存在发生这种情况但HKEY_CURRENT_USER \ Software™\\ Class \ Software@\\Microsoft \ Windows \ CurrentVersion \Deployment \SideBySide \2.0 \ ComponentAdore_RandomString
中的注册表值已更改。重新安装应用程序时,将在原始缓存文件夹旁边创建一个新的ClickOnce缓存文件夹(名称从ComponentStore_RandomString键派生)。缓存位置注册表值已更改的事实解释了为什么
重新安装应用程序(无法找到以前安装的应用程序文件)但是导致此注册表值不断变化的原因是什么?用户未使用Citrix和IT支持表示没有运行登录脚本。仅供参考,
所有用户都安装了Dropbox和卡巴斯基反病毒软件(并不是说我建议这些产品有任何责任)。

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. The fact that the cache location registry value has changed explains why the applications are being reinstalled (the application files from the previous installation cannot be found) but what is causing this registry value to keep changing? The users are not using Citrix and IT support say there are no login scripts running. FYI, all users have Dropbox and Kaspersky anti-virus installed (not that I'm suggesting those products are in any way to blame).

任何人都可以建议为什么默认注销后ClickOnce应用程序缓存位置会不断变化?

Can anyone suggest why the default ClickOnce Application Cache location keeps changing after logging off?

谢谢

Pete

Xenacode Ltd

Pete
Xenacode Ltd

推荐答案

嗨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


这篇关于ClickOnce应用程序在登录后全部重新安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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