Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with an RegRead/RegWrite script.

Status
Not open for further replies.

Chanassa

Technical User
Jun 20, 2011
2
NO
Hello everyone, this is mye first time on the forum so please correct me if I posted this in the wrong place.

This is the plot:

I'm going to start the instal a program of a regkey isn't written.

This is the code:

Wscript.sleep 20000

msgbox "Install starts now "

If RegRead("HKEY_CURRENT_USER\Software\Installert", "programmer") <> ("Installert") Then

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run "C:\antivirus.exe"

RegWrite "HKEY_CURRENT_USER\Software\Installert", "programmer", "REG_SZ", "200611"

If not wscript.exit Then wscript.exit
end if

I get this error: Line 14, sign 1 - 800A000D

What is wrong?

Thanks a lot.

Marius Bekk
Norway
 
When I look at it now, I see that the syntax is wrong for a VBS script..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top