简体   繁体   English

重新启动后IExpress无法找到MSI

[英]IExpress cannot find msi after reboot

I'm using IExpress to combine my bootstrapper and msi file. 我正在使用IExpress结合我的引导程序和msi文件。 It works fine except that if I install the program on a machine without any of the prerequisites (.net 4, sql ce), it will fail. 它工作正常,除了如果我在没有任何先决条件(.net 4,sql ce)的计算机上安装程序,它将失败。 It always fails after rebooting, which happens after installing the .net 4 framework. 重启后总是失败,这是在安装.net 4框架后发生的。 In the error log that it points me to, it gives a message along the lines of 在指向我的错误日志中,它给出了一条消息,内容如下:

Error: Unable to locate application file 错误:无法找到应用程序文件

Restarting the installation after it fails installs it correctly, but this isn't an acceptable solution for this project. 失败后重新启动安装可正确安装,但这不是此项目可接受的解决方案。 Anyone have any ideas about how to fix this? 有人对如何解决此问题有任何想法吗? Let me know if I need to explain anything else. 让我知道是否需要其他说明。 Thanks. 谢谢。

Stephen's right; 斯蒂芬的权利; as soon as the IExpress SFX terminates, it deletes the temporary directory it uses for extraction (something along the lines of %temp%\\IXP000.TMP ). IExpress SFX终止后,它将删除用于提取的临时目录(类似于%temp%\\IXP000.TMP )。 So after the reboot, your MSI is gone. 因此,重新启动后,您的MSI不见了。

To persist your installer files, you'd want to copy everything to a different directory first. 要保留安装程序文件,您需要先将所有内容复制到另一个目录。 You could launch a batch file (eg set the install program command to something like cmd /c persist.bat ). 您可以启动一个批处理文件(例如,将install program命令设置为cmd /c persist.bat类的东西)。 Then persist.bat would look something like: 然后persist.bat看起来像:

@echo off
xcopy /y * "%temp%\myproject\"
msiexec /q /i "%temp%\myproject\install.msi" /l*v "%temp%\myproject_install.log"

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

相关问题 我如何使用iExpress从多个.msi和.exe进行单个设置? - how can i use iExpress to have single setup from multiple .msi and .exe? 每次重新启动后,Visual Studio 2010 “找不到” C:\Users\[USERNAME]\AppData\Local\Temp\1\.NETFramework,Version=v4.0.AssemblyAttributes.vb - Visual Studio 2010 “cannot find” C:\Users\[USERNAME]\AppData\Local\Temp\1\.NETFramework,Version=v4.0.AssemblyAttributes.vb after every reboot 无法使用.msi更新Windows服务 - Cannot update Windows service with .msi 发布后找不到文件位置 - Cannot find File Location after Publishing Windows服务在重新启动后执行不同 - Windows service performs differently after reboot 为什么安装后我的MSI会被卸载? - Why is my MSI uninstalling after installing? 安装MSI后打开文本文件 - Open text file after MSI install 如何在MSI安装完成后运行脚本? MSI使用VS2010 +设置向导创建 - HowTo run a script after MSI installation was completed? MSI created with VS2010 + Setup Wizard 以管理员权限启动后,Visual Studio无法找到引用的程序集 - Visual Studio cannot find referenced Assemblies after starting with Admin privileges Visual Studio 2010找不到可执行文件(从2008年升级后) - Visual studio 2010 cannot find executable (after upgrade from 2008)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM