guidway
Posts: 11
Joined: Fri Nov 02, 2007 4:03 am

passing in SourceDir to a batch script in prerequisites

I have a prerequisite that is installed via a batch script. I would like to pass a command line argument to the batch script containing the directory where my package is being installed from (the batch file looks for other files so it needs to know where setup.msi is running from). I've tried adding a command line parameter of [SourceDir] for the batch script but it does not appear to get validated in this window (it passes SourceDir to my batch file, not the resolved path). I'm assuming that AI properties are not available inside the prerequisites tab, but wanted to see if that was true.

Is there anyway I can get this information to pass to my batch script?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm afraid that this cannot be done because the installer properties are not available in the bootstrapper.

Can you please give me more details about what you need to do? Why are you using a BAT file? Perhaps there is a workaround.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
guidway
Posts: 11
Joined: Fri Nov 02, 2007 4:03 am

Hi Cosmin,

Thanks for the reply. The batch file is a 3rd party script that runs a particular setup application and then registers it with a license. Without the batch script the software won't work.

I'm going to contact the vendor of the software and see if they have any plans to remove the batch script from their software setup process (or if nothing else, it they will allow me to write my own launcher for their application setup).

Thanks for answering the question so quickly. Great product and your tech support is one of the best I've seen. :)

guid

Return to “Common Problems”