I get the following error while running the .msi created by using the following code to create a service using WIX.GService.exe is the service exe file.I've copied installutillib.dll,GService.exe to the wix-binary folder(folder where candle.exe and light.exe exists)and created a service.xml file with the line given at the end
http://www.nabble.com/file/p11650454/error.jpg <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="182a4509-6086-4eed-b1e7-b155aa1e7ea5" Name="DotNetService" Language="1033" Version="1.0.0.0" Manufacturer="Persistent" UpgradeCode="49c8c75a-5210-4944-b2b8-69814e6a874d"> <Package InstallerVersion="200" Compressed="yes" /> <Media Id="1" Cabinet="WindowsServiceWixProject.cab" EmbedCab="yes" /> <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='PFiles'> <Directory Id='DOTNETSERVICE' Name='DotNet'> <Component Id='TheService' Guid='a464e2d9-a75e-4996-9f54-fd5155c3c35a'> <File Id='WindowsService' Name='GService.exe' KeyPath='yes' DiskId='1' Source='GService.exe' /> <File Id='ConfigFile' Name='Service.xml' DiskId='1' Source='Service.xml' CompanionFile='WindowsService'/> </Component> </Directory> </Directory> </Directory> <Feature Id='TheOnlyFeature' Description='Feature contains the single component' Level='1'> <ComponentRef Id='TheService'/> </Feature> <!-- Including the InstallUtilLib.dll. This file does all the works of installing the services. --> <Binary Id='InstallUtil' SourceFile='InstallUtilLib.dll' /> <!--Write custom actions to install, uninstall, commit and rollback the changes--> <CustomAction Id='InstallServiceSetProp' Property='InstallService' Value='/installtype=notransaction /action=install /LogFile= "[#WindowsService]" "[DOTNETSERVICE]Service.xml"'/> <CustomAction Id='InstallService' BinaryKey='InstallUtil' DllEntry='ManagedInstall' Execute='deferred' /> <CustomAction Id='UnInstallServiceSetProp' Property='UnInstallService' Value='/installtype=notransaction /action=uninstall /LogFile= "[#WindowsService]" "[DOTNETSERVICE]Service.xml"'/> <CustomAction Id='UnInstallService' BinaryKey='InstallUtil' DllEntry='ManagedInstall' Execute='deferred' /> <CustomAction Id='CommitServiceSetProp' Property='CommitService' Value='/installtype=notransaction /action=commit /LogFile= "[#WindowsService]" "[DOTNETSERVICE]Service.xml"'/> <CustomAction Id='CommitService' BinaryKey='InstallUtil' DllEntry='ManagedInstall' Execute='commit' /> <CustomAction Id='RollbackServiceSetProp' Property='RollbackService' Value='/installtype=notransaction /action=rollback /LogFile= "[#WindowsService]" "[DOTNETSERVICE]Service.xml"'/> <CustomAction Id='RollbackService' BinaryKey='InstallUtil' DllEntry='ManagedInstall' Execute='rollback' /> <!-- Now to sequence these Custom Actions in the execute sequence --> <InstallExecuteSequence> <Custom Action='UnInstallServiceSetProp' After='MsiUnpublishAssemblies'>$TheService=2</Custom> <Custom Action='UnInstallService' After='UnInstallServiceSetProp'>$TheService=2</Custom> <Custom Action='InstallServiceSetProp' After='StartServices'>$TheService>2</Custom> <Custom Action='InstallService' After='InstallServiceSetProp'>$TheService>2</Custom> <Custom Action='RollbackServiceSetProp' After='InstallService'>$TheService>2</Custom> <Custom Action='RollbackService' After='RollbackServiceSetProp'>$TheService>2</Custom> <Custom Action='CommitServiceSetProp' After='RollbackService'>$TheService>2</Custom> <Custom Action='CommitService' After='CommitServiceSetProp'>$TheService>2</Custom> </InstallExecuteSequence> </Product> </Wix> Service.xml contains following code <?xml version="1.0"?> <configuration> <startup> <supportedRuntime version="v2.0.50727"/> </startup> </configuration> would appreciate if any one can comment on this error -- View this message in context: http://www.nabble.com/Creating-a-service-using-WIX-tf4097226.html#a11650454 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

