Page 1 of 1

Installing file with different name

Posted: Wed Jan 19, 2005 9:24 am
by matthewj
Is it possible to install a file with a different name? I have an installer that is used to create three different versions of the same app. Basically, the full app and two levels of demo. I'm using conditional compilation to set the appropriate Install files line, but I would rather have the main exe called the same on the destination PC. So on my development PC, I have MyApp.exe, MyAppDemo1.exe and MyAppDemo2.exe, and I want whichever is selected in the conditional compile to end up as MyApp.exe on the target.

Is this possible at all? I tried setting the name of the file, but then discovered that's the path, not the filename! I can hack this by renaming them all in FinalBuilder, but I'd rather do it in InstallAware if possible.

Thoughts?

Matthew

Posted: Thu Jan 20, 2005 10:32 am
by sinan
This is sadly one thing you cannot do via the Install Files command :(. However after Apply Install executes (and succeeds) a simple call to the CopyFile/MoveFile API (via the Call DLL Function plug-in) should alleviate the issue. :)