sql server - NSIS not resolving magic variables in the proper way? -
I try to install MS SQL 2008 R2 with NSIS so that I use this code snippet:
SetOutPath "$ temp \ unit \ DimIns \ binary \ SQLSVR" file / r ".. \ .. \ shared-binary \ download.unit.hu \ MsSQLServer2008R2 \ SQLSVR-86 \" SetOutPath " $ temp \ unit \ DimIns \ "ExecDos :: executive" $ OutDir \ binary \ SQLSVR \ setup.exe / quiet / IACCEPTSQLSERVERLICENSETERMS /ConfigurationFile=$OUTDIR\binary\SQLSVR\dimsqlsetup.ini / action = install "" "" $ OutDir \ MsSQLServer2008R2.log "
but it failed Programming will. And it outputs to this error message:
The following error occurred: The action type 'ExecuteWorkflowAction' is not valid for the workflow identification element, only valid action types are ExecuteWorkflowAction. Error result: -2068709375 Results feature code: 1202 result error code: 1 Review summary.txt log for more information. The following error occurred: The methodology 'ExecuteWorkflowAction' is not valid for the workflow element element only ExecuteWorkflowAction is the valid action type. Error result: -2068709375 results feature code: 1202 result error code: 1 review summary.txt log for more information Microsoft (R) SQL Server 2008 R2 setup 10.50.4000.00 Copyright (C) Microsoft Corporation. All rights reserved.
But if I explicitly gives the path
ExecDos :: exec "C: \ Users \ UNIT-TEST \ AppData \ Local \ Temp \ Unit \ DimIns \ binary \ SQLSVR \ setup.exe / quiet / IACCEPTSQLSERVERLICENSETERMS /ConfigurationFile=C:\Users\UNIT-TEST\AppData\Local\Temp\Unit\DimIns\binary\SQLSVR\dimsqlsetup.ini / action = install " "" "C: \ User \ Unit-Test \ AppData \ Local \ Temp \ Unit \ DimIns \ MsSQLServer2008R2.log"
or run it from CMD
< code> C: \ Users \ Unit-Test \ AppData \ Local \ temp \ unit \ DimIns \ binary \ SQLSVR \ setup.exe / quiet / IACCEPTSQLSERVERLICENSETERMS / ConfigurationFile = C: \ Users \ Yoon Install post-test \ AppData \ Local \ Temp \ unit \ DimIns \ binary \ SQLSVR Install \ dimsqlsetup.ini / ACTION =
Then the installer correctly MS SQL. So I can not imagine that $ TEMP
or $ OUTDIR
has been solved by the NSIS poorly, is it possible or where is the problem?
If I type the contents of $ TEMP
or $ OUTDIR
as the console log, then it seems that they store the correct path.
I do not like the syntax of your command Use this syntax: make sure all the parameters and paths Corrected treatment:
nsExec :: ExecToStack [OPTIONS] "PATH" param1 param2 paramN '
.
< P> Probably there is space in your path which is causing a problem.
Comments
Post a Comment