My WIX (3.5) installer should copy the richtx32.ocx file to the windows\system32 dir and register it by using some command line statements but it does not work. The file is not copied to the folder.
<Directory Id="SystemFolder">
<Component Id="ComponentName" Guid="someGUID">
<File Source="someSourceFolder\richtx32.ocx" />
</Component>
</Directory>
The problem occurs on XP and also on 7 and yes, I have started the MSI as admin user. In case the file is copied to another directory (eg. the program files directory of my application), everything works fine.
The error occurs only with the system32 dir. I also tried it with another .ocx file to see wether the problems lies within the file itself, but it seems as if I cannot copy any file to the folder.
Any ideas?
UPDATE:
If I add a "test.txt" file to the component (which btw. has some more files then only the richtx32.ocx) it suddenly works! But why does the installer only copy all files if there is a different file like .ocx or .dll?? I don't want to copy a dummy text file just to let it work... There must be a reason.