Delete file

Feb 18, 2010 at 11:30 AM

is there such a functionality?

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

Coordinator
Feb 18, 2010 at 11:54 AM

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

Coordinator
Feb 18, 2010 at 11:57 AM

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

Feb 18, 2010 at 12:57 PM

Hi,

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>
            <Name>cmd.exe</Name>
            <LastError>
            </LastError>
          </task>

 

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;" />
            </tasks>