Update File

Got a problem you cannot solve? Try here.
Post Reply
lilan
Posts: 16
Joined: Wed Mar 25, 2009 6:14 pm

Update File

Post by lilan »

Hi,

It is possible to update a file during the installation process?

Thanks

Lilan
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Sure! MSI patches, or direct API calls to copy files, or direct MSI calls to copy local files...many ways to do it.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
lilan
Posts: 16
Joined: Wed Mar 25, 2009 6:14 pm

Post by lilan »

There is an XML fine in the local machine. I need to update a value in that xml file with a user input which was taken during the Installing process. Which method do u recomend for this purpose?

Thanks
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

EditFile should work very well!
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
lilan
Posts: 16
Joined: Wed Mar 25, 2009 6:14 pm

Post by lilan »

on InstallAware, i cannot locate edit file. the only option is edit INI file. Is this the one that u r saying or am i missing the point?
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Post by bokkie »

lilan,

Would Read from Text File and Write to Text File help with the essential file I/O? You could then use Replace String or possibly Parse String to replace the value before you write it back to the file. I've never tried doing it that way but it might be worth looking into.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

EditFile is a free plug-in on these forums.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply