简体   繁体   English

安装后不需要的MSI外观

[英]Unwanted MSI appearance after installation

I used windows installer (msi project) and actually I have the msi file after installation it throws a shortcuts to the desktop. 我使用Windows Installer(msi项目),安装后实际上有msi文件,它会向桌面抛出快捷方式。

My problem is when i double-click on the shortcut for my application, it displays somthing like the installation then it runs my application. 我的问题是,当我双击应用程序的快捷方式时,它会显示类似安装的内容,然后运行我的应用程序。 I don't want the installtion windows to appear where my application doesn't need to throw any file or to install something before running all pre-requests are installed through the msi file. 我不希望安装窗口出现在我的应用程序不需要通过运行msi文件安装所有预请求之前抛出任何文件或安装任何东西的地方。 I want that when the end-user clicks on the shortcut, it runs the application directly ... 我希望当最终用户单击快捷方式时,它可以直接运行应用程序...

I hope I explained my problem well. 我希望我能很好地解释我的问题。

One additional note i'm using VS 2005, C# 我在使用VS 2005,C#时还要注意一点

What if i want to remove this action where it always happens. 如果我想删除始终发生的该操作怎么办。 everytime i double click on the exe file it appears this window . 每次我双击exe文件时,都会出现此窗口。 my application is not so complicated to so. 我的申请没有那么复杂。

EDIT: where can i find the log file ?!? 编辑:我在哪里可以找到日志文件?

please help. 请帮忙。 thnx indavence thnx痴迷

One of the " features " of the MSI installation system is that it can automatically repair some things when your application is run. MSI安装系统的“ 功能 ”之一是,当您运行应用程序时,它可以自动修复某些问题。

A good way to see this in action is to have two versions of Microsoft Office installed side-by-side. 实际操作的一个好方法是并排安装两个版本的Microsoft Office。 After running MS Word 2007, an invocation of MS Word 2003 will start with MsiExec popping up to fix a few things before the application starts. 运行MS Word 2007之后,将通过弹出MsiExec来启动对MS Word 2003的调用,以修复应用程序启动前的一些问题。

Almost certainly, what you're seeing is this kind of repair - check the log file and find out what is being fixed, then alter your installation project so things aren't broken on first install. 几乎可以肯定,您所看到的是这种修复-检查日志文件并找出已修复的问题,然后更改安装项目,以便在首次安装时不会损坏。

Hope this helps. 希望这可以帮助。

That quick installer operations you saw is very often issue. 您看到的快速安装程序操作经常会出现问题。 I think it appears only on first run and never again. 我认为它只会在第一次运行时出现,而不会再出现。 Never mind. 没关系。 Maybe Windows Installer service makes some registration, etc. 也许Windows Installer服务会进行一些注册等。

You might want to refer to How Windows Installer Shortcuts Work and Windows Installer Logging 您可能要参考Windows Installer快捷方式的工作方式Windows Installer日志记录

The easiest solution if you really want to avoid this behaviour is to manually add a shortcut rather than having Windows Installer do it for you. 如果您确实要避免此行为,最简单的解决方案是手动添加快捷方式,而不是让Windows Installer帮您完成。

My guess is that you've probably got some HKCU keys in the installer that need to be checked/repaired for the current user. 我的猜测是您可能已经在安装程序中找到了一些HKCU密钥,需要为当前用户进行检查/修复。 Have you run MSI validation? 您是否运行过MSI验证? This can often highlight issues that cause unnecessary repairs. 这通常可以突出显示导致不必要维修的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM