<br><br><div class="gmail_quote">On 12 February 2013 22:31, Antony Awaida <span dir="ltr"><<a href="mailto:antony@bizappcenter.com" target="_blank">antony@bizappcenter.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Carl:<br>
<br>
Thanks for the suggestion. I am not very familiar with powershell.<br>
Getting an error when i try to run any of the commands above:<br>
<br>
Thanks, Antony<br>
<br>
c:\WPKG>powershell -command "(new-object System.Net.WebClient).DownloadFile('htt<br>
<div class="im">p://<a href="http://ipv4.download.thinkbroadband.com/5MB.zip" target="_blank">ipv4.download.thinkbroadband.com/5MB.zip</a>','C:\5MB.zip')"<br>
</div>Exception calling "DownloadFile" with "2" argument(s): "An exception occurred d<br>
uring a WebClient request."<br>
At line:1 char:47<br>
+ (new-object System.Net.WebClient).DownloadFile <<<< ('<a href="http://ipv4.download.th" target="_blank">http://ipv4.download.th</a><br>
<a href="http://inkbroadband.com/5MB.zip" target="_blank">inkbroadband.com/5MB.zip</a>','C:\5MB.zip')<br>
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException<br>
+ FullyQualifiedErrorId : DotNetMethodException<br>
<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div>Hi Antony, </div><div><br></div><div>Please can you reply to the whole list, perhaps other might have some more insight where I fail.</div><div><br></div>
<div>That's just an example, can you download the file directly via a browser, or do you have an internal file you can try instead?</div><div>Do you have a proxy perhaps causing trouble? Or local permissions.</div><div>
It could be a syntactical issue if you're running an older powershell version.</div><div><br></div><div>I can;t replicate the issue right now...</div><div><br></div><div>C</div><div><br></div><div><br></div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
<br>
On Tue, Feb 12, 2013 at 1:55 PM, Carl van Eijk <<a href="mailto:carl.vaneijk@gmail.com">carl.vaneijk@gmail.com</a>> wrote:<br>
><br>
><br>
> On 12 February 2013 21:34, antonya <<a href="mailto:antony@bizappcenter.com">antony@bizappcenter.com</a>> wrote:<br>
>><br>
>><br>
>> Hi there:<br>
>><br>
>> We are using WPKG over HTTP. Msi installs work fine: msiexec /i<br>
>> <a href="http://someserverurl" target="_blank">http://someserverurl</a>.<br>
>><br>
>> What about .exe? Does anyone have experience with installing .exe from a<br>
>> remote server? what is the "install cmd" to install a .exe from a remote<br>
>> server?<br>
>><br>
><br>
> I've not tried this, but perhaps invoking a powershell command might work...<br>
><br>
> powershell -command "(new-object<br>
> System.Net.WebClient).DownloadFile('<a href="http://ipv4.download.thinkbroadband.com/5MB.zip" target="_blank">http://ipv4.download.thinkbroadband.com/5MB.zip</a>','C:\5MB.zip')"<br>
><br>
> something like<br>
><br>
><br>
> <install cmd= 'powershell -command "(new-object<br>
> System.Net.WebClient).DownloadFile('<a href="http://servername/installpackage.exe" target="_blank">http://servername/installpackage.exe</a>','C:\installs\installpackage.exe')"'><br>
><br>
><br>
>><br>
>> Thanks,<br>
>> Antony<br>
>> --<br>
>> View this message in context:<br>
>> <a href="http://old.nabble.com/Installing-an-.exe-from-a-remote-server-tp35016031p35016031.html" target="_blank">http://old.nabble.com/Installing-an-.exe-from-a-remote-server-tp35016031p35016031.html</a><br>
>> Sent from the WPKG - Users mailing list archive at Nabble.com.<br>
>><br>
>> -------------------------------------------------------------------------<br>
>> wpkg-users mailing list archives >><br>
>> <a href="http://lists.wpkg.org/pipermail/wpkg-users/" target="_blank">http://lists.wpkg.org/pipermail/wpkg-users/</a><br>
>> _______________________________________________<br>
>> wpkg-users mailing list<br>
>> <a href="mailto:wpkg-users@lists.wpkg.org">wpkg-users@lists.wpkg.org</a><br>
>> <a href="http://lists.wpkg.org/mailman/listinfo/wpkg-users" target="_blank">http://lists.wpkg.org/mailman/listinfo/wpkg-users</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Carl van Eijk<br>
><br>
</div></div></blockquote></div><br>