Bug in NoTouchDeploymentStub_csproj for EntLib 2_0

Topics: Updater Application Block
Jun 8, 2006 at 8:47 AM
originally posted by: ronnyong

Still has Microsoft.Practices.EnterpriseLibrary.Configuration.dll as a Resource, but the Configuration Application Block was dropped from Enterprise Library January 2006.

Also, Changelog.txt still says this dll needs to be copied.
Jun 8, 2006 at 9:28 AM
originally posted by: ksunair

Yes I got the same error as well.
Jun 8, 2006 at 11:26 AM
originally posted by: matiaswoloski

The ChangeLog states that the EntLib configuration assembly is required, which certainly does not exists.
These are the steps required to run the NoTouchDeployment Quickstarts for Updater 2.0 for Net 2.0.

1. Build the solution

2. Right click on the Resources folder on NoTouchDeploymentStub -> Add Existing Item

AppStart.exe
Interop.WindowsInstaller.dll
Microsoft.ApplicationBlocks.Updater.ActivationProcessors.dll
Microsoft.ApplicationBlocks.Updater.dll
Microsoft.ApplicationBlocks.Updater.Downloaders.dll
Microsoft.Practices.EnterpriseLibrary.Common.dll
Microsoft.Practices.EnterpriseLibrary.Logging.dll
Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll
Microsoft.Practices.ObjectBuilder.dll
AppStart.exe.config

3. Select all the items added in the solution explorer and change the Build Action on the property grid to "Embedded Resource"

4. Replace the ExtractAppStartFiles method in LaunchStab.cs with the following

private void ExtractAppStartFiles(string appStartPath)
{
ExtractResourceStream( appStartPath, "NoTouchDeploymentStub.Resources.AppStart.exe", "AppStart.exe" );
ExtractResourceStream(appStartPath, "NoTouchDeploymentStub.Resources.AppStart.exe.config", "AppStart.exe.config");
ExtractResourceStream(appStartPath, "NoTouchDeploymentStub.Resources.Interop.WindowsInstaller.dll", "Interop.WindowsInstaller.dll");
ExtractResourceStream( appStartPath, "NoTouchDeploymentStub.Resources.Microsoft.ApplicationBlocks.Updater.ActivationProcessors.dll", "Microsoft.ApplicationBlocks.Updater.ActivationProcessors.dll" );
ExtractResourceStream( appStartPath, "NoTouchDeploymentStub.Resources.Microsoft.ApplicationBlocks.Updater.dll", "Microsoft.ApplicationBlocks.Updater.dll" );
ExtractResourceStream( appStartPath, "NoTouchDeploymentStub.Resources.Microsoft.ApplicationBlocks.Updater.Downloaders.dll", "Microsoft.ApplicationBlocks.Updater.Downloaders.dll" );
ExtractResourceStream( appStartPath, "NoTouchDeploymentStub.Resources.Microsoft.Practices.EnterpriseLibrary.Common.dll", "Microsoft.Practices.EnterpriseLibrary.Common.dll" );
ExtractResourceStream( appStartPath, "NoTouchDeploymentStub.Resources.Microsoft.Practices.EnterpriseLibrary.Logging.dll", "Microsoft.Practices.EnterpriseLibrary.Logging.dll" );
ExtractResourceStream( appStartPath, "NoTouchDeploymentStub.Resources.Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll", "Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll" );
ExtractResourceStream(appStartPath, "NoTouchDeploymentStub.Resources.Microsoft.Practices.ObjectBuilder.dll", "Microsoft.Practices.ObjectBuilder.dll");
}

5. Set NoTouchDeoloymentStub as a startup project and Run the solution

Matias
patterns & practices Client Sustained Engineering
http://staff.southworks.net/blogs/matiaswoloski
Jul 21, 2006 at 4:25 AM
originally posted by: fei_css

After I re-set all dlls and remove Configuration.dll, now I have this error. Please help.

Error 18 Unable to copy file "Resources\Microsoft.ApplicationBlocks.Updater.ActivationProcessors.dll" to "obj\Debug\NoTouchDeploymentStub.Resources.Microsoft.ApplicationBlocks.Updater.ActivationProcessors.dll". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. NoTouchDeploymentStub



Please ignore above. After I move the folder to the upper folder, it is ok now.