Page 1 of 1
External files
Posted: Wed Jan 18, 2006 9:36 pm
by shomw
I need to create an installation that will contain an editable text file in the same dir as the exe a wisescript will read this file and add reg key values based on what is in the file. this will allow the admin to edit and push down a different text file based on the group membership.
I just want to know if it is possible with InstallAware Studio to keep the text file external to the MSI so that it could be edited without needing to have the MSI recompiled.
Thank you
Shomw
Posted: Wed Jan 18, 2006 9:48 pm
by MichaelNesmith
Oh absolutely. The $SFXPATH$ pre-defined variable in the script is the folder that the setup will be contained in - so you could read from the text file using the form $SFXPATH$\\file.name...
$SFXPATH$
Posted: Thu Jan 19, 2006 10:17 am
by shomw
will I be able to have that file copied to the [INSTALLDIR] of the taget computer?
Shomw
Posted: Thu Jan 19, 2006 12:02 pm
by MichaelNesmith
Yes, of course.
Posted: Mon Jan 23, 2006 5:40 pm
by ken rentz
I'm currently evaluating the program, so forgive me if this is an obvious question, but what command does one use to copy a file like this? I've looked at the copy/move local file command, but it's documentation says it should not be used for installing new files onto a system.
Posted: Mon Jan 23, 2006 5:55 pm
by MichaelNesmith
Welcome, Ken!
You may use the Copy Local Files command. If you want the files you are copying to be removed during uninstall, also add a Delete Files command right after the Copy Local Files command, with the timing set to delete on uninstall.
Normally you should use Install Files to install files, but if you need to, you can take the above approach instead.