Property Based Filename - Advanced Installer Community
Alphamacaroon
Posts: 7
Joined: Tue Feb 27, 2007 11:12 am

Property Based Filename

I have a setup program where I'd like to change the name of a file installed during the setup process to the name of the installed product.

I've tried naming the file "[ProductName] File.txt" for example, but it gets copied literally as "[ProductName] File.txt" during the setup process and doesn't appear to replace the parameter with the proper name. Is this possible?

FYI, not sure if it makes a difference, but Im doing this in a Merge Module project.

-alpha
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I'm afraid this cannot be done. The "FileName" column in "File" table is not of "Formatted" type, therefore you can not include properties in the file name.

http://msdn2.microsoft.com/en-us/library/aa368596.aspx

Maybe this can be done with a custom action (rename the file) but this is not recommended because the renamed files will not be deleted on uninstall.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”