Hi,
I am trying to run the following script Stored directly in the custom action,for my CA.
var WSHShell = new ActiveXObject("WScript.Shell");
var RegLoc="HKLM\Software\Microsoft\Windows\CurrentVersion\Run\MyApp";
var bServerPath = WSHShell.RegRead("HKLM\Software\Mycompany\Prod\SubProduct\ServerPath");
WSHShell.RegWrite(RegLoc,'"'+bServerPath+'"',"REG_SZ");
During installation i am getting an error 2672...
Pls. help me out..
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Jscript .. stored in the CA
Started by
shafeeque
, Jul 31 2003 05:13
1 reply to this topic
Posted 31 July 2003 - 07:44
Hi Shafeeque
I sequenced this javascript in my InstallUISequence. It worked perfectly fine.
I did get a 1720 error when i had WScript.echo in my JScript but not 2672...If you continue to get the error message please give the complete error message.
Regards
Neo.
I sequenced this javascript in my InstallUISequence. It worked perfectly fine.
I did get a 1720 error when i had WScript.echo in my JScript but not 2672...If you continue to get the error message please give the complete error message.
CODE |
var WSHShell = new ActiveXObject("WScript.Shell"); var RegLoc="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\MyApp"; var bServerPath = WSHShell.RegRead("HKEY_LOCAL_MACHINE\Software\VagmiKey\VagmiProd\MyValue"); WSHShell.RegWrite(RegLoc,'"'+bServerPath+'"',"REG_SZ"); |
Regards
Neo.