This is just the general MSI/.NET install issue that assemblies aren't available in the GAC until InstallFinalize, so things like StartServices or custom actions that depend on assemblies in the GAC fail with this kind of error.
Phil Wilson -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of wixuser1105 Sent: Friday, June 20, 2008 3:31 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] [wix-users] Windows Service (ServiceControl) I have an issue with windows service startup. following is the WIX xml fragment. <Component Id="C1" Guid="F504963A-BC48-4703-B978-B31CCDD0E3A5"> <File Id="WS1" Name="WS1.exe" DiskId="1" Source="$(var.buildPath)\WS1.exe"></File> <File Id="WS1.config" Name="WS1.config" DiskId="1" Source="$(var.buildPath)\WS1.exe.config"></File> <ServiceInstall Id="WS1" DisplayName="WS1" Account="LocalSystem" Type="ownProcess" Start="auto" Vital="yes" Name="WS1" ErrorControl="normal"> </ServiceInstall> <ServiceControl Id="WS1" Name="WS1" Stop="both" Start="install" Remove="uninstall"></ServiceControl> </Component> I get an error when the service starts. FileNotFOundException. Actuallty the WS1.exe.config has a custom Config section with a type "WS1Config" belogs to an assembly which will also be installed to the GAC in the same package. if I remove the attribute STart from SErviceControl and manually start the service after installation it works fine. right now I have written vbs to start all the windows services in the custom event. -- View this message in context: http://www.nabble.com/-wix-users--Windows-Service-%28ServiceControl%29-tp18026492p18026492.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users