-
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:
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.