Reply to Thread

Post a reply to the thread: Install file with different name

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 06-21-2012, 09:40 AM
    Chris

    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.
  • 11-10-2010, 04:30 AM
    tonisa

    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
  • 11-10-2010, 03:39 AM
    linder

    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
  • 11-10-2010, 02:35 AM
    tonisa

    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

Posting Permissions

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