Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce Error On Client Machine
 

ClickOnce Error On Client Machine

Hi All,

I don't know if this is a serious problem or if it is a quick fix.

I have successfully published a Windows App from my development PC to a file share on the network. I began the installation of the app from a client machine and everything went fine, installed all the prerequisites (.NET 2.0, Windows Installer3) and then the following error was displayed:

The following error occurred attempting to install C:\Documents and Settings\comp\Desktop\app.application

"The System cannot find the specified file"


The target machine is running Windows XP Pro SP2.

Is this a setting that I setup during the publishing process? Should the setup.exe be run from it's current location or saved and then run?

Thanks

P.S.

Here is the log file entry that that is created when the error occurs

The following properties have been set:
Property: [AdminUser] = true {boolean}
Property: [ProcessorArchitecture] = Intel {string}
Property: [VersionNT] = 5.1.2 {version}
Running checks for package '.NET Framework 2.0', phase BuildList
Running external check with command line "C:\DOCUME~1\scanco\LOCALS~1\Temp\VSD3.tmp\dotnetfx\dotnetchk.exe"
Process exited with code 1
Setting value '1 {int}' for property 'DotNetInstalled'
Reading value 'Version' of registry key 'HKLM\Software\Microsoft\Internet Explorer'
Read string value '6.0.2900.2180'
Setting value '6.0.2900.2180 {string}' for property 'IEVersion'
The following properties have been set for package '.NET Framework 2.0':
Property: [DotNetInstalled] = 1 {int}
Property: [IEVersion] = 6.0.2900.2180 {string}
Running checks for command 'dotnetfx\instmsia.exe'
Result of running operator 'ValueExists' on property 'VersionNT': true
Result of checks for command 'dotnetfx\instmsia.exe' is 'Bypass'
Running checks for command 'dotnetfx\WindowsInstaller-KB893803-v2-x86.exe'
Result of running operator 'ValueExists' on property 'Version9x': false
Result of running operator 'VersionLessThan' on property 'VersionNT' and value '5.0.3': false
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.0': true
Result of checks for command 'dotnetfx\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
Running checks for command 'dotnetfx\dotnetfx.exe'
Result of running operator 'ValueNotEqualTo' on property 'DotNetInstalled' and value '0': true
Result of checks for command 'dotnetfx\dotnetfx.exe' is 'Bypass'
'.NET Framework 2.0' RunCheck result: No Install Needed
Running checks for package 'Windows Installer 3.1', phase BuildList
The following properties have been set for package 'Windows Installer 3.1':
Running checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.1': true
Result of checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
'Windows Installer 3.1' RunCheck result: No Install Needed
Launching Application.
Running command 'C:\Documents and Settings\scanco\Desktop\RandAirFDocSelector.application' with arguments ''
ShellExecuteEx failed with error code 2
Error: The following error occurred attempting to install 'C:\Documents and Settings\scanco\Desktop\RandAirFDocSelector.application':
"The system cannot find the file specified. "



Cybersurfer  Tuesday, February 20, 2007 10:15 AM

I had the same problem, all the prerequisites are installed but it cannot find the file, I clicked on the launch link and the application installed. Cant say that makes any sense, but it worked. Hope this helps

robotrm  Thursday, March 01, 2007 5:27 PM
Do you know how one includes other files like txt, csv, xml etc when you publish a project? I need to include these files when doin a publish of a project so that they run on the client machines.
Cybersurfer  Friday, March 02, 2007 5:16 AM
You add them to the main project right click, make sure they are content files and copy always is selected, then on the publish page to the files and make sure they are data files. Your application can get to these files using System.Windows.Forms.Application.LocalUserAppDataPath
robotrm  Friday, March 02, 2007 2:01 PM
Don't quite understand what you mean by this. Could you explain a little clearer for me as to how I include other files as part of a publish so that they are run on the client machine.

Thanks
Cybersurfer  Monday, March 05, 2007 12:57 PM

You can use google to search for other answers

Custom Search

More Threads

• Setup project - Deployment project properties - using [ProductVersion] inside Description property
• Retrieving OS information during install (System.Configuration.Install.Installer)
• Problem with hosting a .net user control in IE
• How to set shortcut key for a windows application during setup and deployment project?
• Problem including files in installation package.
• Mage signing issue with hash
• how to restart application after updating version
• Error While Deploying "Activex component can't create Object"
• Creating a Click Once deployment with a modified .exe file
• storage limit w/ cd installation.