Re: HTA error in Windows Vista



Hi Joe,

Thanks for your time. I hope I can give you the right answer, but honestly,
I'm not sure if this is what you mean:

The file I execute is called Otys.exe (the toolbar). In the
User-MyName-Appdata-Local-Temp Folder there are two files created called
Actions.xml and Otys.hta.
The code in the first file (Actions.xml) reads:
<?xml version="1.0" encoding="ISO-8859-1"?>
<actionlist>
</actionlist>

The code in the second file (Otys.hta) reads:
<html>
<head>
<title>Today</title>

<HTA:APPLICATION ID="appOtysToolbar"
APPLICATIONNAME="OTYS"
BORDER="thick"
CAPTION="yes"
ICON="http://bo02.otys.nl/favicon.ico";
SHOWINTASKBAR="no"
SINGLEINSTANCE="yes"
CONTEXTMENU="no"
SYSMENU="yes"
SCROLL="no"
NAVIGABLE="no"
MaximizeButton="No"
WINDOWSTATE="normal">
</head>

<script language="JavaScript"
src="http://bo02.otys.nl/adm/hta/java/hta.js";></script>
<script language="JavaScript"
src="http://bo02.otys.nl/adm/hta/java/htasupport.js";></script>

<script language="Javascript">

// reset window size
//window.resizeTo(180,260);
window.resizeTo(360,520);

function start() {




document.getElementById('mainfrm').src='http://85.112.17.60/adm/hta/toolbar/toolbarhta.php?OTYS_BACKOFFICE='+htasGetSessionId(appOtysToolbar);
}

</script>

<body style="margin:0px;overflow:hidden;" onLoad="start()">


<script language="Jscript">
// registry hacks here:
try {
var shell = new ActiveXObject('WScript.Shell');

shell.RegWrite('HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\otys.nl\\bo01\\*',2,"REG_DWORD");


shell.RegWrite('HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range1\\*',2,"REG_DWORD");

shell.RegWrite('HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range1\\:Range','85.112.17.60');
shell.RegWrite('HKEY_CURRENT_USER\\Software\\Microsoft\\Internet
Explorer\\New Windows\\Allow\\85.112.17.60','hex:');
// set MSIE default caching to AUTOMATIC (4)

shell.RegWrite('HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\SyncMode5', 4, "REG_DWORD");
// enable advanced cookie handling

shell.RegWrite('HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\PrivacyAdvanced', 1, "REG_DWORD");
} catch (e) {
alert('Warning: unable to setup registry settings');
}

</script>

<IFRAME id="mainfrm" width="100%" scrolling="NO" frameborder="0" border="0"
height="100%" SRC="" APPLICATION="yes">

I don't see any mentioning of LoadandRun() in here, so mayby it could a
script executed that I can't see. I hope this is somewhat helpfull in solving
this problem. If I need to do something to find this code, please instruct
me, because I'm a novice at scripting.

Thanks again Joe for your affort.
--
Egbert van den Bosch


"Joe Fawcett" wrote:



"Egbert van den Bosch" <EgbertvandenBosch@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote
in message news:81CBCB3A-A192-4C74-9A99-722373340E09@xxxxxxxxxxxxxxxx
Hi,

Since a few weeks I have a new PC (Acer Aspire M3610) with Windows Vista
Home Premium installed. I work from home for a jobsite and use a
.hta-application - a toolbar - to manage e-mail and backoffice database
stuff.

In XP this all worked fine, but in Vista I get errors. Starting the
toolbar
and logging in to it works fine, but when I click on a link to start a
function (e.g. E-mail or Candidatemanagement) I get the following error:

"HTA Error: Exception occured while calling htaLoadandRun()"

sometimes also (and I hope my translation is not to far off):

"Automatic server can't create object"

I searched high and low, tried changing many settings (and back) in
Firewall, user specific licenses(?) etc. Called supportdesk of the used
app
and wrote to Acer. And I still come up empty.

Anyone with a hint of an answer to solve this problem?

Thanks in advance!
--
Egbert van den Bosch
It possibly uses a library not available in Vista. What code executes in the
loadAndRun function?

--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

.