February 24, 2010

Windows Installer Error: System Cannot Open the Device of File Specified

I had been having a problem when installing software that consisted of a single MSI file. Whenever I ran a MSI file I continuously received an error on the screen that prevented the application from being installed. I tried it on several installs, and they all produced the same error.

Realizing it wasn’t the actual individual installations, I began to experiment with a few file settings. After a few tests I determined the problem and was able to easily correct it so I could run installations again.

Windows Installer Error 2755

As mentioned above, I continuously received an error when running MSI (Windows Installer) files to install an application. After going through the setup settings, I clicked “Next” to start the actual install.

After a few seconds, I was presented with a message box with the following text:

The system cannot open the device or file specified.

After clicking the “Cancel” button, a second error appeared on the screen:

The installer has encountered an unexpected error installing this package. This may indicated a problem with this package. The error code is 2755.

I performed a few tests and determined that the problem was related to the fact that the MSI file was encrypted. Once I removed the encryption, I was able to run the install without any issues.

Turning off File Encryption

If your are experiencing a similar problem, you can turn off the encryption of the file and try executing the install again. To turn it off, use the following steps:

  1. Navigate to the installation file in Windows Explorer.
  2. Right-click the file and select “Properties”.
  3. In the properties window, click the “Advanced” button.
  4. Uncheck the “Encrypt contents to secure data” checkbox.
  5. Click “OK” to close the window, and then “OK” again to close the properties window.

After removing the encryption, try the install again to see if it removed the error.

No comments: