It appears you have not registered with our community. To register please click here ...
Username
Password
'Enable/Disable Registry Editing tools'© Doug Knox - rev 12/06/99Option Explicit'Declare variablesDim WSHShell, n, MyBox, p, t, mustboot, errnum, versDim enab, disab, jobfunc, itemtypeSet WSHShell = WScript.CreateObject("WScript.Shell")p = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"p = p & "DisableRegistryTools"itemtype = "REG_DWORD"mustboot = "Log off and back on, or restart your pc to" & vbCR & "effect the changes"enab = "ENABLED"disab = "DISABLED"jobfunc = "Registry Editing Tools are now "'This section tries to read the registry key value. If not present an 'error is generated. Normal error return should be 0 if value is 'presentt = "Confirmation"Err.ClearOn Error Resume Nextn = WSHShell.RegRead (p)On Error Goto 0errnum = Err.Numberif errnum <> 0 then'Create the registry key value for DisableRegistryTools with value 0 WSHShell.RegWrite p, 0, itemtypeEnd If'If the key is present, or was created, it is toggled'Confirmations can be disabled by commenting out 'the two MyBox lines belowIf n = 0 Then n = 1WSHShell.RegWrite p, n, itemtypeMybox = MsgBox(jobfunc & disab & vbCR & mustboot, 4096, t)ElseIf n = 1 then n = 0WSHShell.RegWrite p, n, itemtypeMybox = MsgBox(jobfunc & enab & vbCR & mustboot, 4096, t)End If
enable registry using vbs scripted fileCode: [Select]'Enable/Disable Registry Editing tools'© Doug Knox - rev 12/06/99Option Explicit'Declare variablesDim WSHShell, n, MyBox, p, t, mustboot, errnum, versDim enab, disab, jobfunc, itemtypeSet WSHShell = WScript.CreateObject("WScript.Shell")p = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"p = p & "DisableRegistryTools"itemtype = "REG_DWORD"mustboot = "Log off and back on, or restart your pc to" & vbCR & "effect the changes"enab = "ENABLED"disab = "DISABLED"jobfunc = "Registry Editing Tools are now "'This section tries to read the registry key value. If not present an 'error is generated. Normal error return should be 0 if value is 'presentt = "Confirmation"Err.ClearOn Error Resume Nextn = WSHShell.RegRead (p)On Error Goto 0errnum = Err.Numberif errnum <> 0 then'Create the registry key value for DisableRegistryTools with value 0 WSHShell.RegWrite p, 0, itemtypeEnd If'If the key is present, or was created, it is toggled'Confirmations can be disabled by commenting out 'the two MyBox lines belowIf n = 0 Then n = 1WSHShell.RegWrite p, n, itemtypeMybox = MsgBox(jobfunc & disab & vbCR & mustboot, 4096, t)ElseIf n = 1 then n = 0WSHShell.RegWrite p, n, itemtypeMybox = MsgBox(jobfunc & enab & vbCR & mustboot, 4096, t)End IfOnce you have re-enabled regedit in registry Ctrl+Alt+Del then close explorer.exe then run explorer.exe, so that new registry settings are enabled.Now Run SC2 Beta
Option Explicit'Declare variablesDim WSHShell, rr, rr2, MyBox, val, val2, ttl, toggleDim jobfunc, itemtypeOn Error Resume NextSet WSHShell = WScript.CreateObject("WScript.Shell")val = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr"val2 = "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr"itemtype = "REG_DWORD"jobfunc = "Task Manager is now "ttl = "Result"'reads the registry key value.rr = WSHShell.RegRead (val)rr2 = WSHShell.RegRead (val2)toggle=1If (rr=1 or rr2=1) Then toggle=0If toggle = 1 Then WSHShell.RegWrite val, 1, itemtype WSHShell.RegWrite val2, 1, itemtype Mybox = MsgBox(jobfunc & "disabled.", 4096, ttl)Else WSHShell.RegDelete val WSHShell.RegDelete val2 Mybox = MsgBox(jobfunc & "enabled.", 4096, ttl)End If
Hi there, I am currently attempting this but I'm having trouble with lazylaunch2.exe, its executable is encrypted,packed, or protected and it doesn't let me launch it once I have built the portable exe and data image. I did a quick search around theteknogod's forums and i came across this thread http://teknogods.com/phpbb/viewtopic.php?f=13&t=2052&p=16352&hilit=vmware#p16276 and it looks like lazylaunch doesn't let itself run under VM-like conditions...What I'm trying to do now is exclude lazylaunch from the thinapp project since thats what I think is causing the problems.
Quote from: MexN00B on March 07, 2010, 04:43:54 AMHi there, I am currently attempting this but I'm having trouble with lazylaunch2.exe, its executable is encrypted,packed, or protected and it doesn't let me launch it once I have built the portable exe and data image. I did a quick search around theteknogod's forums and i came across this thread http://teknogods.com/phpbb/viewtopic.php?f=13&t=2052&p=16352&hilit=vmware#p16276 and it looks like lazylaunch doesn't let itself run under VM-like conditions...What I'm trying to do now is exclude lazylaunch from the thinapp project since thats what I think is causing the problems.Sounds good. I was able to get the whole thing into a portable package, but the launcher I included in the package couldn't find the map or ai files.