Sporadic \"Cannot open .dfm\" errors

Got a problem you cannot solve? Try here.
jsmith
Posts: 178
Joined: Tue Nov 04, 2008 10:47 am

Sporadic \"Cannot open .dfm\" errors

Postby jsmith » Tue Jul 28, 2009 2:50 pm

We have been getting sporadic reports from QA that the single exe installer is failing to launch. Here is one such description:

During an upgrade from a recent nightly build to today's, I immediately get an error during the process before any dialogs occur. The error is 'Runtime error in install:
Cannot open file "C:\\DOCUME~\\..\\LOCALS~1\\Temp\\mia\\prereq.dfm". The system cannot find the file specified'

Before the runtime error I first saw a dialog box stating this: 'The process cannot access the file because another process has locked a portion of the file.'

It was after running the installer the 2nd time that the runtime error popup occurred.


The same build of the installer succeeds on many other machines, and even completes successfully on the same machine when tried again a bit later. We never saw anything like this with IA8; the issue only appeared after upgrading to IA9. It's been seen in both IA9.01 and IA9.06. Any idea what might cause this or suggestions on how to prevent it?
using InstallAware 9 R2 (Build Moya.sp3.070910)

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue Jul 28, 2009 4:22 pm

I don't think InstallAware 9 is your problem. I'd check to see why the file in the folder is locked. Anti-virus or other software such as indexers?
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

jsmith
Posts: 178
Joined: Tue Nov 04, 2008 10:47 am

Postby jsmith » Wed Jul 29, 2009 9:11 am

Thanks, Michael. I've posed this same question to QA on our internal bug report. They responded that Symantec AV is installed but not enabled.
using InstallAware 9 R2 (Build Moya.sp3.070910)

jsmith
Posts: 178
Joined: Tue Nov 04, 2008 10:47 am

Postby jsmith » Wed Jul 29, 2009 11:43 am

QA has reported that Google Desktop is installed on a computer where this issue occurs. Is it known that installations could fail if indexing software such as this is running?
using InstallAware 9 R2 (Build Moya.sp3.070910)

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Wed Jul 29, 2009 1:18 pm

It might be Symantec - anti viruses have file system drivers which are loaded and functional, even if not enabled, and still intercepting file system calls in pass-through mode. A bug in Symantec's file system driver could be causing this error, the only way to be certain is to completely remove it.

Google's indexer might also be an issue, but I find that less likely.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

Chris Miller
Posts: 66
Joined: Fri Mar 09, 2007 9:46 am
Location: Albany, NY
Contact:

Postby Chris Miller » Thu Jul 30, 2009 12:28 pm

jsmith wrote:QA has reported that Google Desktop is installed on a computer where this issue occurs. Is it known that installations could fail if indexing software such as this is running?


I've seen that happen with Microsoft's indexing service. It's possible that Google's service could trying to trying access the file at the same as the installer. It seems odd that Google would be indexing that folder, it should know enough to leave a folder designed for temporary files alone,

If your QA people can repeat the problem more or less reliably, have them run Microsoft's Process Monitor while the installer is running. If the problem is still occurring, the Process Monitor log should be able to identify who was trying to access prereq.dfm.

jsmith
Posts: 178
Joined: Tue Nov 04, 2008 10:47 am

Postby jsmith » Thu Jul 30, 2009 12:32 pm

Thanks for the reply, Chris. It's not exactly reliable, but it does usually happen on the same computer. I think I'm going to suggest that they run procmon every time they upgrade our software on this system...
using InstallAware 9 R2 (Build Moya.sp3.070910)

SYNpas
Posts: 1
Joined: Fri Nov 13, 2009 6:42 am

Runtime Error - can not find PREREQ.DFM

Postby SYNpas » Fri Nov 13, 2009 6:50 am

My system:

WinXP-SP2
McAfee (real time file scan = deactivated)

InstallAware 7

Always this message:

"
Runtime error in install:
Cannot open file "C:\\doc...\\user\\local...\\Temp\\mia\\prereq.dfm
"

The mentioned temp directory does NOT contain the file "prereq.dfm".
Only the following files can be found:

icon.ico
mMSIExec.dll
ApplicationName.msi

What can I do ?

Thank you all,
Frank

Chris Miller
Posts: 66
Joined: Fri Mar 09, 2007 9:46 am
Location: Albany, NY
Contact:

Postby Chris Miller » Sun Nov 15, 2009 7:06 am

I would run the Sysinternals Process Monitor (procmon.exe), a free download from Microsoft. That will show you which process are accessing the files in question.

It could be an antivirus app, a indexing utility, or something in your own script. I had some code that did some housekeeping in one of my scripts and it was too aggressive and would delete the temp installer files before they could be used.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 64 guests