I need to install one of two files based on a property value. This would be trivial except that the installed file must have a specific name. To say this another way, the end result I need is for this specific file to be installed: [APPDIR]xyz.txt
The source file will either be abc.txt or def.txt depending on the property value.
I've tried two things:
1) Put two files named xyz.txt into [APPDIR] and make the two components conditional on the property value. Not surprisingly, AI won't let me put two files with the same name in [APPDIR].
2) Include abc.txt and def.txt as temporary files and use File Copy/Move. However, I can't figure out a way to make the Copy/Move operation conditional. I thought perhaps I could make installation of the temporary files conditional but a temp file doesn't appear to create a component so I can't make the component conditional. Plus I can't create two copy/move operations with the same name.
Any suggestions for copying or renaming one of two files based on a property value so that the result is a file called xyz.txt in [APPDIR]? BTW, I don't want to leave abc.txt and def.txt on the target system after the installation is complete.
Thanks...
FOLLOW US
Get the latest news in Application Packaging