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
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
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
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
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)