Forum Discussion
HKosova
Alumni
14 years agoHi Prakash,
You can do this, but not directly. To use a custom install location during silent installation, you'll need to modify the szDir parameter value in the Setup.iss file.
The Setup.iss file is an INI file, and the szDir parameter is specified in two places, like this:
In other words, for your scenario you can create a wrapper batch file or script that would perform the following sequence of actions:
- ask the user for the TestComplete/TestExecute install location,
- modify the szDir value in the Setup.iss file appropriately (for examples, search [url=
http://www.google.com/search?q=batch+modify+ini]batch modify ini[/url] or vbscript modify ini or similar),
- run the silent installation using the modified Setup.iss file.
Hope this helps!
You can do this, but not directly. To use a custom install location during silent installation, you'll need to modify the szDir parameter value in the Setup.iss file.
The Setup.iss file is an INI file, and the szDir parameter is specified in two places, like this:
[{CE870E82-8997-41ED-B082-160FA68989B2}-SdAskDestPath-0]
szDir=C:\Program Files\Automated QA\TestComplete 8
...
[{CE870E82-8997-41ED-B082-160FA68989B2}-SdComponentTree-0]
szDir=C:\Program Files\Automated QA\TestComplete 8\In other words, for your scenario you can create a wrapper batch file or script that would perform the following sequence of actions:
- ask the user for the TestComplete/TestExecute install location,
- modify the szDir value in the Setup.iss file appropriately (for examples, search [url=
http://www.google.com/search?q=batch+modify+ini]batch modify ini[/url] or vbscript modify ini or similar),
- run the silent installation using the modified Setup.iss file.
Hope this helps!