External files

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

External files

Postby shomw » Wed Jan 18, 2006 9:36 pm

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:

Postby MichaelNesmith » Wed Jan 18, 2006 9:48 pm

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

shomw
Posts: 17
Joined: Wed Jan 18, 2006 9:31 pm

$SFXPATH$

Postby shomw » Thu Jan 19, 2006 10:17 am

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:

Postby MichaelNesmith » Thu Jan 19, 2006 12:02 pm

Yes, of course.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

ken rentz
Posts: 71
Joined: Mon Jan 23, 2006 5:33 pm
Contact:

Postby ken rentz » Mon Jan 23, 2006 5:40 pm

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:

Postby MichaelNesmith » Mon Jan 23, 2006 5:55 pm

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

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 111 guests