Delete file

Feb 18, 2010 at 12:30 PM

is there such a functionality?

as an example, after installing i need to replace default.config file. but it gives error.

Feb 18, 2010 at 12:54 PM

Not built-in. Run a task (command) that does it.

Feb 18, 2010 at 12:57 PM

A copy file should do the job, post some details about the error.

Feb 18, 2010 at 1:57 PM


I dont have the error right now. i have changed the code , here is the output for future reference

<task success="True">
            <CmdLine>cmd.exe /c "del "C:\Program Files\Console.exe.config""</CmdLine>


here is the script

<tasks when="aftersuccessfulinstall">
                <task type="command" cmd="cmd.exe" cmdargs="/c &quot;del &quot;${folder.ProgramFiles}\Console.exe.config&quot;&quot;" />