Hey Guys -
I'm trying to build an installer using Advanced Installer 31.1 which will do something a bit unique. I have about 8 different "properties" files which are site-specific. During installation, only one needs to be copied from a currently unique filename into a pre-existing local folder with the target filename of "client.properties." I've already deployed a script which based on the system's OU has created a registry string in a common place on all workstations whose value is the PC's site name. How can I build an installer that will look at this registry key and if it matches 1 of ~8 values copy a specific file plsu rename it to client.properties (overwriting an existing one?)
Example / Explanation
Below are a few of the source files I have:
- "ILE Client Properties CBO.PROPERTIES"
- "ILE Client Properties QMC.PROPERTIES"
- "ILE Client Properties QRW.PROPERTIES"
etc…
1. During installation, the installer should look in the key HKLM\Software\Company for the string "Site" which will equal something like "Site1", "Site2", "Site3"...
2. If the string's value is "Site1", it should copy "ILE Client Properties CBO.PROPERTIES" into the local folder "C:\Application\Files" as (or renamed afterwards) client.properties - overwriting the existing file. If the string's value is "Site2", it should use the source file "ILE Client Properties QMC.PROPERTIES" and so on.
I found the below post which mentioned a registry search, but didn't follow and couldn't find out how to do it as well as copy the file with the renaming part.
http://www.advancedinstaller.com/forums ... php?t=1113
Any suggestions? Thanks!
FOLLOW US
Get the latest news in Application Packaging