应用程序以静默方式重新安装 [英] Application reinstalling in silent mode

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

问题描述

我有一个使用.net安装项目部署的应用程序。直到最近,客户端才遇到软件问题,但突然之间,应用程序一直试图在几台PC上以静音模式重新安装istelf。在Windows 7和XP机器上都发生了

I have an applciation that is deployed using a .net setup project. Until recently the client was experiencing no issues with the software but all of a sudden the application keeps trying to reinstall istelf in silent mode on a few pc's. This has happened on both and Windows 7 and XP machines.

方案如下。我已完全卸载应用程序并使用本地管理员帐户重新安装它。一旦用户登录(该帐户将受到限制)并单击该图标,应用程序将使用
默认设置以静默方式重新安装。这些默认设置不是此用户的正确设置,因此应用程序无法正常运行。

The scenario is as follows. I have completly uninstalled the application and re-installed it using the local admin account. Once the user logs in (the account would be restricted) and clicks on the icon the application reinstalls in silent mode using the default settings. These default settings are not the correct settings for this user and consequently the application does not run correctly.

我遇到的问题是我无法弄清楚为什么应用程序想要在第一次重新安装地点。所有应用程序安装都是一个可执行文件,并创建了2个目录。这些目录只包含设置,并且实际上不需要
来运行应用程序。

The problem i have is that i cannot figure out why the application wants to reinstall in the first place. All the application installs is an executable some dll's and creates 2 directories. These directories only contain settings and are not actually required to run the application.

作为测试的一部分,我可以弄清楚发生了什么,我安装了应用程序并且去了in并手动更改其中一个已安装目录的名称。如果我现在尝试运行该应用程序,它将尝试重新安装自己。如果我取消
安装并重命名该目录,则applciation将正常运行。似乎Windows正在强制重新安装,因为它以某种方式认为部分应用程序丢失了。当我检查相关PC的文件夹和应用程序的所有部分
似乎在客户端PC上。

As part of testing to see could i figure out what is happening, i installed the application and went in and manually changed the name of one of the installed directories. If i now try to run the application it will try to reinstall itself. If i cancel the install and rename the directory back the applciation will run fine. It seems as though windows is forcing a reinstall as it somehow believes that part of the applciation is missing. When i check the relevant PC's the folders and all parts of the application seemed to be there on the clients pc.

基本上我想尝试停止resintall或在最小停止静音模式,以便用户可以为他们选择相关选项...

Basically i want to try and stop the resintall or at a minimum stop the silent mode so that the user could select the relevant option for them...

此设置已在几个不同的网站上使用了几年,我无法弄清楚改变了什么......我的客户现在处于一种有意识的状态重新安装循环。我甚至尝试不安装到c:\program files文件夹中,这个文件夹没有改变
的行为

This setup has been used for several years on several different site and i cannot figure out what has changed... My client is now in a viscious  loop of reinstalling. I have even tried not installing into c:\program files folder which didn't change the behaviour

其中一个文件夹正在安装到"用户的应用程序"中数据文件夹"。

Incidently one of the folders is being installed into the "User's Application Data Folder".

推荐答案

这就是Windows的工作方式。它会记录已安装的所有内容的位置,如果您更改或删除任何修复机制,则会恢复它。 你通过改变文件来复制它,客户端可能正在做类似的事情。发生这种情况时,
应该是应用程序事件日志中的MsiInstaller条目。
That's the way Windows works. It registers the location of everything that's installed and if you change or delete anything the repair mechanism restores it.  You reproduced it by changing files, the client is probably doing something similar. There should be MsiInstaller entries in the Application Event Log when this occurs.


这篇关于应用程序以静默方式重新安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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