Downloading files from FTP using C#.Net 1.1

Hello Everyone,

I have attempted once again to do ClickOnce deployment of an application to a test machine (32-bit, Windows XP SP3).
On this machine, there is only one login account which is not built-in, and that account is an “administrator” account.
This thread is a continuation of an earlier thread pertaining to ClickOnce publishing warnings, Warning MSB3155 and Warning MSB3162.

My objective is to use the latest versions of products.
Here is a summary of the deployment configuration:
Database file (“.mdf”):
  built with SQL Server 2008
Target framework, set on the “Compile” tab of the application page (“Advanced Compile Options…”):
  .NET Framework 4
Prerequisites, set on the “Publish” tab of the application page:
  Microsoft .NET Framework 4 (x86 and x64)
  SQL Server 2008 Express
  Windows Installer 4.5
  Specify: “Download prerequisites from the component vendor’s website”

The test machine was formerly used for software development, and at one time or another has had these versions of SQL Server Installed on it:
– SQL Server 2008 Standard
– SQL Server 2008 R2
– SQL Server 2008 Express
– SQL Server 2005 Express
– SQL Server Compact Edition 3.5

Invariably, I have trouble installing or uninstalling SQL Server, and I had a strong suspicion that there were incompatible versions of files and inconsistent registry values.
First, I used Control Panel to uninstall all versions of the .NET Framework.
Then, I spent a long time manually deleting files and registry keys which made reference to “SQL Server”, even deleting “C:Program FilesMicrosoft SQL Server”.
Then I ran a third-party tool for cleaning the Windows Registry (“PC Mechanic”).

When I made the first attempt to deploy the application (from CD), there was no version of the .NET Framework installed, and there was no SQL Server service running.
The attempt failed, with this error: Error Code 1603.
The error indicates an installer problem, and .NET Framework 4 failed to install.

I rummaged around, and found the .NET Framework Cleanup Tool (dotnetfx_cleanup_tool), which worked (thank you Mr. Stebner!).
When I made the second attempt, .NET Framework 4 installed successfully, but SQL Server Express did not, failing with this error, as reported by “SqlSetup.log”: Setup closed with exit code 0x84C400134.

I did not investigate the error, opting instead to clean the Windows Registry once more with PC Mechanic.
When I made the third attempt, SQL Server Express did not install, failing with this error,
as reported by “install.log”: Process exited with code -289740454.

A new directory “C:Program FilesMicrosoft SQL Server” has been created, but it contains only this subdirectory:
“C:Program FilesMicrosoft SQL ServerSetup BootstrapLog”.
The “Log” directory contains two subdirectories, one from the second attempt to deploy, and one from the third attempt to deploy.

I searched the forums, I did not find a solution for my deployment problem.

Can anyone help?

Thanks in advance,
Francis

P.S. Below is the entire log file (“install.log”):

The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [InstallMode] = HomeSite {string}
Property: [ProcessorArchitecture] = Intel {string}
Property: [VersionNT] = 5.1.3 {version}
Running checks for package ‘Windows Installer 4.5’, phase BuildList
Looking up path for special folder ‘WindowsFolder’
Running check with folder ‘C:WINDOWSSystem32’ and file ‘msi.dll’
Attempting to find file ‘C:WINDOWSSystem32msi.dll’
File version is ‘4.5.6001.22299’
Setting value ‘4.5.6001.22299 {version}’ for property ‘VersionMsiDll’
The following properties have been set for package ‘Windows Installer 4.5’:
Property: [VersionMsiDll] = 4.5.6001.22299 {version}
Running checks for command ‘WindowsInstaller4_5WindowsXP-KB942288-v3-x86.exe’
Result of running operator ‘VersionGreaterThanOrEqualTo’ on property ‘VersionMsi’ and value ‘4.5’: true
Result of checks for command ‘WindowsInstaller4_5WindowsXP-KB942288-v3-x86.exe’ is ‘Bypass’
Running checks for command ‘WindowsInstaller4_5WindowsXP-KB958655-v2-x86-ENU.exe’
Result of running operator ‘VersionGreaterThanOrEqualTo’ on property ‘VersionMsiDll’ and value ‘4.5.6001.22299’: true
Result of checks for command ‘WindowsInstaller4_5WindowsXP-KB958655-v2-x86-ENU.exe’ is ‘Bypass’
Running checks for command ‘WindowsInstaller4_5WindowsServer2003-KB942288-v4-x86.exe’
Result of running operator ‘VersionGreaterThanOrEqualTo’ on property ‘VersionMsi’ and value ‘4.5’: true
Result of checks for command ‘WindowsInstaller4_5WindowsServer2003-KB942288-v4-x86.exe’ is ‘Bypass’
Running checks for command ‘WindowsInstaller4_5WindowsServer2003-KB958655-v2-x86-ENU.exe’
Result of running operator ‘VersionGreaterThanOrEqualTo’ on property ‘VersionMsiDll’ and value ‘4.5.6001.22299’: true
Result of checks for command ‘WindowsInstaller4_5WindowsServer2003-KB958655-v2-x86-ENU.exe’ is ‘Bypass’
Running checks for command ‘WindowsInstaller4_5WindowsServer2003-KB942288-v4-x64.exe’
Result of running operator ‘VersionGreaterThanOrEqualTo’ on property ‘VersionMsi’ and value ‘4.5’: true
Result of checks for command ‘WindowsInstaller4_5WindowsServer2003-KB942288-v4-x64.exe’ is ‘Bypass’
Running checks for command ‘WindowsInstaller4_5WindowsServer2003.WindowsXP-KB958655-v2-x64-ENU.exe’
Result of running operator ‘VersionGreaterThanOrEqualTo’ on property ‘VersionMsiDll’ and value ‘4.5.6001.22299’: true
Result of checks for command ‘WindowsInstaller4_5WindowsServer2003.WindowsXP-KB958655-v2-x64-ENU.exe’ is ‘Bypass’
Running checks for command ‘WindowsInstaller4_5Windows6.0-KB958655-v2-x86.MSU’
Result of running operator ‘VersionGreaterThanOrEqualTo’ on property ‘VersionMsiDll’ and value ‘4.5.6001.22308’: false
Result of running operator ‘ValueNotEqualTo’ on property ‘ProcessorArchitecture’ and value ‘Intel’: false
Result of running operator ‘VersionLessThan’ on property ‘VersionNT’ and value ‘6.0’: true
Result of checks for command ‘WindowsInstaller4_5Windows6.0-KB958655-v2-x86.MSU’ is ‘Bypass’
Running checks for command ‘WindowsInstaller4_5Windows6.0-KB958655-v2-x64.MSU’
Result of running operator ‘VersionGreaterThanOrEqualTo’ on property ‘VersionMsiDll’ and value ‘4.5.6001.22308’: false
Result of running operator ‘ValueNotEqualTo’ on property ‘ProcessorArchitecture’ and value ‘amd64’: true
Result of checks for command ‘WindowsInstaller4_5Windows6.0-KB958655-v2-x64.MSU’ is ‘Bypass’
‘Windows Installer 4.5’ RunCheck result: No Install Needed
Running checks for package ‘Microsoft .NET Framework 4 (x86 and x64)’, phase BuildList
Reading value ‘Version’ of registry key ‘HKLMSoftwareMicrosoftNET Framework SetupNDPv4Full’
Read string value ‘4.0.30319’
Setting value ‘4.0.30319 {string}’ for property ‘DotNet40Full_TargetVersion’
The following properties have been set for package ‘Microsoft .NET Framework 4 (x86 and x64)’:
Property: [DotNet40Full_TargetVersion] = 4.0.30319 {string}
Running checks for command ‘DotNetFX40dotNetFx40_Full_x86_x64.exe’
Result of running operator ‘ValueEqualTo’ on property ‘InstallMode’ and value ‘HomeSite’: true
Result of checks for command ‘DotNetFX40dotNetFx40_Full_x86_x64.exe’ is ‘Bypass’
Running checks for command ‘DotNetFX40dotNetFx40_Full_setup.exe’
Result of running operator ‘ValueNotEqualTo’ on property ‘InstallMode’ and value ‘HomeSite’: false
Result of running operator ‘VersionGreaterThanOrEqualTo’ on property ‘DotNet40Full_TargetVersion’ and value ‘4.0.30129’: true
Result of checks for command ‘DotNetFX40dotNetFx40_Full_setup.exe’ is ‘Bypass’
‘Microsoft .NET Framework 4 (x86 and x64)’ RunCheck result: No Install Needed
Running checks for package ‘SQL Server 2008 Express’, phase BuildList
Running external check with command ‘C:DOCUME~1XPSLOCALS~1TempVSD1FD.tmpSqlExpress2008SqlExpressChk.exe’ and parameters ‘10.0.1600 1033’
Process exited with code 1
Setting value ‘1 {int}’ for property ‘SQLExpressChk’
The following properties have been set for package ‘SQL Server 2008 Express’:
Property: [SQLExpressChk] = 1 {int}
Running checks for command ‘SqlExpress2008SQLEXPR32_x86_ENU.EXE’
Result of running operator ‘ValueNotExists’ on property ‘VersionNT’: false
Result of running operator ‘VersionLessThan’ on property ‘VersionNT’ and value ‘5.1.2’: false
Result of running operator ‘VersionEqualTo’ on property ‘VersionNT’ and value ‘5.2.0’: false
Result of running operator ‘VersionEqualTo’ on property ‘VersionNT’ and value ‘5.2.1’: false
Result of running operator ‘ValueEqualTo’ on property ‘AdminUser’ and value ‘false’: false
Result of running operator ‘ValueEqualTo’ on property ‘SQLExpressChk’ and value ‘-1’: false
Result of running operator ‘ValueEqualTo’ on property ‘SQLExpressChk’ and value ‘-2’: false
Result of running operator ‘ValueEqualTo’ on property ‘SQLExpressChk’ and value ‘-3’: false
Result of running operator ‘ValueEqualTo’ on property ‘SQLExpressChk’ and value ‘-4’: false
Result of running operator ‘ValueLessThan’ on property ‘SQLExpressChk’ and value ‘-4’: false
Result of running operator ‘ValueNotEqualTo’ on property ‘ProcessorArchitecture’ and value ‘Intel’: false
Result of running operator ‘ValueNotEqualTo’ on property ‘SQLExpressChk’ and value ‘1’: false
Result of checks for command ‘SqlExpress2008SQLEXPR32_x86_ENU.EXE’ is ‘Install’
Running checks for command ‘SqlExpress2008SQLEXPR32_x86_ENU.EXE’
Result of running operator ‘ValueNotEqualTo’ on property ‘ProcessorArchitecture’ and value ‘Intel’: false
Result of running operator ‘ValueNotEqualTo’ on property ‘SQLExpressChk’ and value ‘2’: true
Result of checks for command ‘SqlExpress2008SQLEXPR32_x86_ENU.EXE’ is ‘Bypass’
Running checks for command ‘SqlExpress2008SQLEXPR_x64_ENU.EXE’
Result of running operator ‘ValueNotEqualTo’ on property ‘ProcessorArchitecture’ and value ‘amd64’: true
Result of checks for command ‘SqlExpress2008SQLEXPR_x64_ENU.EXE’ is ‘Bypass’
Running checks for command ‘SqlExpress2008SQLEXPR_x64_ENU.EXE’
Result of running operator ‘ValueNotEqualTo’ on property ‘ProcessorArchitecture’ and value ‘amd64’: true
Result of checks for command ‘SqlExpress2008SQLEXPR_x64_ENU.EXE’ is ‘Bypass’
‘SQL Server 2008 Express’ RunCheck result: Install Needed
EULA for components ‘SQL Server 2008 Express’ was accepted.
Copying files to temporary directory “C:DOCUME~1XPSLOCALS~1TempVSD1FD.tmp”