Hello and welcome to Advanced Installer forums,
I'm afraid we don't have predefined support for this.
However, you can achieve this through your own custom action. For example, you can use the C++ approach to rename the related file; you can take a look on the
rename function.
Then you can go in the
“Custom Actions” page and add a predefined
Launch attached file custom action with sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.
Also, you can use a .bat file which will execute the
ren or rename command line. In order to launch your .bat file you can follow the steps which are described in the
launch a CMD or BAT file article.
In the
command line field of the
launch file custom action you can have something like:
"[APPDIR]myFile.txt" "[CUSTOM_NAME].txt" where:
- -[APPDIR]myFile.txt - the file which I want to rename
- [CUSTOM_NAME].txt - this is the value of the public property assigned to the edit field where the user can choose the custom name
This custom action should be added after the
Install Execution Stage >> Add Resources stage.
Please keep in mind that during an uninstall, Windows Installer removes only the data registered into the MSI file. All other data created by custom actions, by the installed application or by the user is not registered in the MSI, therefore it will not be removed.
Let us know if that helped, otherwise give us more details about your specific scenario.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging