Hi,
in our project we want to copy 2 files, which are not included in the *.msi file. Therefore i created a managed custom action which copies the files using File.Copy(). The files should be copied to my installation dir, which is somewhere under C:\Program Files\...
With Windows XP everything works fine. But in Windows 7 their is a problem with the UAC i guess:
Althought the log-file says the files are copied to the desired location (e.g. C:\Program Files\MyApp\") they are not there. Instead they are copied to something like "C:\Users\MyUser\AppData\Local\VirtualSotre\Programm Files (x86)\MyApp\". I guess this has something to do with missing priviliegs for modiving the program folder? Anyone an idea what to do?
This is how i call the custom action in wix:
<CustomAction Id='InstallSource' BinaryKey='SrcInstActionDll' DllEntry='InstallSourceFiles' Execute='deferred' Impersonate='no'/>
<CustomAction Id="InstallSource.SetProperty" Return="check" Property="InstallSource" Value='Files=[SourceDir]$(var.SourceZipName),[SourceDir]$(var.SymbolsZipName);TargetDir=[ParentFolder]' Execute='immediate'/>
The custom action itself doesn't do much more then calling File.Copy().
Other files which are copied during the installation process by the installer work perfectly with windows 7. Only the files which are copied using the custom action have the described problem.
Thanks Daniel