XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 3.0 branch
    • Fix Version/s: None
    • Component/s: General
    • Labels:
      None
    • Platform/s:
      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

            • Assignee:
              installerteam Installer Team
              Reporter:
              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