+ Reply to Thread
Results 1 to 4 of 4

Thread: Install file with different name

  1. #1

    Default Install file with different name

    Hi,
    is it possible to install a file changing its name on the destination folder, for example the files
    c:\myapp1\myexe.exe -> %_SB_INSTALLDIR%\App1.exe
    c:\myapp2\myexe.exe -> %_SB_INSTALLDIR%\App2.exe
    best regards
    Toni

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Install file with different name

    Hi Toni,

    No, this is not possible. What you can do is the following (a #rename compiler directive before you add the file):

    #rename file "c:\myapp1\myexe.exe" to "c:\myapp1\App1.exe"
    Install File "c:\myapp1\App1.exe" to "%_SB_INSTALLDIR%\App1.exe" (Always Install)
    #rename file "c:\myapp2\myexe.exe" to "c:\myapp2\App2.exe"
    Install File "c:\myapp2\App2.exe" to "%_SB_INSTALLDIR%\App2.exe" (Always Install)

    Friedrich

  3. #3

    Default Re: Install file with different name

    Hi Friedrich,
    thanks for your prompt response. Your tipp should work. Could be, in future versions you will include such a feature (DestinationFileName).
    best regards.
    Toni

  4. #4

    Default Re: Install file with different name

    A bit late, but I would also like this feature. eg Install MyFile.exe to %folder%\NewMyFile.exe

    It is because I have a system setup whereby new versions are compiled to a distribution folder, and then the several SetUp Programs use that single source file and rename it as they install it for different purposes. Obviously I can work around this now by creating copies of the source file and renaming them each time before compiling the Setups.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •