Forum Discussion

prakash_vasudev's avatar
prakash_vasudev
Contributor
13 years ago

Does the Setup.iss file take environment variables

Hello,



I am trying to customize the silent installation of TestExecute. To do so I would want setup.iss file to accept dynamic values at runtime. To achieve this I assigned a environment variable to szDir, in place the hard-coded string. Now, after the change the szDir parameter looks like szDir=%TEInstallPath%. The environment variable TEInstallPath is given a value C:\Program Files\Automated QA\TestExecute 8.



With this change the silent installation is not happening. I am not sure if it is reading the value from the environment varible.



Please let me know if setup.iss file can include a environment variable?



Thanks in advance !!

1 Reply

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Prakash,


    I haven't heard about such an opportunity.


    I'm not sure, but I think, I saw one trick on the QA forums: try enclosing the name of the environment variable into curly brackets. That is, try using the following value for the szDir parameter:



    szDir={%TEInstallPath}


    If this approach doesn't help,4 I'm afraid that Setup.iss doesn't allow specifying environment variables within its text.


    I hope, this information helps :)