View forum topic
List of forum topicsSubject: Wild cards in Directory Tree for installating files to a location.
Hi;
I need to be able to install files to a computer tree that has a random issued tree in the User Path from their installtion of their application.
This is something like C:\Users\*Random_Username*\AppData\Roaming\MetaQuotes\Terminal\*Random Directory*\Terminal\MQL4\Files Where I would need to place files in the Files directory.
All the directory tree information prior to \*Random_Username*\ and after, until Terminal \*Random Directory*\ and then again after, is always consistent. I just need to be able to use some type of wild card for the \*Random_Username*\ and subsequently the \*Random Directory*\ for the install of files into the Files path.
Does anyone know how to do this with CreatInstall?
Your help is greatly appreciated and thank you.
Kind regards,
Terry
#appdata# contains the current user name.
You can know *Random Directory* with Source code command but there is a problem when there are some folders in Terminal.
ffind fd
fd.init( macrox_do( "#appdata#\MetaQuotes\Terminal\*.*"), $FIND_DIR )
foreach finfo cur,fd
{
macrox_setstr("randomdir", cur.name)
}
I will send a message to you via email with attachments to help in understanding this better.
Thank you,
Terry
January 16, 2025 Installer CreateInstall 8.11.1 was released.
June 19, 2024 Installer CreateInstall 8.11.0 was released. read more
November 13, 2022 Installer CreateInstall 8.10.1 was released.
May 21, 2022 Installer CreateInstall 8.10.0 was released.
September 25, 2021 Installer CreateInstall 8.9.0 was released.
July 15, 2021 Installer CreateInstall 8.8.1 was released.