I have a Custom Action set which launches an executable which has been installed to the users local hard drive. This executable needs to open an xml file which is located in the same NETWORK directory as the msi file.
The problem is that the executable launches successfully, but an Access Denied error occurs when it tries to open the network file.
However, if the executable is launched directly, it works fine.
This leads me to believe that when the MSI shells out to the executable, somehow the Read/Write access is being limited on the exe.
I've tried setting permissions, etc. on the file but nothing seems to work.
Is there a way around this?
The actual process the exe file does is as follows:
Opens a local xml file (succesfully)
Reads an entry from the xml which points to the launched MSI directory on the network (successfully)
Checks for the existance of an xml file using the above entry with a FileInfo object (fails)
If I skip the file exists check, then it attempts to open the xml file based on the path (fails)
Yet if I just launch the exe directly from the directory AFTER the install has been completed, it works fine.
???
Thanks.
Carp