Difference between revisions of "IniValueDelete"

From SpybotWiki
Jump to: navigation, search
Line 1: Line 1:
 
 
==Usage==
 
==Usage==
 
  IniValueDelete:[description],[filename],[section],[value],[data],<advanced build parameters>
 
  IniValueDelete:[description],[filename],[section],[value],[data],<advanced build parameters>
Line 13: Line 12:
 
# The first parameter is a standard description; either plaintext, or better a [[Description templates|description template]], since that allows localization when displaying results to the user.
 
# The first parameter is a standard description; either plaintext, or better a [[Description templates|description template]], since that allows localization when displaying results to the user.
 
# The second parameter describes the file; you may use [[Path templates|path template]] here.
 
# The second parameter describes the file; you may use [[Path templates|path template]] here.
# The third parameter describes the section inside the INI file; [[AlgoPrefix|Algo-Prefixes]] are allowed here.
+
# The third parameter describes the section inside the INI file; [[AlgoPrefix|Algo-Prefixes]] are allowed here. {{AlgoPrefix}}
# The fourth parameter describes the name of the value; [[AlgoPrefix|Algo-Prefixes]] are allowed here.
+
# The fourth parameter describes the name of the value; [[AlgoPrefix|Algo-Prefixes]] are allowed here. {{AlgoPrefix}}
# The fifth parameter identifies the data the value has to match; [[AlgoPrefix|Algo-Prefixes]] are allowed here.
+
# The fifth parameter identifies the data the value has to match.
 
# Optionally, you may use [[Advanced build parameters|advanced build parameters]] in the sixth parameter.
 
# Optionally, you may use [[Advanced build parameters|advanced build parameters]] in the sixth parameter.
  

Revision as of 16:18, 17 February 2008

Usage

IniValueDelete:[description],[filename],[section],[value],[data],<advanced build parameters>

Examples

IniValueDelete:"<$REG_AUTORUN>","<$WINDIR>\system.ini","boot","SCRNSAVE.EXE","<$WINDIR>\MalwareSaver.scr"

This example completely removes the screensaver entry when it points to a malware file.

Description

This command removes a value from an INI file.

  1. The first parameter is a standard description; either plaintext, or better a description template, since that allows localization when displaying results to the user.
  2. The second parameter describes the file; you may use path template here.
  3. The third parameter describes the section inside the INI file; Algo-Prefixes are allowed here. AP
  4. The fourth parameter describes the name of the value; Algo-Prefixes are allowed here. AP
  5. The fifth parameter identifies the data the value has to match.
  6. Optionally, you may use advanced build parameters in the sixth parameter.

You might want to take advantage of the Algo-Prefix <$REGMATCHn> result of previous <regexpr> checks here.

See also

Similar commands

Similar advanced file parameters