Page 1 of 1
Update File
Posted: Tue Apr 14, 2009 7:24 pm
by lilan
Hi,
It is possible to update a file during the installation process?
Thanks
Lilan
Posted: Tue Apr 14, 2009 8:49 pm
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.
Posted: Tue Apr 14, 2009 9:06 pm
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
Posted: Tue Apr 14, 2009 9:54 pm
by MichaelNesmith
EditFile should work very well!
Posted: Tue Apr 14, 2009 10:33 pm
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?
Posted: Wed Apr 15, 2009 2:16 am
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.
Posted: Wed Apr 15, 2009 8:03 am
by MichaelNesmith
EditFile is a free plug-in on these forums.