<html>
<head>
<base href="http://bugzilla.wpkg.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Intermittent problem Uninstall not found in System Context"
href="http://bugzilla.wpkg.org/show_bug.cgi?id=287#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Intermittent problem Uninstall not found in System Context"
href="http://bugzilla.wpkg.org/show_bug.cgi?id=287">bug 287</a>
from <span class="vcard"><a class="email" href="mailto:r.meier@wpkg.org" title="Rainer Meier <r.meier@wpkg.org>"> <span class="fn">Rainer Meier</span></a>
</span></b>
<pre>(In reply to Robl from <a href="show_bug.cgi?id=287#c11">comment #11</a>)
<span class="quote">> I understand what you're saying but are you sure that what I wrote was
> incorrect? The string of code I put is opening the wrapper.js, shouldn't
> this trump the environment that opened it? You stated that:</span >
Alright, I thin this was my reading-inability at 1am in the morning. I didn't
actually take into account you're calling wrapper.js. Actually you are right
that if you call wrapper.js it should not make any difference whether you do
this from 32-bit or 64-bit cscript.exe as wrapper.js will launch
sysnative\cscript.exe on 64-bit systems to run wpkg.js.
Though this is the absolute last thing you should do. Especially as your case
described would run the wrong cscript.exe on purpose just to fix this mistake
by wrapper.js. Moreover execution time will increase.
So you should first try to run the right cscript.exe. Especially as you already
use a wrapper cmd script which can do this easily. For example:
@echo off
set CSCRIPT=%SystemRoot%\system32\cscript.exe
if exist "%SystemRoot%\sysnative\cscript.exe" set
CSCRIPT=%SystemRoot%\sysnative\cscript.exe
start /wait "WPKG" "%CSCRIPT%" /b /nologo \\DOMAIN\wpkg\wpkg.js /synchronize
/quiet /nonotify /noreboot >> c:\temp\maint_status.log 2>>&1
That's basically all it needs on your side to assure you're running WPKG with
64-bit cscript.exe. Just if this does not work replace the call to wpkg.js with
the call to wrapper.js which will do all the selection for you.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>