Here is the code that I'm using. The problem is that the service starts but in the service I try to read a class in Common.dll using reflection, and before doing that if I print the execution directory is C:\Windows\System32 but the .exe is in my desired directory C:\Program FIles\My Name\ModName\AppName
<Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="CompanyName" Name="MyName"> <Directory Id="ModuleName" Name="ModName"> <Directory Id="ApplicationName" Name="AppName"> <Component Id="MyService" Guid="1b6d9bbd-6a90-4eee-9638-b22188a5b828"> <File Id="Service.exe" Name="Service.exe" Source="Source\Service.exe" KeyPath="yes" /> <File Id="Common_dll" Name="Common.dll" Source="Source\Common.dll" /> </Component> </Directory> </Directory> </Directory> </Directory> -- DarĂo Griffo ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users