PDA

View Full Version : Installing a file in a different name



bbarnea
08-25-2010, 01:29 AM
Hello again.

Is there a possibility when installing a file in "Install File..."
That the target name is different from the source name? (renaming the file)


Thanks,
Boaz.

linder
08-25-2010, 01:47 AM
Boaz,

No, this is not possible. What you can do is to use the "Copy File(s)..." function to "rename" the file after the install function.

Friedrich

linder
08-25-2010, 02:07 AM
BTW, here is a "dirty" workaround (see attached project).

The installer installs "new_name.txt", but the source file name is "orig_name.txt"

#copy file "[SB_PROJECT]\orig_name.txt" to "[SB_PROJECT]\new_name.txt"
Install File "[SB_PROJECT]\new_name.txt" to "%_SB_INSTALLDIR%\new_name.txt" (Always Install)
#delete file "[SB_PROJECT]\new_name.txt" [Post-compile]

Friedrich

bbarnea
08-25-2010, 02:12 AM
Thanks :)

linder
08-25-2010, 02:15 AM
:)

Friedrich