简体   繁体   中英

WIX Installer Error: The system cannot open the device or specified file

I have a WIX installer that acts as a content installer for users. It's supposed to install these files in a specific directory. Unfortunately when I run it I get the following error: "The system cannot open the device or specified file." This then gives me error code 2755 after canceling the install (retry does not work).

I've looked through other questions with similar issues, and it does not appear to be an encryption problem on temp, the install folder, or the MSI installer itself - these all appear fine. This also isn't a problem with the C:\\Windows\\Installer folder being read-only.

I've never had a problem with a WIX installer before. What other things can I try to get this working?

对我来说,当安装程序以管理员身份运行时问题解决了。

I was seeing all of the following errors when installing my 3.5 GB .msi generated by WiX:

  • DEBUG: Error 2709: The specified Component name ('cmpF7216C180B7A7119CC61FDB3BD209D5D') not found in Component Table.
  • DEBUG: Error 2755: Server returned unexpected error 110 attempting to install package D:\\...\\setup.msi.
  • The system cannot open the device or specified file

Turning off EmbedCab made them all go away:

<Wix>...
  <Product>...
    <MediaTemplate EmbedCab="no" />

I unfortunately now have 30 cab files to deal with, but at least the install succeeds.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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