Installing file with different name

Got a problem you cannot solve? Try here.
matthewj
Posts: 66
Joined: Tue Dec 07, 2004 12:48 pm

Installing file with different name

Postby matthewj » Wed Jan 19, 2005 9:24 am

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

sinan
Site Admin
Posts: 1020
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Thu Jan 20, 2005 10:32 am

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. :)


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 58 guests