Archive: Alter XML File inside a .rar file


Alter XML File inside a .rar file
Hi,

I am currently writing an installer and i have been asked if it would be possible to update xml files inside a .rar file. Does anyone know if this is possible?

Thanks in advance

Lee


that's a licensing issue you need to check on the rarlabs website, but it would work if the user has winrar installed. the alternative would be using a different archiver, such as 7z.


thanks for the reply...

I suppose the archiver doesnt really matter, once i have found a way to alter the file inside, which is my main problem then i will look into using a archiver that will be ok with it. Have you got any idea/samples or how i could acheive this?

Thanks

Lee


1) Decompress (ExecWait)
2) Modify (FileRead/Write or CopyFiles/Delete)
3) Compress (ExecWait)

Where's the problem?


i was trying to see if you could do it without having to decompress it as i am not sure what archiver the customer will have on there system.

thanks

Lee


it's not possible to do so without decompressing it, so if you want to alter it, you'd have to compress it again afterwards. to compress it, you must pay license fees and if you want this whole thing to be distributable, it should be expensive. however, it should be possible using the rar.dll/unrar.dll once the above is settled. you'd have to check their documentations to find an answer then.