View Full Version : Customize Action (.exe) cant write to disk

09-29-2005, 03:15 AM
I added a Customize Action (.exe)
When running setup.exe, my.exe runs as planned, but my.exe doesn't/can't write to disk.

If I were to run my.exe from command line, it -does- write to disk

Why/How does InstallShield suppress the file access.???


BTW, these dont help, I tried all 4 combinations :
"Wait for action" selection currently "yes"
"Ignore exit code" selection "yes"

09-29-2005, 10:53 AM
InstallShield doesn't prevent this; chances are good there is a different cause to this, such as running in a different directory or on a different drive than you think you are, and then maybe trying to open an invalid path. If you can edit the EXE you are launching, try having it inform you where it is trying (and failing) to write, or something similar to get more information about exactly how it is failing.

I should also clarify though that it is possible the permissions with which it is running are different from when you test it directly. That could be due to running under Windows Installer.

09-29-2005, 08:06 PM
I am the original poster...

I narrowed the problem a little more.
my.exe did write to disk at c:\windows\system32

In dos terms, i would like to

then my.exe would work as planned.


09-30-2005, 11:03 AM
I don't have the Express edition in front of me, so this advice may be a little off. Try looking for the Working Directory parameter to your custom action, and set it to INSTALLDIR. If you don't have it, see if you can find it in a different kind of EXE Custom Action...

09-30-2005, 11:39 AM
I am using vbscript not write though. First thing I do is

strValue = session.property("INSTALLDIR")

and then use that to create your file name.