[wpkg-users] Installing an .exe from a remote server
Carl van Eijk
carl.vaneijk+wpkg at gmail.com
Tue Feb 12 23:51:43 CET 2013
On 12 February 2013 22:31, Antony Awaida <antony at bizappcenter.com> wrote:
> Hi Carl:
>
> Thanks for the suggestion. I am not very familiar with powershell.
> Getting an error when i try to run any of the commands above:
>
> Thanks, Antony
>
> c:\WPKG>powershell -command "(new-object
> System.Net.WebClient).DownloadFile('htt
> p://ipv4.download.thinkbroadband.com/5MB.zip','C:\5MB.zip')"
> Exception calling "DownloadFile" with "2" argument(s): "An exception
> occurred d
> uring a WebClient request."
> At line:1 char:47
> + (new-object System.Net.WebClient).DownloadFile <<<< ('
> http://ipv4.download.th
> inkbroadband.com/5MB.zip','C:\5MB.zip')
> + CategoryInfo : NotSpecified: (:) [],
> MethodInvocationException
> + FullyQualifiedErrorId : DotNetMethodException
>
> Hi Antony,
Please can you reply to the whole list, perhaps other might have some more
insight where I fail.
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?
Do you have a proxy perhaps causing trouble? Or local permissions.
It could be a syntactical issue if you're running an older powershell
version.
I can;t replicate the issue right now...
C
>
> On Tue, Feb 12, 2013 at 1:55 PM, Carl van Eijk <carl.vaneijk at gmail.com>
> wrote:
> >
> >
> > On 12 February 2013 21:34, antonya <antony at bizappcenter.com> wrote:
> >>
> >>
> >> Hi there:
> >>
> >> We are using WPKG over HTTP. Msi installs work fine: msiexec /i
> >> http://someserverurl.
> >>
> >> What about .exe? Does anyone have experience with installing .exe from a
> >> remote server? what is the "install cmd" to install a .exe from a remote
> >> server?
> >>
> >
> > I've not tried this, but perhaps invoking a powershell command might
> work...
> >
> > powershell -command "(new-object
> > System.Net.WebClient).DownloadFile('
> http://ipv4.download.thinkbroadband.com/5MB.zip','C:\5MB.zip')"
> >
> > something like
> >
> >
> > <install cmd= 'powershell -command "(new-object
> > System.Net.WebClient).DownloadFile('http://servername/installpackage.exe
> ','C:\installs\installpackage.exe')"'>
> >
> >
> >>
> >> Thanks,
> >> Antony
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/Installing-an-.exe-from-a-remote-server-tp35016031p35016031.html
> >> Sent from the WPKG - Users mailing list archive at Nabble.com.
> >>
> >>
> -------------------------------------------------------------------------
> >> wpkg-users mailing list archives >>
> >> http://lists.wpkg.org/pipermail/wpkg-users/
> >> _______________________________________________
> >> wpkg-users mailing list
> >> wpkg-users at lists.wpkg.org
> >> http://lists.wpkg.org/mailman/listinfo/wpkg-users
> >
> >
> >
> >
> > --
> > Carl van Eijk
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20130212/52003d83/attachment-0002.html>
More information about the wpkg-users
mailing list