Re: [WiX-users] How to Start a Service?

2007-11-08 Thread Richard.Foster
One of the other Richard's wrote:

 How do you know that your service starts properly at all?

 Since you're installing it, I assume that you've written and debugged
 it already, but you didn't say.

A very common problem (which appears frequently on the mailing list)
related to installation of services is that the service has a dependency
on something (e.g. on debug versions of runtime files, or even just
standard runtime files) that may not be present on the end user's
machine.

Another very common problem is inappropriate sequencing of the service
start operation. An example would be attempting to start a service
before the files have been installed. (Don't laugh... that really has
happened!)

One thing I find helpful in such situations is at the point when the
installation fails, I switch immediately (without acknowledging the
error) to the manage my computer services area and attempt to start
the service manually. Typically it will also fail there, and you can
then look for missing dependencies etc.

Hope this helps.

Regards,
Richard



* C O N F I D E N T I A L I T Y N O T I C E *
---
The content of this e-mail is intended solely for the use of the individual or 
entity to whom it is addressed. If you have received this communication in 
error, be aware that forwarding it, copying it, or in any way disclosing its 
content to any other person, is strictly prohibited. Quixote Traffic 
Corporation is neither liable for the contents, nor for the proper, complete 
and timely transmission of (the information contained in) this communication. 
If you have received this communication in error, please notify the author by 
replying to this e-mail immediately and delete the material from any computer.



-
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


Re: [WiX-users] How to Start a Service?

2007-11-08 Thread Richard

In article [EMAIL PROTECTED],
ar [EMAIL PROTECTED]  writes:

 Error 1923. Service 'foobar Service' (Foobar.exe) could not be installed. 
 Verify that you have sufficient privileges to install system services.
 MSI (s) (18:E8) [10:42:57:784]: Product: Foobar 1.0 -- Error 1923. Service
 'foobar Service' (Foobar.exe) could not be installed.  Verify that you have
 sufficient privileges to install system services.

How do you know that your service starts properly at all?

Since you're installing it, I assume that you've written and debugged
it already, but you didn't say.
-- 
The Direct3D Graphics Pipeline -- DirectX 9 draft available for download
  http://www.xmission.com/~legalize/book/download/index.html

Legalize Adulthood! http://blogs.xmission.com/legalize/

-
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


Re: [WiX-users] How to Start a Service?

2007-11-08 Thread ar

we have a setup.exe to install our product.
If I install  using setup.exe I am able to see the sevice running
I am using the same Exe for my .msi . I think there is no problem with the
exe.

If you have some sample service shall you  please share it with me.
I appreciate your help. Thanks.

Richard-45 wrote:
 
 
 In article [EMAIL PROTECTED],
 ar [EMAIL PROTECTED]  writes:
 
 Error 1923. Service 'foobar Service' (Foobar.exe) could not be installed. 
 Verify that you have sufficient privileges to install system services.
 MSI (s) (18:E8) [10:42:57:784]: Product: Foobar 1.0 -- Error 1923.
 Service
 'foobar Service' (Foobar.exe) could not be installed.  Verify that you
 have
 sufficient privileges to install system services.
 
 How do you know that your service starts properly at all?
 
 Since you're installing it, I assume that you've written and debugged
 it already, but you didn't say.
 -- 
 The Direct3D Graphics Pipeline -- DirectX 9 draft available for download
   http://www.xmission.com/~legalize/book/download/index.html
 
 Legalize Adulthood! http://blogs.xmission.com/legalize/
 
 -
 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
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-Start-a-Service--tf4768465.html#a13656012
Sent from the wix-users mailing list archive at Nabble.com.


-
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


Re: [WiX-users] How to Start a Service?

2007-11-08 Thread Richard

In article [EMAIL PROTECTED],
ar [EMAIL PROTECTED]  writes:

 I am using the same Exe for my .msi . I think there is no problem with the
 exe.

OK, then it comes down to whether or not you are referencing
everything in the ServiceInstall properly.  I've used MSIs to install
and manipulate services and if everything matches properly, its a
no-brainer, but if anything in the ServiceInstall or ServiceControl
tables are specified wrong, then it will fail and you get that generic
error message.

In particular, your display name is *not* used to control the service,
but rather its service name is used.

The ServiceInstall table (and the corresponding element in WiX) is
essentially a table form of all the arguments to the Win32 API
::CreateService and the ServiceControl table (and corresponding
element in WiX) is essentially a table form of the sequence
::OpenService, ::ControlService, and ::CloseServiceHandle.

If your service installs properly outside of your MSI and your MSI
fails, then your data is just plain wrong.  Check all the data against
what your service expects/needs.
-- 
The Direct3D Graphics Pipeline -- DirectX 9 draft available for download
  http://www.xmission.com/~legalize/book/download/index.html

Legalize Adulthood! http://blogs.xmission.com/legalize/

-
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


[WiX-users] How to Start a Service?

2007-11-07 Thread ar

I am trying to start a service Foobar.exe . 
I created a sample.msi using the following code.

When I run sample.msi under administrator I am getting this following Error.

Error 1920. Service 'Foobar.exe' (Foobar.exe) failed to start.  Verify that
you have sufficient privileges to start system services.
MSI (s) (8C:24) [17:03:56:442]: Product: Foobar 1.0 -- Error 1920. Service
'Foobar.exe' (Foobar.exe) failed to start.  Verify that you have sufficient
privileges to start system services.

Shall any one please let me know How to start a service?
I appreciate your Help . Thanks.


Sample.wxs Code for sample.msi




?xml version='1.0' encoding='windows-1252'?
Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'
  Product Name='Foobar 1.0' Id='223C2E86-57FE-40aa-B748-35A45FF3DF30'
Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Acme
Ltd.'

Package Id='----' Keywords='Installer'
  Description=Acme's Foobar 1.0 Installer
  Comments='Foobar is a registered trademark of Acme Ltd.'
Manufacturer='Acme Ltd.'
  InstallerVersion='100' Languages='1033' Compressed='yes'
SummaryCodepage='1252' /

Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt=CD-ROM #1
/
Property Id='DiskPrompt' Value=Acme's Foobar 1.0 Installation [1] /

Directory Id='TARGETDIR' Name='SourceDir'
  Directory Id='ProgramFilesFolder' Name='PFiles'
Directory Id='Acme' Name='Acme'
  Directory Id='INSTALLDIR' Name='Foobar10' LongName='Foobar 1.0'

Component Id='FoobarExe_Component'
Guid='BF5335E2-E60D-4b38-9772-30DAE2F20C6D'
   SharedDllRefCount='no' KeyPath='no'
NeverOverwrite='no' Permanent='no' Transitive='no'
   Win64='no' Location='either'
  File Id='FoobarExe_File' Name='Foobar.exe' 
Source='Foobar.exe' ReadOnly='no' Compressed='yes'
KeyPath='yes' Vital='yes' Hidden='no' System='no'
Checksum='no' DiskId='1' /
  ServiceInstall Id='FoobarExe_ServiceInstall'
DisplayName='foobar Service' Name='FoobarExe' ErrorControl='normal'
  Start='auto' Type='ownProcess' Vital='yes' /
  
  ServiceControl Id='FoobarExe_ServiceControl'
Name='Foobar.exe'  Start='install' Stop='uninstall' Remove='uninstall' /
/Component

  /Directory
/Directory
  /Directory
-- 
View this message in context: 
http://www.nabble.com/How-to-Start-a-Service--tf4768465.html#a13639641
Sent from the wix-users mailing list archive at Nabble.com.


-
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


Re: [WiX-users] How to Start a Service?

2007-11-07 Thread Richard

In article [EMAIL PROTECTED],
ar [EMAIL PROTECTED]  writes:

 Shall any one please let me know How to start a service?

Your service names don't match:

 ServiceInstall Id='FoobarExe_ServiceInstall'
 DisplayName='foobar Service' Name='FoobarExe' ErrorControl='normal'
 Start='auto' Type='ownProcess' Vital='yes' /
   
 ServiceControl Id='FoobarExe_ServiceControl'
 Name='Foobar.exe'  Start='install' Stop='uninstall' Remove='uninstall' /

In one place you call it 'FoobarExe' and in the other place you call
it 'Foobar.exe'.
-- 
The Direct3D Graphics Pipeline -- DirectX 9 draft available for download
  http://www.xmission.com/~legalize/book/download/index.html

Legalize Adulthood! http://blogs.xmission.com/legalize/

-
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