PDA

View Full Version : how to get one file from build before install sequence



tausifk
08-31-2005, 09:04 AM
Hi,

I am working on installshield 11, universal project. My requirement
is, I have to give an option to the user to modify/update the
config files before he select the install button. These config files
templates are there in my components->files (in build file). now
my problem is, how can i read the files which are not yet installed
on target system?

is there any way to extract/copy few desired files programatically
in pre-install sequence? if yes please tell me how to do it.. else can
u suggest me any other way?

thanks and regards
tausif

lspector
09-01-2005, 12:02 PM
2 options I've used are:
- Use ASCII File update to write the config file from scratch during the PreInstall sequence
or
- Wait until the PostInstall sequence to make changes to the installed files. You can still accept input prior to the install step, and reference it during PostInstall.

-Larry

Ofer Rivlin
09-01-2005, 01:57 PM
You could use the putResource method in the build function to add your file into the archive during build time and this will enable you to extract it from the setup archive during run time using the FileUtils class.

tausifk
09-01-2005, 11:29 PM
Thank you very much rivlin... :) thats what exactly i needed...
i will explore it next wk and will getback to you... hopefully
it should work

thank you both once again....