Good afternoon,
I'm building an installer that installs one executable, a Service, and a web site. All 3 things are successfully installed. They each also refer to a common SQLite database file that also gets installed.
Then I need to create a custom file that contains the path to the SQLIte database file. The file contains a simple JSON structure with the path to the database. I created a C# custom action and it successfully creates this custom file, so everything appears to be working fine up to this point.
But then I need to copy the file to the C:\Windows\System32 folder so that the Service can see it. I have a FileInfo object representing the file I've created, then I use the CopyTo method on that object, providing the path to the system32 folder using the [System64Folder] property.
I've debugged the custom action, and it is properly creating the file, however the CopyTo the system32 folder doesn't appear to do anything. If I specify a different folder the file is copied correctly--it's only the system32 folder that it doesn't get copied to. No exceptions are thrown by the CopyTo method call.
What could be going wrong? Why isn't the file copied to the system32 folder but is copied to other folders?
The installer is running as an administrator.
Thanks for your help,
Alfred
FOLLOW US
Get the latest news in Application Packaging