On Fri, Mar 19, 2010 at 9:29 PM, Dario Griffo <dariogri...@gmail.com> wrote:
> 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 > > Sounds like you're using .NET, if you use Assembly.GetExecutingAssembly().Name.CodeBase (or something not too far from that, can't remember the exact property names off hand), then you can get the directory the service exe is in, and use that path instead of the "working" directory. Cheers, Dave. ------------------------------------------------------------------------------ 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