I'm trying to deploy an application built with VS2008 Express. The idea is to upload the files to a webserver (installation via website) and at the same time offer offline (CD) installations to some users which do not have Internet connection.
In the Publish options I left the Installation Folder URL
blank, I unchecked the option The application should check for updates
(since I'm taking care of the updates check manually) and I filled in the option Update location (if different than publish location)
.
When I'm trying to test the offline installation, the application cannot be installed. I get an error "Application download did not succeed. Check your network connection..." and when pressing the Details button, I'm reading the following error:
- Activation of C:\Install\myapp.application resulted in exception. Following failure messages were detected:
- Downloading http://myserver.com/myapp.application did not succeed.
- Unable to connect to the remote server
- A socket operation was attempted to an unreachable network 195.42.142.11:80
Why is it that, although all files are present, the installation is trying to download the files from the Internet?
Finally, when I remove the server URL from the Update location
, everything normally. Do I need to create two different setups each time I need to update the application? Or is there another solution?
Edit:
Further tests proved that offline installation works normally in Windows XP, but it doesn't work in Windows 7. In the later case, using the same installation files, the installer tries to download the application from the Internet, instead of using the local .deploy files.
No ClickOnce gurus available?