Re: [WiX-users] Service @vista

2008-02-15 Thread SaiTeja

Some times it is wokring fine, some times not.

Event log says "The Service  terminated unexpectedly"



Rob Hamflett wrote:
> 
> Does the event manager tell you anything?  After you've started the
> service manually from the 
> services panel, do future attempts to install it succeed (after you've
> uninstalled it, obviously).
> 
> Rob
> 
> SaiTeja wrote:
>> Hi,
>> 
>> Thanks for response
>> 
>> Because the service has dependencies, I created one merge module.msi(with
>> all x86 including debug mergemodules) and installed. After that I
>> installed
>> my installer. This time installation is successfully, But service is not
>> started after reboot automatically(service start type is auto). But when
>> I
>> start service manually, service is started.
>> 
>> I am testing this in Virtual Images. The above case is working for vista
>> ultimate virtual image. But for Vista Enterprise and Business virtual
>> images
>> it is not working.
>> 
>> So In vista ultimate it is working means. there is no problem with
>> service
>> and component.
>> 
>> Can you tell me, what is the wrong here. Is it the problem with virtual
>> image or service?
>> 
>> Why service is not started automatically after reboot, even service type
>> is
>> "auto"
>> Why it is started when I try to start manually from services.msc after
>> installation.
>> 
>> 
>> Thanks in advance,
>> 
>> 
>> 
>> 
>> 
>> Rob Hamflett wrote:
>>> It sounds like your service just doesn't work under Vista.  Can you run
>>> it
>>> as a normal exe?  Have 
>>> you tried putting any logging in your service to see how far it gets?
>>>
>>> Rob
>>>
>>> SaiTeja wrote:
 Hi,

 I have a service installed on windows vista. The startup type for this
 service is "Automatic". The service is not starting after reboot. When
 i
 try
 starting the service from Service Control Manager, the error is
 something
 like "Windows could not start the service on Local Computer Error 1067:
 The
 process terminated unexpectedly". The event logs just displays "The
 service
 terminated unexpectedly"

 Following is my WIX Code.

 >>> Guid="{8382F93F-A092-4344-9996-845A9F7DF9A7}">
 (NOT VersionNT=500) AND (NOT
 VersionNT64)
 >>> LongName="service.exe" Compressed="yes" DiskId="1" Source="service.exe"
 />
 >>> Remove="uninstall" />
 >>> DisplayName="Service" Type="ownProcess" Start="auto"
 ErrorControl="normal"
 Description="Enables the Client service. If this service is stopped,
 Client-protected content will be unavailable.">
 
 
 
 
 
 



 >>> impersonate="no"ExeCommand="startservice" FileKey="xyz.exe">
 

 
 
 versionNT
 versionNT
 --
 versionNT
 versionNT
 Not
 Installed
 
  

 1

 Here I used custom action type as "Commit"(commit custom actions
 executes
 after installfinalize), because in Vista the runtime will NOT be
 accessible
 to xyz.exe (the xyz.exe depends on the C runtime And iam installing the
 C
 runtime in the installer via merge module) until *after* the installer
 completes installation. 

 With Custom action type "Deffered", custom action is failing while
 installation.
 With custom action type "Commit", installation is sucsseful, but
 service
 is
 not started.
 SOme times when I try manually, it is starting, some times not.
 I want per-machine installation

 The above code is working fine in XP, but failing in Vista

 Any Ideas???
>>>
>>> -
>>> This SF.net email is sponsored by: Microsoft
>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
>>> ___
>>> WiX-users mailing list
>>> WiX-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>>
>>>
>> 
> 
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> 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/Service-%40vista-tp15480061p15499976.html
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MR

Re: [WiX-users] Service @vista

2008-02-15 Thread Ryan O'Neill
I think it is highly unlikely that the problem is from the MSI/WiX and more
to do with an environment issue such as user permissions or missing
libraries (different versions of Vista will have different base software and
this will affect the libraries shipped with the system). It looks like your
service is trying to start and falling over immediately, check the event
logs.

Also, I imagine that virtual machine images are protected against corruption
so I would not suspect a problem with that.

If I was troubleshooting this I would;
1) Run sysinternals process monitor and look for any file access failures.
2) Set up logging and log all of the startup processes to a file or the
event log (this might also fail due to security).
3) Comment out as much code as possible.
4) Clean all event logs and try again. There is probably an error in there
somewhere.

Your root cause is either;
a) Missing DLL or other resource.
b) Not enough permission.

Ryan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of SaiTeja
Sent: 15 February 2008 09:33
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Service @vista


Hi,
   
Thanks for response

Because the service has dependencies, I created one merge module.msi(with
all x86 including debug mergemodules) and installed. After that I installed
my installer. This time installation is successfully, But service is not
started after reboot automatically(service start type is auto). But when I
start service manually, service is started.

I am testing this in Virtual Images. The above case is working for vista
ultimate virtual image. But for Vista Enterprise and Business virtual images
it is not working.

So In vista ultimate it is working means. there is no problem with service
and component.

Can you tell me, what is the wrong here. Is it the problem with virtual
image or service?

Why service is not started automatically after reboot, even service type is
"auto"
Why it is started when I try to start manually from services.msc after
installation.


Thanks in advance,





Rob Hamflett wrote:
> 
> It sounds like your service just doesn't work under Vista.  Can you run it
> as a normal exe?  Have 
> you tried putting any logging in your service to see how far it gets?
> 
> Rob
> 
> SaiTeja wrote:
>> Hi,
>> 
>> I have a service installed on windows vista. The startup type for this
>> service is "Automatic". The service is not starting after reboot. When i
>> try
>> starting the service from Service Control Manager, the error is something
>> like "Windows could not start the service on Local Computer Error 1067:
>> The
>> process terminated unexpectedly". The event logs just displays "The
>> service
>> terminated unexpectedly"
>> 
>> Following is my WIX Code.
>> 
>> > Guid="{8382F93F-A092-4344-9996-845A9F7DF9A7}">
>> (NOT VersionNT=500) AND (NOT
>> VersionNT64)
>> > LongName="service.exe" Compressed="yes" DiskId="1" Source="service.exe"
>> />
>> > Remove="uninstall" />
>> > DisplayName="Service" Type="ownProcess" Start="auto"
>> ErrorControl="normal"
>> Description="Enables the Client service. If this service is stopped,
>> Client-protected content will be unavailable.">
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> > impersonate="no"ExeCommand="startservice" FileKey="xyz.exe">
>> 
>> 
>> 
>> 
>> versionNT
>> versionNT
>> --
>> versionNT
>> versionNT
>> Not Installed
>> 
>>  
>> 
>> 1
>> 
>> Here I used custom action type as "Commit"(commit custom actions executes
>> after installfinalize), because in Vista the runtime will NOT be
>> accessible
>> to xyz.exe (the xyz.exe depends on the C runtime And iam installing the C
>> runtime in the installer via merge module) until *after* the installer
>> completes installation. 
>> 
>> With Custom action type "Deffered", custom action is failing while
>> installation.
>> With custom action type "Commit", installation is sucsseful, but service
>> is
>> not started.
>> SOme times when I try manually, it is starting, some times not.
>> I want per-machine installation
>> 
>> The above code is working fine in XP, but failing in Vista
>> 
>> Any Ideas???
> 
> 

Re: [WiX-users] Service @vista

2008-02-15 Thread Rob Hamflett
Does the event manager tell you anything?  After you've started the service 
manually from the 
services panel, do future attempts to install it succeed (after you've 
uninstalled it, obviously).

Rob

SaiTeja wrote:
> Hi,
> 
> Thanks for response
> 
> Because the service has dependencies, I created one merge module.msi(with
> all x86 including debug mergemodules) and installed. After that I installed
> my installer. This time installation is successfully, But service is not
> started after reboot automatically(service start type is auto). But when I
> start service manually, service is started.
> 
> I am testing this in Virtual Images. The above case is working for vista
> ultimate virtual image. But for Vista Enterprise and Business virtual images
> it is not working.
> 
> So In vista ultimate it is working means. there is no problem with service
> and component.
> 
> Can you tell me, what is the wrong here. Is it the problem with virtual
> image or service?
> 
> Why service is not started automatically after reboot, even service type is
> "auto"
> Why it is started when I try to start manually from services.msc after
> installation.
> 
> 
> Thanks in advance,
> 
> 
> 
> 
> 
> Rob Hamflett wrote:
>> It sounds like your service just doesn't work under Vista.  Can you run it
>> as a normal exe?  Have 
>> you tried putting any logging in your service to see how far it gets?
>>
>> Rob
>>
>> SaiTeja wrote:
>>> Hi,
>>>
>>> I have a service installed on windows vista. The startup type for this
>>> service is "Automatic". The service is not starting after reboot. When i
>>> try
>>> starting the service from Service Control Manager, the error is something
>>> like "Windows could not start the service on Local Computer Error 1067:
>>> The
>>> process terminated unexpectedly". The event logs just displays "The
>>> service
>>> terminated unexpectedly"
>>>
>>> Following is my WIX Code.
>>>
>>> >> Guid="{8382F93F-A092-4344-9996-845A9F7DF9A7}">
>>> (NOT VersionNT=500) AND (NOT
>>> VersionNT64)
>>> >> LongName="service.exe" Compressed="yes" DiskId="1" Source="service.exe"
>>> />
>>> >> Remove="uninstall" />
>>> >> DisplayName="Service" Type="ownProcess" Start="auto"
>>> ErrorControl="normal"
>>> Description="Enables the Client service. If this service is stopped,
>>> Client-protected content will be unavailable.">
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>>
>>> >> impersonate="no"ExeCommand="startservice" FileKey="xyz.exe">
>>> 
>>>
>>> 
>>> 
>>> versionNT
>>> versionNT
>>> --
>>> versionNT
>>> versionNT
>>> Not Installed
>>> 
>>>  
>>>
>>> 1
>>>
>>> Here I used custom action type as "Commit"(commit custom actions executes
>>> after installfinalize), because in Vista the runtime will NOT be
>>> accessible
>>> to xyz.exe (the xyz.exe depends on the C runtime And iam installing the C
>>> runtime in the installer via merge module) until *after* the installer
>>> completes installation. 
>>>
>>> With Custom action type "Deffered", custom action is failing while
>>> installation.
>>> With custom action type "Commit", installation is sucsseful, but service
>>> is
>>> not started.
>>> SOme times when I try manually, it is starting, some times not.
>>> I want per-machine installation
>>>
>>> The above code is working fine in XP, but failing in Vista
>>>
>>> Any Ideas???
>>
>> -
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
>> ___
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
> 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Service @vista

2008-02-15 Thread SaiTeja

Hi,

Thanks for response

Because the service has dependencies, I created one merge module.msi(with
all x86 including debug mergemodules) and installed. After that I installed
my installer. This time installation is successfully, But service is not
started after reboot automatically(service start type is auto). But when I
start service manually, service is started.

I am testing this in Virtual Images. The above case is working for vista
ultimate virtual image. But for Vista Enterprise and Business virtual images
it is not working.

So In vista ultimate it is working means. there is no problem with service
and component.

Can you tell me, what is the wrong here. Is it the problem with virtual
image or service?

Why service is not started automatically after reboot, even service type is
"auto"
Why it is started when I try to start manually from services.msc after
installation.


Thanks in advance,





Rob Hamflett wrote:
> 
> It sounds like your service just doesn't work under Vista.  Can you run it
> as a normal exe?  Have 
> you tried putting any logging in your service to see how far it gets?
> 
> Rob
> 
> SaiTeja wrote:
>> Hi,
>> 
>> I have a service installed on windows vista. The startup type for this
>> service is "Automatic". The service is not starting after reboot. When i
>> try
>> starting the service from Service Control Manager, the error is something
>> like "Windows could not start the service on Local Computer Error 1067:
>> The
>> process terminated unexpectedly". The event logs just displays "The
>> service
>> terminated unexpectedly"
>> 
>> Following is my WIX Code.
>> 
>> > Guid="{8382F93F-A092-4344-9996-845A9F7DF9A7}">
>> (NOT VersionNT=500) AND (NOT
>> VersionNT64)
>> > LongName="service.exe" Compressed="yes" DiskId="1" Source="service.exe"
>> />
>> > Remove="uninstall" />
>> > DisplayName="Service" Type="ownProcess" Start="auto"
>> ErrorControl="normal"
>> Description="Enables the Client service. If this service is stopped,
>> Client-protected content will be unavailable.">
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> > impersonate="no"ExeCommand="startservice" FileKey="xyz.exe">
>> 
>> 
>> 
>> 
>> versionNT
>> versionNT
>> --
>> versionNT
>> versionNT
>> Not Installed
>> 
>>  
>> 
>> 1
>> 
>> Here I used custom action type as "Commit"(commit custom actions executes
>> after installfinalize), because in Vista the runtime will NOT be
>> accessible
>> to xyz.exe (the xyz.exe depends on the C runtime And iam installing the C
>> runtime in the installer via merge module) until *after* the installer
>> completes installation. 
>> 
>> With Custom action type "Deffered", custom action is failing while
>> installation.
>> With custom action type "Commit", installation is sucsseful, but service
>> is
>> not started.
>> SOme times when I try manually, it is starting, some times not.
>> I want per-machine installation
>> 
>> The above code is working fine in XP, but failing in Vista
>> 
>> Any Ideas???
> 
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> 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/Service-%40vista-tp15480061p15496164.html
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Service @vista

2008-02-14 Thread Rob Hamflett
It sounds like your service just doesn't work under Vista.  Can you run it as a 
normal exe?  Have 
you tried putting any logging in your service to see how far it gets?

Rob

SaiTeja wrote:
> Hi,
> 
> I have a service installed on windows vista. The startup type for this
> service is "Automatic". The service is not starting after reboot. When i try
> starting the service from Service Control Manager, the error is something
> like "Windows could not start the service on Local Computer Error 1067: The
> process terminated unexpectedly". The event logs just displays "The service
> terminated unexpectedly"
> 
> Following is my WIX Code.
> 
> 
> (NOT VersionNT=500) AND (NOT VersionNT64)
>  LongName="service.exe" Compressed="yes" DiskId="1" Source="service.exe" />
>  Remove="uninstall" />
>  DisplayName="Service" Type="ownProcess" Start="auto" ErrorControl="normal"
> Description="Enables the Client service. If this service is stopped,
> Client-protected content will be unavailable.">
> 
> 
> 
> 
> 
> 
>
> 
> 
>  impersonate="no"ExeCommand="startservice" FileKey="xyz.exe">
> 
> 
> 
> 
> versionNT
> versionNT
> --
> versionNT
> versionNT
> Not Installed
> 
>  
> 
> 1
> 
> Here I used custom action type as "Commit"(commit custom actions executes
> after installfinalize), because in Vista the runtime will NOT be accessible
> to xyz.exe (the xyz.exe depends on the C runtime And iam installing the C
> runtime in the installer via merge module) until *after* the installer
> completes installation. 
> 
> With Custom action type "Deffered", custom action is failing while
> installation.
> With custom action type "Commit", installation is sucsseful, but service is
> not started.
> SOme times when I try manually, it is starting, some times not.
> I want per-machine installation
> 
> The above code is working fine in XP, but failing in Vista
> 
> Any Ideas???


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Service @vista

2008-02-14 Thread SaiTeja

Hi,

I have a service installed on windows vista. The startup type for this
service is "Automatic". The service is not starting after reboot. When i try
starting the service from Service Control Manager, the error is something
like "Windows could not start the service on Local Computer Error 1067: The
process terminated unexpectedly". The event logs just displays "The service
terminated unexpectedly"

Following is my WIX Code.


(NOT VersionNT=500) AND (NOT VersionNT64)









   







versionNT
versionNT
--
versionNT
versionNT
Not Installed

 

1

Here I used custom action type as "Commit"(commit custom actions executes
after installfinalize), because in Vista the runtime will NOT be accessible
to xyz.exe (the xyz.exe depends on the C runtime And iam installing the C
runtime in the installer via merge module) until *after* the installer
completes installation. 

With Custom action type "Deffered", custom action is failing while
installation.
With custom action type "Commit", installation is sucsseful, but service is
not started.
SOme times when I try manually, it is starting, some times not.
I want per-machine installation

The above code is working fine in XP, but failing in Vista

Any Ideas???
-- 
View this message in context: 
http://www.nabble.com/Service-%40vista-tp15480061p15480061.html
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users