Jump to content

Using JSCRIPT to create a command to run


Recommended Posts

Hi all,

 

I am trying to run a command that is build on reading the registry thru JSCRIPT

 

I tryed the following with no result

 

cmds[pn]=['{JSCRIPT}=RunCmd(RegKeyValue("HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Adobe Flash Player ActiveX\\UninstallString") %comma% false %comma% true);'];

or even

 

cmds[pn]=['{JSCRIPT}=RunCmd(RegKeyValue("HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Adobe Flash Player ActiveX\\UninstallString").replace(/\\/gi %comma% "\\\\") %comma% false %comma% true);'];

 

none do work.

 

I know that 

 

cmds[pn]=['{JSCRIPT}=alert ("myvalue = " + RegKeyValue("HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Adobe Flash Player ActiveX\\UninstallString"));'];

 

it shows a message box with the correct value

C:\WINDOWS\SysWOW64\Macromed\Flash\FlashUtil32_13_0_0_206_ActiveX.exe -maintain activex

 

 

Please advise on how to get it working.

 

Regards.

 

Gilles

 

Link to comment
Share on other sites


Hello all,
 
For those who might be interested in the solution:
 

cmds[pn]=['{JSCRIPT}=RunCmd(\'"\' + RegKeyValue("HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Adobe Flash Player ActiveX\\UninstallString")+\'"\'%comma%0%comma%1);']

This run the uninstall command stored in the registry.

 

Cheers,

 

Gilles

Link to comment
Share on other sites

  • 1 month later...

Hi help me with my script firefox 32 or this wrong?

 
prog[pn]=['Firefox Setup 32.0b3'];
uid[pn]=['FIREFOXSETUP320b3'];
dflt[pn]=['yes'];
forc[pn]=['no'];
cat[pn]=['Navegadores'];
pfro[pn]=['no'];
cmds[pn]=['"%wpipath%\\Install\\FIREFOX SETUP 32.0b3\\Firefox_Setup_32.0b3.exe" -ms'];
desc[pn]=['Un ya muy conocido navegador web con la opcion de instalar infinidad de complementos. <STRONG>(Recomendado)</STRONG>'];
picf[pn]=['"%wpipath%\\Graphics\\Iconos\\Firefox.png"'];
picw[pn]=['48'];
pich[pn]=['48'];
textl[pn]=['Right'];
pn++;
 
 
Error:
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...