![]() |
![]() |
![]() |
|
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 Move AutoRun Items (Version 1.24) 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.
iCount=0
sUSR="USER: "
sSYS="SYST: "
iTxtLen=6
sP1="HKCU\Software\Microsoft\Windows\CurrentVersion\Run\"
sP2="HKLM\Software\Microsoft\Windows\CurrentVersion\Run\"
Sub Plugin_Initialize
Call ReadAll()
End Sub
Sub ReadAll
if iCount>0 then
for i=1 to iCount
Call SetUIElement(i,"") '//clear all
next
end if
iC1=RegEnumValues(sP1)
'msginformation ic1
iC2=RegEnumValues(sP2)
'msginformation ic2
iCount=iC1+iC2 '//save total count
'Read current user
l=RegEnumValues(sP1)
if l>0 then
for i=1 to l
sName=RegEnumElement(i)
Call SetUIElement(i,sUSR & sName)
next
end if
l=RegEnumValues(sP2)
if l>0 then
for i=1 to l
sName=RegEnumElement(i)
Call SetUIElement(i+iC1,sSYS & sName)
next
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
if ElementSubIndex>0 then
s=GetUIElement(ElementSubIndex)
'//first get the regvalue
sRegValue=right(s,len(s)-iTxtLen)
''''msginformation "[" & sRegValue & "]"
'//user or system
if left(s,iTxtLen)=sUSR then
sRegPath=sP1
bIsUser=true
else
sRegPath=sP2
bIsUser=false
end if
''''msginformation "[" & sRegPath & "]"
'//read the value
sValue=RegReadValue(sRegpath & sRegValue)
'//System To User
if ElementIndex=1 then
if bIsUser=true then
MsgErrorTextString 1
else
Call RegWriteValue(sP1 & sRegValue,sValue,1)
Call RegDeleteValue(sRegPath & sRegValue)
Call ReadAll
end if
end if
'//Show info
if ElementIndex=2 then
MsgInformation GetTextString(2) & " " & vbCrLf & vbCrLf & sValue
end if
'//User to System
if ElementIndex=3 then
if bIsUser=false then
MsgErrorTextString 3
else
Call RegWriteValue(sP2 & sRegValue,sValue,1)
Call RegDeleteValue(sRegPath & sRegValue)
Call ReadAll
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: |
|