Hi, everyone.  I'm having a problem trying to figure out how to properly pass
an argument containing quotes to a program using the execute function.  Here's
the full command I need to run as part of an XPInstall:

j2re-1_4_2_03-windows-i586-p.exe /v"/qb REBOOT=ReallySuppress"

If I enter that command from a command prompt, it works like a charm.
However, I cannot get it to work from the install.js script.  Here's an
example of what I'm trying:

args = '/v"/qb REBOOT=ReallySuppress"'
err = execute("j2re-1_4_2_03-windows-i586-p.exe", args, true);

When this gets run, the j2re command spits back an error saying it didn't pass
the correct parameters.  So, the problem I'm having is that the quotes aren't
being handled quite right.

Does anyone know the proper way of handling this? Any suggestions? Thanks!

FYI, I've also tried args = "/v\"/qb REBOOT=ReallySuppress\"", but still no luck.

--
Jared
_______________________________________________
Mozilla-xpinstall mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpinstall

Reply via email to