XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 3.0 branch
    • General
    • None
    • Windows

    Description

      I need to run a batch file with an argument before uninstalling. I am executing the batch file correctly but the arguments aren't passing. What I am currently doing is in the controlscript.qs is: 

       
      installer.execute(targetDirect + "/before_uninstall.bat", [installer.value("ProductVersion")]);   
       
      and in the batch file:
       
      set RELEASE_VERSION=$1
       
      I have the same logic in my installscript calling another script:
       
      component.addElevatedOperation("Execute", "@TargetDir@/after_install.bat", installer.value("ProductVersion"));
       
      And there it works well. What is happening? I have searched the documentation and I have also tried new Array(installer.value("ProductVersion")) but stilll doesn't work.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            installerteam Installer Team
            agarcia Alberto Garcia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes