You can add a "Run executable or batch file" action to the "Installation" screen of your installer with the following properties:
"Executable" property: ${installer:sys.system32Dir}icacls.exe
"Arguments" property (one argument per line):
${installer:sys.installationDir}
${installer:sys.installationDir}
/remove
"Wait for termination" property: Selected
"Redirect stdout" property: To log file
"Redirect stderr" property: To log file
"Condition expression" property: Util.isWindows()
NT AuthorityAuthenticated Users
/t
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…