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