Forum Discussion

prakash_vasudev's avatar
prakash_vasudev
Contributor
14 years ago

Customizing silent installation for TestExecute

Hello,



I was looking at options of making my silent installation customized. What I meant by customizing silent installation is, we should be able to provide the install location via command line. As per the silent installation documentation what I found in "Installing TestComplete in Silent Mode <http://smartbear.com/support/viewarticle/12396/>" section, it tells about recording a reponse file and using the same for silent installation. This becomes kind of hardcoded which runs similar way on all the systems.



I wanted to know is there a way for user who wants to perform a silent installation be able to provide the install location via command line? so that it would be considered while running the exe in silent mode.



Thanks,

Prakash

1 Reply

  • Hi 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:

    [{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!