Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

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.

Thanks,
Posted
Comments
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.
Sergey Alexandrovich Kryukov 3-Jun-13 23:13pm    
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.
—SA
AlphaDeltaTheta 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900