My example of notepad.exe was just to demonstrate the bug. I see the same
behavior even due to a native install which is not an interactive program.
Moreover I need to pass execution parameters to the native install.
Therefore I use:
args = "/arg1 a /arg2 b"
execute("nativeInstall.exe", args);
The XPInstall API guide also documents the second parameter in the execute
to be arguments to the executable and the behavior I see with the above
usage is appropriate.
execute("nativeInstall.exe", true);
I do not know of the blocking argument you have mentioned. Do I need to
modify the native executable to do something different using an additional
parameter ? Or is this a parameter for Mozilla. Pls. let me know. I would
prefer to go the blocking route as advised.
Also do I need to return any specific return code from nativeInstall.exe ?
Is there a way to wait for it to finish after performInstall like a thread
sleep ? Alternatively is there a way to clean up the temp file myself in the
web page after the install using JS api so the message doesn't pop up?
Thanks for immediate response.
Pradeep
"Daniel Veditz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Please file a bug, we will have to re-think this. When we "execute" a file
> we need to remember to later delete the temporary file created. To do this
> we used our mechanism for completing partial installs, which blocks
mozilla
> execution until the install has completed. Since you have left notepad
open
> then we can't delete it, and mozilla won't start until we can.
>
> If as part of an install you had launched a native install this behavior
> would make sense, but since you launched a interactive program like
notepad
> it does not.
>
> Meanwhile you could add the blocking argument to the execute()
> command--execute('notepad.exe',true)--and then the install would not
finish
> until you closed it. This is strongly recommended if what you've launched
> really is part of the install. But we'll need to figure out what to do in
> this benign case.
>
> -Dan Veditz
>
> Pradeep wrote:
>
> > Hi
> >
> > When I have a simple execute statement like
> >
> > execute("notepad.exe") in the install.js in theXPI file. Netscape 6.1 it
> > always pops up the following messge on next startup. PS I have
(notepad.exe
> > packaged into the xpi). I can see notepad geeting launched. And
everything
> > seems to work fine. Except when I restart N6.1
> >
> > "The program must close to allow a previous installation attempt ot
> > complete. Please restart."
> >
> > See attachment !!!!
> >
> > Why !!!
> >
> > Any workaround ! Are there any bugs filed on this ? I would like to
file a
> > bug if there is no solution.
> >
> > Pradeep
> >
> >
> >
>