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.
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...
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" <Jos...@discussions.microsoft.com> wrote in message
news:D69FB1D3-F038-4282...@microsoft.com...
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
What sort of container hosts the CAB link (HTM, HTA... )?
"Joseph" <Jos...@discussions.microsoft.com> wrote in message
news:841AD934-6A74-4A7D...@microsoft.com...
<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>
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...
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?
>
> ....
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...
<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>