Re: [WiX-users] Error 1920. Service 'SomeService' failed to start

2015-03-13 Thread Joel Budreau
I’ve had success tracking down 1920 service-start errors by opening the exe in 
the dependency walker right after the error message is thrown 
(http://www.dependencywalker.com/). It’s not a perfectly reliable tool, but it 
will let you know if your binary is missing any static dependencies that would 
cause it to fail to start up.

> On Mar 11, 2015, at 9:02 AM, Sarvagya Pant  wrote:
> 
> ​​
> ​Hi,
> I have created an installer that is supposed to be get install and start
> the service. The installer does install in most machines , but during
> installation in one of customers, it gave "Error 1920. Service
> 'SomeService'failed to start" error. The user has installed the software as
> an administrator, but still is getting the same error.
> The detailed error is "MSI (s) (6C:18) [14:07:48:771]: Product:
> SomeProduct-- Error 1920. Service 'SomeService' (SomeService) failed to
> start.  Verify that you have sufficient privileges to start system
> services."
> 
> I have also implemented Custom action in the installer using C# that is
> supposed to get the parameter passed to installer and create some config
> file.
> 
> I have following wix file:
> 
> 
> 
> http://schemas.microsoft.com/wix/2006/wi";
> xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension";>
>   Manufacturer="Sarvagya" UpgradeCode="50AB9D2F-93A4-4301-B418-4CB31668DC5A">
> InstallScope="perMachine" />
> 
>
>
> 
>
>  
>
>
>
>  
>
>  
> 
>  
>
>  
>
>  
>
>  
> 
>  
>
> 
>  
>  Id="SOMEFILE"
>  Name="somefile.exe"
>  DiskId="1"
>  Source="$(var.lpa.TargetPath)"
>  Vital="yes"
>  KeyPath="yes" />
> 
>
>Name="SomeService" DisplayName="SomeService"
>Description="This is the service to be started" Start="auto"
>Account="LocalSystem" ErrorControl="normal" Interactive="no" />
> 
> Remove="uninstall"
>Name="SomeService" Wait="yes" />
>
>  
> 
>  
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_thread-vc100-mt-gd-1_55.dll" />
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_thread-vc100-mt-1_55.dll" />
>
>  
>  
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_system-vc100-mt-gd-1_55.dll" />
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_system-vc100-mt-1_55.dll" />
>
>  
>  
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_chrono-vc100-mt-gd-1_55.dll" />
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_chrono-vc100-mt-1_55.dll" />
>
>  
>  
>  
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_filesystem-vc100-mt-gd-1_55.dll" />
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_filesystem-vc100-mt-1_55.dll" />
>
>  
>  
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_date_time-vc100-mt-gd-1_55.dll" />
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_date_time-vc100-mt-1_55.dll" />
>
>  
> 
>  
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_zlib-vc100-mt-gd-1_55.dll" />
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_zlib-vc100-mt-1_55.dll" />
>
>  
>  
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_iostreams-vc100-mt-gd-1_55.dll" />
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_iostreams-vc100-mt-1_55.dll" />
>
>  
>  
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_regex-vc100-mt-gd-1_55.dll" />
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_regex-vc100-mt-1_55.dll" />
>
>  
>  
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_locale-vc100-mt-gd-1_55.dll" />
>
> ="C:\boost_1_55_0_dyn\stage\lib\boost_locale-vc100-mt-1_55.dll" />
>
>  
>  
>
>  
>  
>
>  
>  
>
> ="..\..\ext_library\zmq\czmq\czmq-2.1.0\lib\Win32\DebugDLL\czmq.dll" />
>
> ="..\..\ext_library\zmq\czmq\czmq-2.1.0\lib\Win32\ReleaseDLL\czmq.dll" />
>
>  
> 
>  
>
> ="..\..\ext_library\log4cplus\bin\Debug\log4cplusD.dll" />
>
> ="..\..\ext_library\log4cplus\bin\Release\log4cplus.dll" />
>
>  
>  
>
> ="..\..\ext_library\zmq\zeromq-4.0.3\lib\Win32\Debug\libzmq.dll" />
>
> ="..\..\ext_library\zmq\zeromq-4.0.3\lib\Win32\Release\libzmq.dll" />
>
>  
>  
>  
>
>  
> 
>   Guid="{0524716A-DA7B-436C-BB0B-57B972D1A322}">
>
>
>
> On="uninstall"/>
> On="uninstall"/>
> On="uninstall"/>
>
>  
>
> 
> 
> SourceFile="..\..\ext_library\SetupCA\SetupCA\bin\Release\SetupCA.CA.dll"/>
> BinaryKey="SetupCA" DllEntry="WriteFileToDisk" />
> BinaryKey="

[WiX-users] Error 1920. Service 'SomeService' failed to start

2015-03-12 Thread Sarvagya Pant
​​
​Hi,
 I have created an installer that is supposed to be get install and start
the service. The installer does install in most machines , but during
installation in one of customers, it gave "Error 1920. Service
'SomeService'failed to start" error. The user has installed the software as
an administrator, but still is getting the same error.
The detailed error is "MSI (s) (6C:18) [14:07:48:771]: Product:
SomeProduct-- Error 1920. Service 'SomeService' (SomeService) failed to
start.  Verify that you have sufficient privileges to start system
services."

I have also implemented Custom action in the installer using C# that is
supposed to get the parameter passed to installer and create some config
file.

I have following wix file:



http://schemas.microsoft.com/wix/2006/wi";
 xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension";>
  






  



  

  

  

  

  

  

  


  







  

  





  
  





  
  





  
  
  





  
  





  

  





  
  





  
  





  
  





  
  

  
  

  
  





  

  





  
  





  
  
  

  

  







  







  NOT
Installed
  Installed

  

#
The dependency of my program is .Net4.0, VS2010 Redistributable, VS2008
Redistributable. The Customer has installed all of these and run the file
as adminstrator as:
msiexec /i myInstaller.msi /l*v out.txt PARAMETER="VALUE" ...

I looked into other website, they gave information regarding GAC. I don't
know about them. If that is what is causing the problem, please do point me
in right direction.
Thanks,
Sarvagya Pant.

-- 
sarvagya
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users