You receive a "cannot open the device or file specified" error message when you try to install a Windows Installer package

Article translations Article translations
Article ID: 834549
Expand all | Collapse all

On This Page

Symptoms

When you try to install a Microsoft Windows Installer package, you may receive the following error message:
The system cannot open the device or file specified

Cause

This problem may occur if one or more of the following conditions are true:
  • The folder in which the Windows Installer package is located is encrypted or if the folder in which you want to install the Windows Installer package is encrypted.
  • The temp folder (%TEMP%) is encrypted on a version of Windows other than Windows Vista. Encryption may have been enabled for this folder by the user or through a tool such as the Microsoft Encrypting File System Assistant (EFS Assistant).

Resolution

To resolve this problem, use one of the following methods:
  • Save the Windows Installer package to a folder that is not encrypted.
  • Install the Windows Installer package to a folder that is not encrypted.
  • Turn off encryption on the %TEMP% folder.

More information

Steps to reproduce the behavior

  1. In your system root folder, create a new folder that is named msiTest.
  2. Copy the Setup file of the Windows Installer package that you want install to the msiTest folder.
  3. Encrypt the msiTest folder:
    1. Right-click the msiTest folder, and then click Properties.

      The msiTest Properties dialog box appears.
    2. In the msiTest Properties dialog box, click the General tab.
    3. On the General tab, click Advanced.

      The Advanced Attributes dialog box appears.
    4. In the Advanced Attributes dialog box, click to select the Encrypt contents to secure data options, and then click OK.
    5. Click OK.
  4. In the msiTest folder, double-click the Setup file of the Windows Installer package.

References

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
307364 How to install the Windows Installer by using Visual Studio .NET
For more information, visit the following Microsoft Web sites:
http://msdn2.microsoft.com/en-us/library/aa372866.aspx

Properties

Article ID: 834549 - Last Review: March 8, 2013 - Revision: 4.0
Keywords: 
kberrmsg kbmsifaq kbsetup kbprb KB834549
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com