Hi,
Thanks for reply. I really like your techniques :)
I solved this problem by following way.
I figured out the differences in registry after installing service manually. I
found following entries
<RegistryValue Root="HKLM" Key="SYSTEM\ControlSet001\Services\CnvRemoteService"
Name="DisplayName" Value="CnvRemoteService" Type="string" Action="write" />
<RegistryValue Root="HKLM" Key="SYSTEM\ControlSet001\Services\CnvRemoteService"
Name="ObjectName" Value="LocalSystem" Type="string" Action="write" />
I added these entries in my wix file followed by
<ServiceInstall Name="CnvRemoteService" DisplayName="CnvRemoteService"
Account="LocalSystem" Type ="ownProcess" Start ="auto" Id ="RemoteServiceID"
ErrorControl="normal" >
<util:PermissionEx
User="Everyone"
GenericAll="yes"
ServiceChangeConfig="yes"
ServiceEnumerateDependents="yes"
ChangePermission="yes"
ServiceInterrogate="yes"
ServicePauseContinue="yes"
ServiceQueryConfig="yes"
ServiceQueryStatus="yes"
ServiceStart="yes"
ServiceStop="yes" />
<ServiceDependency Id="RPCSS" />
</ServiceInstall>
<ServiceControl Name="CnvRemoteService" Start="install" Stop
="uninstall" Remove="uninstall" Id ="CnvRemoteServiceControl" />
And my services get installed, start, stop and removed on uninstall.
Can you please let me know is it a right way? Or it will create any problem
with any other environment like windows 7, 2003 server etc.
Thanks,
Rahul
-----Original Message-----
From: Christopher Painter [mailto:[email protected]]
Sent: Tuesday, July 27, 2010 1:30 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Windows service installation error
The technique I usually use is leave the message box error displayed and go to
the application directory to profile the EXE. I run the exe from the command
line to see if any stack dumps are displayed. I'll try to start the service by
hand to see if any messages are displayed and I'll use tools like ILDasm,
Depends, Regmon and FileMon to profile the service to see why it isn't happy.
Other then a file missing from the install or trying to have a service depend
on
something being installed to the GAC, I usually find it's not an install
problem and pass the problem back to development with an offer to assist in
troubleshooting.
Christopher Painter, Author of Deployment Engineering Blog
Have a hot tip, know a secret or read a really good thread that deserves
attention? E-Mail Me
----- Original Message ----
From: Blair <[email protected]>
To: General discussion for Windows Installer XML toolset.
<[email protected]>
Sent: Mon, July 26, 2010 2:22:59 PM
Subject: Re: [WiX-users] Windows service installation error
Do you need this?
<ServiceControl Name="CnvRemoteService" Start ="install"
Stop ="uninstall" Id ="CnvRemoteServiceControl">
<ServiceArgument>-service</ServiceArgument>
</ServiceControl>
What you should look at is both the Application and the System event logs.
Windows Installer usually displays a generic "privilege" error message
always ignoring the real error when the service control manager returns any
error when attempting to start/stop a service. The event log become the
place to look for more information.
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Monday, July 26, 2010 8:11 AM
To: [email protected]
Subject: Re: [WiX-users] Windows service installation error
Hi,
No after removing whole ServiceControl component I am getting same
message during service install. I am not understanding is it really
permission issue or I am missing some service components like registry
entries, dependency or dependent files. My works properly when I use
CnvRemoteService.exe -service.
Thanks,
Rahul
-----Original Message-----
From: Simon Topley [mailto:[email protected]]
Sent: Monday, July 26, 2010 8:23 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Windows service installation error
the error message maybe incorrect, remove the start=install part and
attempt to start it post install manually... it maybe that the service
is dependent on a file that is not yet installed (.net or CRT etc)
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: 26 July 2010 15:40
To: [email protected]
Subject: [WiX-users] Windows service installation error
Hi,
I am getting following error during installing the windows service
"Verify that you have sufficient privilege to install system services"
My WIX code is
<Component Id="cmp4AFA6260BDEF424A3FD81CD2C40C3556"
Directory="ALMEngineDir" Guid="{93681832-5F1A-492D-96E5-3FABE8532177}">
<File Id="fil7DDF0ADCCB9B4B27D88C426EB59A2072" KeyPath="yes"
Source="$(var.EngineSrc)\CnvRemoteService.exe" />
<ServiceInstall Name="CnvRemoteService" Account="LocalService" Type
="ownProcess" Start ="auto" Id ="RemoteServiceID"
ErrorControl="normal" />
<ServiceControl Name="CnvRemoteService" Start ="install"
Stop ="uninstall" Id ="CnvRemoteServiceControl" />
</Component>
Can any one knows what I need to change in my wix code.
Thanks,
Rahul Ekbote
Senior Software Engineer * SunGard * ALM * Bancware *
SunGard Technology Services (India), Meridian Plaza,
S B Road, Shivajinagar, Pune 411016.
Direct Tel +91-20-25606237 * Main Tel +91-20-30238000 * Fax
+91-20-25606222 * [email protected]
<mailto:[email protected]> * www.sungard.com
<http://www.sungard.com/bancware> /bancware
____________________________________________________
P Think before you print
CONFIDENTIALITY: This e-mail (including any attachments) may contain
confidential, proprietary and privileged information, and unauthorized
disclosure or use is prohibited. If you receive this e-mail in error,
please notify the sender and delete this e-mail from your system.
------------------------------------------------------------------------
------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
Disclaimer: This electronic communication and its attachments may
contain confidential, proprietary and/or legally privileged information
which are for the sole use of the intended recipient. If you are not the
intended recipient, any use, distribution, or reproduction of this
communication is strictly prohibited and may be unlawful; please contact
the sender and delete this communication. MWH Soft does not warrant or
make any representation regarding this transmission whatsoever nor does
it warrant that it is free from viruses or defects, correct or reliable.
MWH Soft is not liable for any loss or damage that occurs as a result of
this communication entering your computer network.
The views expressed in this message are not necessarily those of MWH
Soft. This communication cannot form a binding agreement unless that is
the express intent of the parties and they are authorized to make such
an agreement. MWH Soft reserves all intellectual property rights
contained in this transmission. MWH Soft reserves the right to monitor
any electronic communication sent or received by its employees.
MWH Soft Limited is registered in England with number 6975921. Its
registered office is Terriers House, 201 Amersham Rd, High Wycombe, HP13
5AJ.
------------------------------------------------------------------------
------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
----------------------------------------------------------------------------
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users