[WiX-users] Feature installation state
Hi, I would like to modify one common xml file based on feature selected by user. If 'Feature1' is NOT selected then remove one element from common xml file. I tried following, but it remove xml element irrespective of 'Feature1' installed or not. Any guess what could be wrong? Thanks, Pankaj _ Want to look great? Get expert opinion on beauty and skin care. http://content.msn.co.in/Lifestyle/AskExpert/Default01.htm- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] ServiceInstall Problem
Thanks Phil. It resolved my problem. I added registry key create command in wxs and it worked. Thanks again. Pankaj = ERROR_SERVICE_REQUEST_TIMEOUT = 1053. One of the gotchas with that AppId registry entry is that servicesrunning with localsystem don't have the same view of the registry as aninteractive user because HKCR is a mapping. Adding that AppID data toHKLM\Software\Classes\Appid fixed the problem for me (because that's notalways the same as HKCR). Use Regmon during service start - I thinkyou'd see that the ATL code says HKCR but Regmon reports it accessingHKLM\Software\Classes and not finding the entry. The HKCR mapping means that you cannot trust what you see when you runRegedit as an interactive user because you won't see the same HKCR thatSYSTEM does. Phil Wilson From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED] On Behalf Of PankajSavdekarSent: Friday, May 25, 2007 11:44 AMTo: Stefan PavlikCc: [EMAIL PROTECTED]: Re: [WiX-users] ServiceInstall ProblemThanks for the reply Stefan. Yes that entry in registry was not made byinstaller, so I added AppId element in my component and now registryentry is appearing correctly.But problem still persist, it gives me same error 1053 when I installservice using MSI. Pankaj> Date: Fri, 25 May 2007 10:19:05 +0200> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> CC: wix-users@lists.sourceforge.net> Subject: Re: [WiX-users] ServiceInstall Problem> > Hi ...> > I had similar problem two years ago.> I had no problem to install the service using 'Service.exe -service'> command.> > I found out that during call to 'Service.exe -service' some registry> keys are written into HKCR.> > If you have source code of your service check for the> YourService.rgs file and adjust the following code with appropriate> values:> > LocalService="YourServiceName"> ServiceParameters="-Service"> Description="YourServiceDescription" />> > > > If you do not have the sources of your Service.exe you can check the> registry keys for the needed values:> > [HKEY_CLASSES_ROOT\AppID\YourServiceName.EXE]> "AppID"="{YOUR_SERVICE_GUID}"> > [HKEY_CLASSES_ROOT\AppID\{YOUR_SERVICE_GUID}]> "ServiceParameters"="-Service"> "LocalService"="YourServiceName"> @="YourServiceDescription"> > > > Hope that it will help you.> > Regards> > Stefan> > > > > Pankaj Savdekar wrote:> > Hi All,> > > > > > > > I'm facing one problem using ServiceInstall. I have one ATL windows> > service which works fine when I manually register it (Service.exe> > -service). But service gives following error, when I install itusing> > installer made using ServiceInstall element.> > > > > > > > Error 1053: The service did not respond to the start or controlrequest> > in a timely fashion.> > > > > > > > Component definition in Wix file:> > > > > > > > > > > > > > > > > DiskId='1'> > > > Source='WinService.exe' Vital='yes' KeyPath='yes'/>> > > > > > > > > > > DisplayName="Windows service"> > > > Type="ownProcess" Start="auto" ErrorControl="normal" Vital="yes">> > > > > > > > > > > > > > > > > > > > > > > > > > > > Any idea what could be wrong?> > > > > > > > Thanks,> > > > Pankaj> > > > _ Palate Teasers: Straight from Master Chef! http://content.msn.co.in/Lifestyle/Moreonlifestyle/LifestylePT_101106_1530.htm- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] ServiceInstall Problem
Thanks for the reply Stefan. Yes that entry in registry was not made by installer, so I added AppId element in my component and now registry entry is appearing correctly.But problem still persist, it gives me same error 1053 when I install service using MSI. Pankaj > Date: Fri, 25 May 2007 10:19:05 +0200> From: [EMAIL PROTECTED]> To: [EMAIL > PROTECTED]> CC: wix-users@lists.sourceforge.net> Subject: Re: [WiX-users] > ServiceInstall Problem> > Hi ...> > I had similar problem two years ago.> I > had no problem to install the service using 'Service.exe -service'> command.> > > I found out that during call to 'Service.exe -service' some registry> keys > are written into HKCR.> > If you have source code of your service check for > the> YourService.rgs file and adjust the following code with appropriate> > values:> > Id="YOUR_SERVICE_GUID"> LocalService="YourServiceName"> > ServiceParameters="-Service"> Description="YourServiceDescription" />> > > > > If you do not have the sources of your Service.exe you can > check the> registry keys for the needed values:> > > [HKEY_CLASSES_ROOT\AppID\YourServiceName.EXE]> "AppID"="{YOUR_SERVICE_GUID}"> > > [HKEY_CLASSES_ROOT\AppID\{YOUR_SERVICE_GUID}]> > "ServiceParameters"="-Service"> "LocalService"="YourServiceName"> > @="YourServiceDescription"> > > > Hope that it will help you.> > Regards> > > Stefan> > > > > Pankaj Savdekar wrote:> > Hi All,> > > > > > > > I'm facing > one problem using ServiceInstall. I have one ATL windows> > service which > works fine when I manually register it (Service.exe> > -service). But service > gives following error, when I install it using> > installer made using > ServiceInstall element.> > > > > > > > Error 1053: The service did not > respond to the start or control request> > in a timely fashion.> > > > > > > > > Component definition in Wix file:> > > > > > > > > Id='MainExecutable' Guid='0C47CD31-8876-42aa-B2D9-7D6FF823D171'>> > > > > > > > > > > DiskId='1'> > > > Source='WinService.exe' Vital='yes' KeyPath='yes'/>> > > > > > > > > > > > > DisplayName="Windows service"> > > > Type="ownProcess" Start="auto" > ErrorControl="normal" Vital="yes">> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Any idea what > could be wrong?> > > > > > > > Thanks,> > > > Pankaj> > > > > > > > > > The idiot box is no longer passe; It's making news and how!> > > <http://content.msn.co.in/Entertainment/TV/Default.aspx>> > > > > > > > > > > > -> > > This SF.net email is sponsored by DB2 Express> > Download DB2 Express C - > the FREE version of DB2 express and take> > control of your XML. No limits. > Just data. Click to get it now.> > http://sourceforge.net/powerbar/db2/> > > > > > > > > > > > > ___> > WiX-users mailing list> > > WiX-users@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/wix-users> > -- > Stefan Pavlik > | [EMAIL PROTECTED]> Whitestein Technologies s.r.o. | www.whitestein.com> > Panenska 28 | 811 03 Bratislava | Slovak Republic> Main +421 2 5443-5502 | > Direct +421 2 5930-0735 _ Catch the cricket action with MSN! http://content.msn.co.in/Sports/Cricket/Default.aspx- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] ServiceInstall Problem
Thanks Matt. Currently I'm using default (Local system Account). Problem is it works fine (with same setting) when I use '-service' option and install it manually, but when I use msi (ServiceInstall) it gives me error 1053. Pankaj Subject: RE: [WiX-users] ServiceInstall ProblemDate: Thu, 24 May 2007 16:55:14 -0700From: [EMAIL PROTECTED]: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net One common mistake I make over and over again is that I install the service (using the .msi) as a user who does not have access rights to do so (log on as a service.) -Matt From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pankaj SavdekarSent: Thursday, May 24, 2007 4:43 PMTo: [EMAIL PROTECTED]: [WiX-users] ServiceInstall Problem Hi All, I'm facing one problem using ServiceInstall. I have one ATL windows service which works fine when I manually register it (Service.exe -service). But service gives following error, when I install it using installer made using ServiceInstall element. Error 1053: The service did not respond to the start or control request in a timely fashion. Component definition in Wix file: Any idea what could be wrong? Thanks, Pankaj The idiot box is no longer passe; It's making news and how! _ Catch the cricket action with MSN! http://content.msn.co.in/Sports/Cricket/Default.aspx- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] ServiceInstall Problem
Hi All, I'm facing one problem using ServiceInstall. I have one ATL windows service which works fine when I manually register it (Service.exe -service). But service gives following error, when I install it using installer made using ServiceInstall element. Error 1053: The service did not respond to the start or control request in a timely fashion. Component definition in Wix file: Any idea what could be wrong? Thanks, Pankaj _ The idiot box is no longer passe! http://content.msn.co.in/Entertainment/TV/Default.aspx- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users