[英]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.