Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Alter XML File inside a .rar file (http://forums.winamp.com/showthread.php?t=279798)

thedaddy110 23rd October 2007 14:31

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

Yathosho 23rd October 2007 16:30

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.

thedaddy110 24th October 2007 10:26

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

pospec 24th October 2007 11:59

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

Where's the problem?

thedaddy110 24th October 2007 13:18

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

Yathosho 24th October 2007 22:14

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.


All times are GMT. The time now is 05:16.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.