rbell@maxrecall.com
Posts: 6
Joined: Mon Dec 09, 2013 7:20 pm

How to get file name of installer

My root requirement is that I need a per site parameter to be supplied to the installer, which is to be downloaded from a per site web site. I can't require the user to do or know much more than click on the download and then run the installer. In other words, they don't know this parameter to supply.

The short response has been to include a second file that is also downloaded, run the installer which will look into the AI_SETUPEXEPATH to get the properties (or file) from the second file.

It seems I can get to one file if I can just rename the installer file to the parameter I need per site. Then the user can download just the installer file, which can then look up its own name and use that as a property. Is this possible and if so, how?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to get file name of installer

Hi,

I'm afraid I don't fully understand your scenario. Can you give us more details about your scenario (maybe exemplify)?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rbell@maxrecall.com
Posts: 6
Joined: Mon Dec 09, 2013 7:20 pm

Re: How to get file name of installer

I'll try to simplify. I have two clients. One needs the installer to have the parameter "Jack" and the other needs the installer to have the parameter "Bob". The client is only smart enough to down load and execute the installer (ie. not smart enough to remember or enter a parameter, not smart enough to download a zip file, unzip etc).

What I can do is for each client's internal web site is to rename the installation package from "SetUp.exe" to "Jack.exe" and "Bob.exe" respectively. Then each client only needs to download the "Jack.exe", it will check its name and use that as a parameter in the installation process.

I have also looked into having the client download a second config file, but I can't get the "SetUp.exe" to know what directory it is running from so that it can get that file. I am using [AI_SETUPEXEPATH],[SourceDir] and [SETUPEXEDIR], but those are the temp directory created to export the "MSI" file to before it is executed.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to get file name of installer

Hi,
I have also looked into having the client download a second config file, but I can't get the "SetUp.exe" to know what directory it is running from so that it can get that file. I am using [AI_SETUPEXEPATH],[SourceDir] and [SETUPEXEDIR], but those are the temp directory created to export the "MSI" file to before it is executed.
I'm not sure why you encounter this behavior, but the [SETUPEXEDIR] property should keep exactly the folder where the "SetUp.exe" file is located. Can you please send us a verbose log of the installation so we can investigate it?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”