Click here to Skip to main content
11,928,352 members (46,401 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# setup Deployment

we have created one window application using C# and create deployment project in VS 2010. In the setup we have set the option so it download the .msi file from the URL give in the "Installation URL".

our .msi file is big in size and put on server. Now what is my confusion is when we click on .exe file it first download the .msi file from server and after it it install it from server using msiexec.exe command so it take double time (download from server and install from server)

we have checked this from install.log file from temp folder Text in that file something like...

Downloading 'project.msi' from 'http://##URL##/project.msi' to ''
Download completed at
WinVerifyTrust returned -2146762496
File not signed
WinVerifyTrust returned 0
File trusted
Launching Application.
Will attempt to elevate process.
Running command 'C:\Windows\SysWOW64\msiexec.exe' with arguments ' -I "http://##URL##/project.msi" '

so is there any seeting so way we can install it from downloaded location not from URL.

Please help me on this.

Posted 2-Jun-13 22:57pm
Pablo Aliskevicius 3-Jun-13 5:26am
Google 'click once'.
David_Wimbley 3-Jun-13 15:53pm
not to mention a simple search on code project for previous articles.
The problem is not clear, but it's not true that it's double work. If setup downloads MSI from the server, this can be the MSI which contains all the files inside its CABs. Or, it can additionally download something, but without duplication anything. Of course, every correct thing could be screwed up, but there is nothing inherently wrong is such scenario.
Amitosh Swain 4-Jun-13 1:03am
Why not remove the download option, it automatically downloads and installs it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151126.1 | Last Updated 3 Jun 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100