External files

Got a problem you cannot solve? Try here.
Post Reply
shomw
Posts: 17
Joined: Wed Jan 18, 2006 9:31 pm

External files

Post 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
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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...
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
shomw
Posts: 17
Joined: Wed Jan 18, 2006 9:31 pm

$SFXPATH$

Post by shomw »

will I be able to have that file copied to the [INSTALLDIR] of the taget computer?

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

Post by MichaelNesmith »

Yes, of course.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
ken rentz
Posts: 71
Joined: Mon Jan 23, 2006 5:33 pm
Contact:

Post 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.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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.
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