As I am getting an error message when i am downloading file from the localhost. i am using IIS7. Please help me in this regard.
This is my MSI Code....
Set Variable RESULT to
Set Variable TARGETLOC to D:\IA\TEST2
Download File http://localhost/MYDAPP/SAMPLE.TXT into $TARGETLOC$ (get result into variable RESULT)
MessageBox: D- RESULT, $RESULT$
if Variable RESULT Equals SUCCESS
MessageBox: RESULT=, SUCCESS
else
MessageBox: RESULT: =, FAILED
end
Thanks in advance
Senthil
DOWNLOAD FILE
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: DOWNLOAD FILE
Dear Senthil,
if you type " http://localhost/MYDAPP/SAMPLE.TXT" in your browser are you able to download the file?
Regards
if you type " http://localhost/MYDAPP/SAMPLE.TXT" in your browser are you able to download the file?
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: DOWNLOAD FILE
Yes, getting reply in the browser when i am giving this URL " http://localhost/MYDAPP/SAMPLE.TXT"
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: DOWNLOAD FILE
Dear Senthil,
Honestly, I just tried to download a file over my network and works fine.
In order to to do an extra verification, have you tried to replace your file URL with something else available over internet?
Regards
Honestly, I just tried to download a file over my network and works fine.
In order to to do an extra verification, have you tried to replace your file URL with something else available over internet?
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Posts: 252
- Joined: Sat Dec 03, 2011 3:07 am
- Location: Konstanz, Germany
- Contact:
Re: DOWNLOAD FILE
Hello guys,
I have the following problem while downloading files from our server. In the top of the script it works perfectly,
but when I want to download the files within my script (where the installfiles commands are) it fails.
Do you have an idea?
I have the following problem while downloading files from our server. In the top of the script it works perfectly,
but when I want to download the files within my script (where the installfiles commands are) it fails.
Do you have an idea?
Code: Select all
[DEFINE WEB MEDIA MIK.arjuna]
Get Component MIK.arjuna Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Download File http://www.mik-support.de/setups/arjuna/files/MikArjuna2501.7z into $TARGETDIRLOC$\MikArjuna2501.7z (get result into variable downloadstate)
Extract .... into TARGETDIR
end
Kind regards
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: DOWNLOAD FILE
Dear Heiko,
Without having your complete project it is not easy to give you a correct answer ... but this could be caused because your Downolad command it is located within a WEB MEDIA BLOCK definition.
Please try to verify what happens moving the Download command just before that WEB MEDIA BLOCK and anyway, outside of any other existing WEB MEDIA BLOCK.
Regards
Without having your complete project it is not easy to give you a correct answer ... but this could be caused because your Downolad command it is located within a WEB MEDIA BLOCK definition.
Please try to verify what happens moving the Download command just before that WEB MEDIA BLOCK and anyway, outside of any other existing WEB MEDIA BLOCK.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Posts: 252
- Joined: Sat Dec 03, 2011 3:07 am
- Location: Konstanz, Germany
- Contact:
Re: DOWNLOAD FILE
I can confirm that it does not work within web media block, but outside of that.
Thanks
Thanks
Kind regards
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: DOWNLOAD FILE
Happy you solved!
Regards
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Posts: 252
- Joined: Sat Dec 03, 2011 3:07 am
- Location: Konstanz, Germany
- Contact:
Re: DOWNLOAD FILE
try this one Senthil:
Code: Select all
~InstallAware Clipboard Data~
~MessageBox~
~{DEB2084F-583F-433E-84DE-D12E54275377}~
~newresult~
~$newresult$~
~0~
~1~
~~
~Call DLL Function~
~{2360D2D1-F71C-4912-803F-8A6C8815543F}~
~Urlmon.dll,URLDownloadToFileA,long,newresult,long,0,"pointer to string",http://www.domain.de/file.txt,"pointer to string",$TARGETDIR$,long,0,long,0,$~
~mIDEFunc.dll\mEXEFunc.dll~
~Set Variable~
~{4EF1EE3D-BCAA-4A2A-9F8A-4DB45CC3838F}~
~newresult$MYAH$MYAH$FALSE~
~~
Kind regards
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
Heiko Kummerfeld
MIK GmbH
Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
Re: DOWNLOAD FILE
Glad you have it solved too. I'll mention this and it may save a headache or two later. depending on the server,.7ZIP is not always defined as a MIME type, so when I've had problems with it that's one of the first things check.
Who is online
Users browsing this forum: No registered users and 207 guests