Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

File Download Dialog Box

0 views
Skip to first unread message

Joseph

unread,
May 12, 2005, 12:46:06 PM5/12/05
to
Hi, I have a website where the users have to access it through a HTA file.
Due to the security warning on download file, I created an INF file and
created a CAB file which includes INF & HTA file. Code Signed the CAB file.

I noticed that the CAB file gets extracted but it does not executes the HTA
file.

I did a similar excercise with a BAT (instaed of HTA file) and it did work.

following is the INF file:
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
test.hta=test.hta
[test.hta]
clsid={15589FA1-C456-11CE-BF01-00AA0055595A}
FileVersion=1,0,0,0
hook=zzzinstaller
[zzzinstaller]
run=%EXTRACT_DIR%\test.hta

I would like to know why it could not execute the test.hta.

Nic Roche

unread,
May 12, 2005, 11:02:51 PM5/12/05
to
> run=%EXTRACT_DIR%\test.hta

The HTA file is just a document...

try

run=mshta.exe%EXTRACT_DIR%\test.hta


Nic Roche

"Joseph" <Jos...@discussions.microsoft.com> wrote in message
news:7E0E4240-A9DC-4F1A...@microsoft.com...

Joseph

unread,
May 13, 2005, 12:51:09 PM5/13/05
to
Hi Nic Roche,

Thank you very much. According to your suggestion, I made the modification
on the INF file as shown below and it worked perfectly:

[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
test.hta=test.hta
[test.hta]
clsid={15589FA1-C456-11CE-BF01-00AA0055595A}
FileVersion=1,0,0,0
hook=zzzinstaller
[zzzinstaller]

run=%11%\mshta.exe %EXTRACT_DIR%\test.hta

Joseph

unread,
May 17, 2005, 9:37:30 PM5/17/05
to
Now that I am able to open the HTA application which is in the Code Signed
CAB file. I realise that this only allows to a Windows Power Users. Normal
windows users could not access the web site through HTA because it does not
allow. Is there any alternate solution available?


"Joseph" <Jos...@discussions.microsoft.com> wrote in message

news:D69FB1D3-F038-4282...@microsoft.com...

Joseph

unread,
May 18, 2005, 1:00:03 PM5/18/05
to
I am trying to access a web site which is opened by HTA. Due to the security
warning I made a Code Signed CAB file which includes the INF file as shown
below and the HTA file which opens the web site.

If I am a windows power user I am able to access the web site. If I am a
normal user I am not able to access the web site. I noticed that it does not
allow to extract the CAB file. Is there any alternate solution available?

Following is the INF file for your perusal:


[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
test.hta=test.hta
[test.hta]
clsid={15589FA1-C456-11CE-BF01-00AA0055595A}
FileVersion=1,0,0,0
hook=zzzinstaller
[zzzinstaller]
run=%11%\mshta.exe %EXTRACT_DIR%\test.hta

For further info, please check out the following link:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q232077

Nic Roche

unread,
May 18, 2005, 6:54:44 PM5/18/05
to
Hi Joseph,

What sort of container hosts the CAB link (HTM, HTA... )?

"Joseph" <Jos...@discussions.microsoft.com> wrote in message

news:841AD934-6A74-4A7D...@microsoft.com...

Joseph

unread,
May 19, 2005, 7:26:01 PM5/19/05
to
The CAB is opened through a test.htm file which has the following text:

<HTML>
<HEAD>
<TITLE>This is a test page</TITLE>
<SCRIPT>
function linkit(filename)
{
strpagestart = "<HTML><HEAD></HEAD><BODY><OBJECT
CLASSID='CLSID:15589FA1-C456-11CE-BF01-00AA0055595A' CODEBASE='";
strpageend = "'></OBJECT></BODY></HTML>";
runnerwin.document.open();
runnerwin.document.write(strpagestart + filename + strpageend);
window.status = "Done.";
return false;
}
</SCRIPT>
</HEAD>
<BODY>
<A HREF="" onclick="return linkit('http://www.xyz.com/test.cab');">Click
here</A>
<!-- hidden iframe used for inserting html content -->
<IFRAME ID=runnerwin WIDTH=0 HEIGHT=0
SRC="/?scid=about%3ablank"></IFRAME><BR/>
</BODY></HTML>

Nic Roche

unread,
May 20, 2005, 1:15:01 AM5/20/05
to
So what is your goal?

Load a HTA file from a web-page?
Load a HTA file from a users desktop?

...

Nic Roche

"Joseph" <Jos...@discussions.microsoft.com> wrote in message

news:8187D50E-1D5A-419D...@microsoft.com...

Joseph

unread,
May 20, 2005, 8:39:20 AM5/20/05
to
My goal is to not to allow the client to use the toolbar and the address bar
on Internet explorer due to the session security.

I use to open the site using window.open, but due to pop-up blocking by
various other applications (Google toolbar, Adaware etc..), they are not been
able to access the site.

That is why I am interested to use HTA, but the issue with HTA is that some
clients get freaked out when they see a File download security wanring
message all the time.

In order to avoid this, I was using the concept I have mentioned earlier.


"Nic Roche" wrote:

> So what is your goal?
>
> Load a HTA file from a web-page?
> Load a HTA file from a users desktop?
>

> ....

Nic Roche

unread,
May 20, 2005, 8:55:27 AM5/20/05
to
Hi Joseph,


I would write a script/app/setup that installed a shortcut on the clients
desktop/start menu.

They run the script/app/setup once under your istruction and then its just a
shortcut.

You can use a similar command to the revised one in the inf file in the
shortcut.


Nic Roche

"Joseph" <Jos...@discussions.microsoft.com> wrote in message

news:81A6F4AF-D243-4B7A...@microsoft.com...

Raja Ravipati

unread,
May 22, 2005, 11:54:02 AM5/22/05
to
Joseph,
This is a simple solution for your requirement.
Try this code & post your comments.

<html>
<head>
<script language="javascript">
function loadMainWindow()
{
var oNewWindow = window.open("Application.html","Main_Window",
"menubar=0, location=0, resizable=1, status=1");
oNewWindow.focus();

// Do not close the window if it is the Application
if(window.name != "Main_Window")
{
// Destroy this Window
var win = window.self;
win.opener = window.self;
win.close();
}
}

function window.onload()
{
try
{
loadMainWindow();
}
catch(e)
{
popUpMessage.style.display = 'block';
}

}
</script>
</head>
<body>
<div id="popUpMessage" style="display:none;">
Attempting to open <b>XXX Enterprise Application</b>.
<br>
<br>
If the application does not load within a few seconds, it may be
because a popup blocker program has blocked the new window.
<br>
You will need to allow the popups for this program to function
properly.
<br>
<br>
Alternatively click <a
href="javascript:loadMainWindow();"><b>HERE</b></a> to open the new window.
<br>
<br>
If you are asked if you want to close the currently open window,
click <b>yes</b>.
</div>
</body>
</html>

0 new messages