Hi,

I've written the following to start a Windows service:

<*Component* Id='ServiceExeComponent' 
Guid='12345678-D752-4C4F-942A-657B02AE8325'
  SharedDllRefCount='no' KeyPath='no' NeverOverwrite='no' Permanent='no' 
Transitive='no'
  Win64='no' Location='either'>

  <*File* Id='ServiceExeFile' Name='SRVCEX~2.EXE' LongName='ServiceExe.exe' 
Source='c:\Program Files\My Program\ServiceExe.exe'
    ReadOnly='no' Compressed='yes' KeyPath='yes' Vital='yes' Hidden='no' 
System='no'
    Checksum='no' />

  <*ServiceInstall* Id='MyServiceInstall' DisplayName='My Test Service' 
Name='MyServiceExeName'
    ErrorControl='normal' Start='auto' Type='ownProcess' Vital='yes' />

  <*ServiceControl* Id='MyServiceControl' Name='MyServiceExeName'
    Start='install' Stop='uninstall' Remove='uninstall' />

</*Component*>

but when I run the installer, I get a FileNotFoundException thrown. When I 
debug the error it mentions one of my DLLs but I had a look at the directory 
containing my service (c:\Program Files\My Program\) and the DLL seems to be 
there. Does anyone know what the problem is?

Regards, Hasan



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to