![]() |
![]() |
![]() |
|
X-Setup Pro PluginsNote for everybody who is visiting this page via a search engine like Google: If you are interested in using this plugin, because it contains a tweak you would like to have, it's easy as 1-2-3-4:
Plugin details
This is the HTML representation of the plugin AutoRun Services (Current User) (Version 2.03) which can be found in the following path(s) in X-Setup Pro classic:
The plugin can be executed on the following Windows versions (Operation Systems):
Description :
The plugin was created by Xteq Systems
The plugin offers the following user-interface controls: Below is the code of this plugin written in "VBScript". Please note that this code can only be executed inside X-Setup Pro.
'/*** MAIN TEMPLATE IS XQ AutoRun Lister.XPL ***/
'/*** ONLY CHANGE REGISTRY KEYS BELOW ***/
sP="HKCU\Software\Microsoft\Windows\CurrentVersion\RunServices\"
sPD1="HKCU\Software\Microsoft\Windows\CurrentVersion\RunServices-\"
sPD2="HKCU\Software\Microsoft\Windows\CurrentVersion\RunServices (Disabled)\"
'/////////////////////////////////
'///*** NO CHANGES BELOW HERE ***/
Dim aryLoc()
Dim iReadAllCount
sDisabled=" [" & GetTextString(1) & "]"
Sub Plugin_Initialize
iReadAllCount=0
Call ReloadAll
End Sub
Sub ReloadAll
for i=1 to iReadAllCount
Call SetUIElement(i,"")
next
i=0
iC=RegEnumValues(sP)
i=i+iC
iC=RegEnumValues(sPD1)
i=i+iC
iC=RegEnumValues(sPD2)
i=i+iC
ReDim aryLoc(i)
iReadAllCount=1
Call ReadAll(sP,1,false)
Call ReadAll(sPD1,2,true)
Call ReadAll(sPD2,3,true)
End Sub
Sub ReadAll(key,idx,IsDisabledKey)
iC=RegEnumValues(key)
if iC>0 then
for l=1 to iC
sName=RegEnumElement(l)
If IsDisabledKey=true then
sName=sName & sDisabled
end if
Call SetUIElement(iReadAllCount,sName)
aryLoc(iReadAllCount)=idx
iReadAllCount=iReadAllCount+1
Next
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
if ElementSubIndex>0 then
'Look up Registry key
if aryLoc(ElementSubIndex)=1 then
sRegPath=sP
elseif aryLoc(ElementSubIndex)=2 then
sRegPath=sPD1
else
sRegPath=sPD2
end if
'Look up Registry name
sRegName=GetUIElement(ElementSubIndex)
bIsEnabled=true
If InStr(sRegName,sDisabled)>0 then
sRegName=Left(sRegName,len(sRegName)-len(sDisabled))
bIsEnabled=false
end if
'Look up Value
sValue=RegReadValue(sRegPath & sRegName)
'msginformation sRegPath
'msginformation sRegName & "]"
'msginformation sValue
if ElementIndex=1 then '//Information
Call MsgInformation(GetTextString(2) & " " & vbCrlF & vbCrlf & sValue)
end if
If ElementIndex=2 then '//Enable/Disable
if bIsEnabled=true then
'//Disable it
Call RegWriteValue(sPD1 & sRegName,sValue,1)
Call RegDeleteValue(sRegPath & sRegName)
else
'//Enable it
Call RegWriteValue(sP & sRegName,sValue,1)
Call RegDeleteValue(sRegPath & sRegName)
end if
Call ReloadAll
end if
If ElementIndex=3 then 'Delete
If bIsEnabled=true then
Call MsgErrorTextString(3)
else
Call RegDeleteValue(sRegPath & sRegName)
Call ReloadAll
Call Restart
end if
end if
end if
End Sub
Sub Plugin_Terminate
End Sub
You can get more detailed information about this plugin inside the application X-Setup Pro. Get the most popular tweaker software for free: |
|