msiexec installation keeps running into a "A required privilege is not held by the client." error - batch-file

I am working on a software add-on batch script install, the main program installs without an issue, however the add-on potion of the installation keeps running into a "A required privilege is not held by the client." error.
I have tried running the batch script from my regular user account and also from my separate admin account, no difference. There is no such error when doing an installation with the msi file manually.
An insert from my script:
set base_path=%~dp0
start /wait msiexec /i "%base_path%\PDF995AddIn2Setup.msi" InstallDir="%SystemDrive%\pdf995\PDF995AddIn2" /qb /L*V! "C:\PDF995_and_AddIn.log"
I have already tried numerous things to try and fix this error code to no avail.
Running the batch script through an Administrator Command Prompt: same error
Reformatting the msiexec command line and trying different file paths / options: same error
Changing User Account Control (UAC) settings: same error
Modifying/Adding Registry Keys: same error
What I found in the log file:
MSI (s) (BC:E4) [10:32:45:926]: Note: 1: 2205 2: 3: MsiPatchCertificate
MSI (s) (BC:E4) [10:32:45:927]: LUA patching is disabled: missing MsiPatchCertificate table
MSI (s) (BC:E4) [10:32:45:928]: Resolving source.
MSI (s) (BC:E4) [10:32:45:929]: Resolving source to launched-from source.
MSI (s) (BC:E4) [10:32:45:930]: Setting launched-from source as last-used.
MSI (s) (BC:E4) [10:32:45:931]: PROPERTY CHANGE: Adding SourceDir property. Its value is '\Install\Standard_Apps\all\PDF995\PDF995\'.
MSI (s) (BC:E4) [10:32:45:932]: PROPERTY CHANGE: Adding SOURCEDIR property. Its value is '\Install\Standard_Apps\all\PDF995\PDF995\'.
MSI (s) (BC:E4) [10:32:45:933]: PROPERTY CHANGE: Adding SourcedirProduct property. Its value is '{A34C938B-756F-498B-AE52-517C66ED300F}'.
MSI (s) (BC:E4) [10:32:45:934]: SOURCEDIR ==> \Install\Standard_Apps\all\PDF995\PDF995\
MSI (s) (BC:E4) [10:32:45:935]: SOURCEDIR product ==> {A34C938B-756F-498B-AE52-517C66ED300F}
MSI (s) (BC:E4) [10:32:48:044]: Note: 1: 1314 2: \Install\Standard_Apps\all\PDF995\PDF995\
MSI (s) (BC:E4) [10:32:48:045]: SECREPAIR: Error in CreatePath
MSI (s) (BC:E4) [10:32:48:046]: SECUREREPAIR: SecureRepair Failed. Error code: 522FE515FB8
MSI (c) (54:98) [10:32:48:054]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
Error 1314. A required privilege is not held by the client.
MSI (s) (BC:E4) [10:42:51:580]: Note: 1: 2262 2: Error 3: -2147287038
MSI (s) (BC:E4) [10:42:51:581]: Product: PDF995AddIn2 -- Error 1314. A required privilege is not held by the client.

Related

Trouble with WinSCP & SISS. Execute Process Task Error

I am having difficultly with grabbing data from our WinSCP site through our SSIS software. Below is the Process I currently have
Executable: C:\Program Files (x86)\WinSCP\WinSCP.exe Arguments /script=E:\SSIS\Union Street\SFTP.txt WorkingDirectory E:\SSIS\Union Street\Union Street V2
Below is the error script I receive
SSIS package "E:\SSIS\Union Street\Union Street V2\Union Street V2\Package.dtsx" starting.
Error: 0xC0029151 at Execute Process Task, Execute Process Task: In Executing "C:\Program Files (x86)\WinSCP\WinSCP.exe" "/script=E:\SSIS\Union Street\SFTP.txt" at "E:\SSIS\Union Street\Union Street V2", The process exit code was "1" while the expected was "0".
Task failed: Execute Process Task
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "E:\SSIS\Union Street\Union Street V2\Union Street V2\Package.dtsx" finished: Failure.
Any help would be grateful

error MSB3073: The command "staticdv.exe /devenv /check" exited with code -1

I have a NDIS 6 filter driver. It is a packet capture driver based on the official ndislwf example. The whole project is open sourced on this GitHub repo. npf.sln can be opened via Visual Studio 2015.
My problem is the Static Driver Verifier (SDV) doesn't work on my project. When I clicked Driver -> Launch Static Driver Verifier... on Visual Studio 2015, it popped up the SDV GUI, then I clicked Clean and Start. After a while (3-5 minutes), a window popped up saying SDV encountered an error of unknown origin.. And the Alerts tab of the SDV UI said:
J:\npcap\packetWin7\npf\npf>cd /d "J:\npcap\packetWin7\npf\npf" && msbuild "npf.vcxproj" /t:sdv /p:inputs="/devenv /check" /p:configuration="Win7 Release SDV" /p:platform="x64"
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 7/25/2016 12:42:39 PM.
Project "J:\npcap\packetWin7\npf\npf\npf.vcxproj" on node 1 (sdv target(s)).
sdv:
staticdv.exe /devenv /check
---------------------------------------------------------------------
Microsoft (R) Windows (R) Static Driver Verifier Version 4.0.505.8
Copyright (C) Microsoft Corporation. All rights reserved.
---------------------------------------------------------------------
SDV is building for <Win7 Release SDV|x64>
Build 'npf' ... Done
Scan 'npf' ... Done
No reuse data to copy from previous SDV run.
The finalization step failed for 'npf' .
C:\Program Files (x86)\Windows Kits\10\build\windowsdriver.Sdv.targets(65,9): error MSB3073: The command "staticdv.exe /devenv /check" exited with code -1. [J:\npcap\packetWin7\npf\npf\npf.vcxproj]
Done Building Project "J:\npcap\packetWin7\npf\npf\npf.vcxproj" (sdv target(s)) -- FAILED.
Build FAILED.
"J:\npcap\packetWin7\npf\npf\npf.vcxproj" (sdv target) (1) ->
(sdv target) ->
C:\Program Files (x86)\Windows Kits\10\build\windowsdriver.Sdv.targets(65,9): error MSB3073: The command "staticdv.exe /devenv /check" exited with code -1. [J:\npcap\packetWin7\npf\npf\npf.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:01:30.61
Then I looked at the StaticDVTrace.log log. It said as below:
Information:Calling DriverCleanup.
Information:Creating a new SDV object.
Information:Loading cache data.
Information:Calling cleanup routine.
Information:Creating a new SDV object.
Information:SetBase this.DdkPath=C:\Program Files (x86)\Windows Kits\10\
Information:SetBase this.Path=J:\npcap\packetWin7\npf\npf
Information:SetBase creating the DriverCollection via constructor.
Information:Driver Constructor:Calling RuleCollection constructor with rule list and rule path
Information:SetBase this.Environment=WDK
Information:SetBase Calling InitBaseEnvironment.
Information:Check that we have driver folder.
Information:Calling build to get cl and link flags.
Information:GenerateBuildLogNewCall build.exe.
Information:GenerateBuildLogNewCall to build.exe worked.
Information:Build 'npf' ... Done
Information:Found Sdv links file and attempting to serialize the data into our object model.
Information:Found Sdv source file and attempting to serialize the data into our object model.
Information:Found cflags in Sdv source file.
Information:Slam model equals
Information:Slam rules equals
Information:Slam Data equals
Information:Calling OpenNewConfiguration
Information:SetBase this.DdkPath=C:\Program Files (x86)\Windows Kits\10\
Information:SetBase this.Path=J:\npcap\packetWin7\npf\npf
Information:SetBase Opening All.sdv to load active rule list.
Information:OpenMsft Opening All.sdv from:C:\Program Files (x86)\Windows Kits\10\TOOLS\SDV\data\ndis\All.sdv
Information:OpenMsft Reading :C:\Program Files (x86)\Windows Kits\10\TOOLS\SDV\data\ndis\All.sdv
Information:OpenMsft Adding :DDIUSAGE.SDV.fsm to the list of rules.
Information:OpenMsft Adding :IRQL.SDV.fsm to the list of rules.
Information:OpenMsft Adding :IRQL_SHARED.SDV.fsm to the list of rules.
Information:OpenMsft Adding :LOCKING.SDV.fsm to the list of rules.
Information:OpenMsft Adding :MEMORYUSAGE.SDV.fsm to the list of rules.
Information:OpenMsft Adding :MISCELLANEOUS.SDV.fsm to the list of rules.
Information:OpenMsft Adding :OIDPROCESSING.SDV.fsm to the list of rules.
Information:OpenMsft Adding :WARNING.SDV.fsm to the list of rules.
Information:OpenMsft Adding :.fsm to the list of rules.
Information:SetBase Calling driver constructor.
Information:RuleCollection Constructor:Calling Rule Constructor.
Information:RuleCollection Constructor:add rule object to collection.
...
Information:RuleCollection Constructor:Calling Rule Constructor.
Information:RuleCollection Constructor:add rule object to collection.
Information:SetBase this.Environment=WDK
Information:SetBase Calling InitBaseEnvironment.
Information:this.NumberOfChecks=0100
Information:this.NumberOfNotStarted=100
Information:Opening sdv-default.xml from:C:\Program Files (x86)\Windows Kits\10\TOOLS\SDV\data\ndis
Information:SdvScan:Local sdv-default.xml found.
Information:Calling build to get cl and link flags.
Information:Loading library data from cache at:C:\Program Files (x86)\Windows Kits\10\
Information:Loading build data.
Information:Counting the LOC in the driver.
Information:Loading WDM entry points from :C:\Program Files (x86)\Windows Kits\10\TOOLS\SDV\data\ndis\DdkEntryPoints.xml
Information:Calling CheckScan to validate we have a valid SDV-map.h file.
Information:CheckScan:Generating SDV-map.h file via call to SdvMap.
Information:SdvMap:Iterate over each driver in the collection.
Information:BuildLib:Create sdv folder.
Information:BuildLib:Create sdv\scan folder.
7/25/2016 11:00:08 PM:The SDV-map.h file at: J:\npcap\packetWin7\npf\npf.
Information:The SDV-map.h file at:J:\npcap\packetWin7\npf\npf does not have the "Approved" flag set to "true."
Information:Scan 'npf' ... Done
Information:CheckScan:Calling LoadSdvMap.
Information:Check if debug flags are set.
Information:Start sdv scan step via call to SdvScan.
Information:SdvScan:Calling SetupSdvScanFolders
Information:SdvScan:Checking if we have a local version of sdv-default.xml
Information:BuildLib:Create sdv folder.
Information:BuildLib:Create sdv\scan folder.
Information:Copying old reuse data for this run...J:\npcap\packetWin7\npf\npf
Information:No reuse data to copy from previous SDV run.
Information:Calling the SdvCheck stage.
Information:SdvCheck:Calling CleanupCflags.
Information:SdvCheck:Calling SetupSdvCheckFolders.
Information:SdvCheck:Calling RuleSpec.
Information:RuleSpec:.
Information:RuleSpec:Calling CompileStage for
Information:RuleSpec:Calling CompileStage for pre_isminiport.fsm
7/25/2016 11:00:16 PM:The SDV compile step failed.
I can't tell anything from the error message. Can anybody help me? Thanks!
You need to approve the sdv-map.h file. Open the sdv-map.h file that SDV generated in your source directory, verify that everything looks correct, then change //Approved=false to //Approved=true.

Having trouble running installing an MSI file using the batch command

I have created the following batch file based on the recommendation Stein Åsmul.
Here's the link: Batch script to install MSI
When I run the batch file the program the .msi file does not install and instead .msi file gets deleted from within the folder.
A copy of my batch file code, pretty simple:
echo.
Echo Installing EZL Consumer IDM 3.12.0036 now.
msiexec.exe/i c:\InstallationFiles\EZL\EZL3.12.0036InstallPrePackaged\
EasyLenderConsumerIDM3.12.0036Update3.msi
/QN /L*V "C:\Temp\msilog.log
echo Installation complete.
attached copy of msilog.log
=== Verbose logging started: 12/01/2014 9:33:23 Build type: SHIP UNICODE 5.00.7601.00
Calling process: C:\Windows\SysWOW64\msiexec.exe ===
MSI (c) (DC:80) [09:33:23:232]: Resetting cached policy values
MSI (c) (DC:80) [09:33:23:232]: Machine policy value 'Debug' is 0
MSI (c) (DC:80) [09:33:23:232]: ******* RunEngine:
******* Product:
c:\InstallationFiles\EZL\EZL3.12.0036InstallPrePackaged\EasyLenderConsumerIDM3.12.0036Update3.msi
******* Action:
******* CommandLine: **********
MSI (c) (DC:80) [09:33:23:233]: Client-side and UI is none or basic: Running entire install on
the server.
MSI (c) (DC:80) [09:33:23:233]: Grabbed execution mutex.
MSI **strong text**(c) (DC:80) [09:33:23:366]: Cloaking enabled.
MSI (c) (DC:80) [09:33:23:366]: Attempting to enable all disabled privileges before calling
Install on Server
MSI (c) (DC:80) [09:33:23:394]: Incrementing counter to disable shutdown. Counter after
increment: 0
MSI (s) (8C:CC) [09:33:23:402]: Running installation inside multi-package transaction
c:\InstallationFiles\EZL\EZL3.12.0036InstallPrePackaged\EasyLenderConsumerIDM3.12.0036Update3.msi
MSI (s) (8C:CC) [09:33:23:402]: Grabbed execution mutex.
MSI (s) (8C:F4) [09:33:23:404]: Resetting cached policy values
MSI (s) (8C:F4) [09:33:23:404]: Machine policy value 'Debug' is 0
MSI (s) (8C:F4) [09:33:23:404]: ******* RunEngine:
******* Product:
c:\InstallationFiles\EZL\EZL3.12.0036InstallPrePackaged\EasyLenderConsumerIDM3.12.0036Update3.msi
******* Action:
******* CommandLine: **********
MSI (s) (8C:F4) [09:33:23:405]: Note: 1: 2203 2:
c:\InstallationFiles\EZL\EZL3.12.0036InstallPrePackaged\
EasyLenderConsumerIDM3.12.0036Update3.msi
3: -2147287037
MSI (s) (8C:F4) [09:33:23:405]: MainEngineThread is returning 3
MSI (s) (8C:CC) [09:33:23:406]: User policy value 'DisableRollback' is 0
MSI (s) (8C:CC) [09:33:23:406]: Machine policy value 'DisableRollback' is 0
MSI (s) (8C:CC) [09:33:23:406]: Incrementing counter to disable shutdown. Counter after
increment: 0
MSI (s) (8C:CC) [09:33:23:406]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (8C:CC) [09:33:23:406]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (8C:CC) [09:33:23:407]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2
MSI (s) (8C:CC) [09:33:23:407]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2
MSI (s) (8C:CC) [09:33:23:407]: Decrementing counter to disable shutdown. If counter >= 0,
shutdown will be denied. Counter after decrement: -1
MSI (s) (8C:CC) [09:33:23:407]: Restoring environment variables
MSI (c) (DC:80) [09:33:23:408]: Decrementing counter to disable shutdown. If counter >= 0,
shutdown will be denied. Counter after decrement: -1
MSI (c) (DC:80) [09:33:23:409]: MainEngineThread is returning 3
=== Verbose logging stopped: 12/01/2014 9:33:23
C:\Users\User>net helpmsg 3
The system cannot find the path specified.
or
-2147287037 = 80030003
8003 is structured storage
0x80030003 STG_E_PATHNOTFOUND The path %1 could not be found.

Creating setup for SQL Server 2008 Express with WIX

The command below runs successfully on the command line but when I put it to Wix Bootstrapper project it gives me an error.
The code that I run on command line is
setup.exe /ACTION=INSTALL /Q /ISSVCPASSWORD="password6161*"
/RSSVCPASSWORD="password6161*" /SAPWD="password6161*"
/INSTANCENAME="aaa5554" /SECURITYMODE="SQL"
/ConfigurationFile=ConfigurationFile.INI
The code that I write into the Wix
<Chain DisableSystemRestore="yes">
<PackageGroupRef Id="SqlServerExpress"/>
</Chain>
<?define InstanceName = "HyperionSSSS321312" ?>
<PackageGroup Id="SqlServerExpress">
<ExePackage Id="Sql2008Express"
DisplayName="SQL Server 2008 Express"
Cache="no"
Compressed="no"
PerMachine="no"
Permanent="no"
Vital="yes"
Name="Package\SqlServer\setup.exe"
SourceFile="Package\SqlServer\setup.exe"
InstallCommand="/ACTION=INSTALL /Q /ISSVCPASSWORD=test* /RSSVCPASSWORD=test* /SAPWD=test* /INSTANCENAME=$(var.InstanceName) /INSTANCEID=$(var.InstanceName) /SECURITYMODE=SQL /ConfigurationFile=ConfigurationFile.INI"
UninstallCommand="/Action=Uninstall /INSTANCENAME=$(var.InstanceName) /FEATURES=SQL /Q /HIDECONSOLE">
<ExitCode Value ="3010" Behavior="forceReboot" />
</ExePackage>
</PackageGroup>
When I run the setup file that Wix produced for me it fails
The log is below
1AC:32FC][2014-05-23T17:48:29]w321: Skipping dependency registration on package with no dependency providers: Sql2008Express
[11AC:32FC][2014-05-23T17:48:29]i000: Setting string variable 'WixBundleLog_Sql2008Express' to value 'C:\Users\BARIS~1.VEL\AppData\Local\Temp\SetupBoot_20140523174827_0_Sql2008Express.log'
[11AC:32FC][2014-05-23T17:48:29]i000: Setting string variable 'WixBundleRollbackLog_Sql2008Express' to value 'C:\Users\BARIS~1.VEL\AppData\Local\Temp\SetupBoot_20140523174827_0_Sql2008Express_rollback.log'
[11AC:32FC][2014-05-23T17:48:29]i201: Planned package: Sql2008Express, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: Yes, dependency: None
[11AC:32FC][2014-05-23T17:48:29]i207: Planned related bundle: {c1dddf1e-71bd-4847-b7c6-161cb0096f1a}, type: Upgrade, default requested: None, ba requested: None, execute: None, rollback: None, dependency: None
[11AC:32FC][2014-05-23T17:48:29]i299: Plan complete, result: 0x0
[11AC:32FC][2014-05-23T17:48:29]i300: Apply begin
[11AC:32FC][2014-05-23T17:48:29]i000: Caching bundle from: 'C:\Users\BARIS~1.VEL\AppData\Local\Temp\{19453c37-f078-45d3-939a-92a23e74184d}\.be\SetupBoot.exe' to: 'C:\Users\baris.velioglu\AppData\Local\Package Cache\{19453c37-f078-45d3-939a-92a23e74184d}\SetupBoot.exe'
[11AC:32FC][2014-05-23T17:48:29]i320: Registering bundle dependency provider: {19453c37-f078-45d3-939a-92a23e74184d}, version: 1.0.0.0
[11AC:1390][2014-05-23T17:48:29]i338: Acquiring package: Sql2008Express, payload: Sql2008Express, copy from: D:\EAE_Automation\EAE_Automation\EAE_Automation\SetupBoot\bin\Debug\Package\SqlServer\setup.exe
[11AC:1390][2014-05-23T17:48:29]i000: Setting string variable 'WixBundleLastUsedSource' to value 'D:\EAE_Automation\EAE_Automation\EAE_Automation\SetupBoot\bin\Debug\'
[11AC:1390][2014-05-23T17:48:29]i305: Verified acquired payload: Sql2008Express at path: C:\Users\baris.velioglu\AppData\Local\Package Cache\.unverified\Sql2008Express, moving to: C:\Users\baris.velioglu\AppData\Local\Package Cache\7E1E6EE9199D5AFD8117B8385E59B8EAAE724D2C\Package\SqlServer\setup.exe.
[11AC:32FC][2014-05-23T17:48:29]i301: Applying execute package: Sql2008Express, action: Install, path: C:\Users\baris.velioglu\AppData\Local\Package Cache\7E1E6EE9199D5AFD8117B8385E59B8EAAE724D2C\Package\SqlServer\setup.exe, arguments: '"C:\Users\baris.velioglu\AppData\Local\Package Cache\7E1E6EE9199D5AFD8117B8385E59B8EAAE724D2C\Package\SqlServer\setup.exe" /ACTION=INSTALL /Q /ISSVCPASSWORD=enerji2014* /RSSVCPASSWORD=enerji2014* /SAPWD=enerji2014* /INSTANCENAME=HyperionSSSS321312 /INSTANCEID=HyperionSSSS321312 /SECURITYMODE=SQL /ConfigurationFile=ConfigurationFile.INI'
[11AC:32FC][2014-05-23T17:48:29]e000: Error 0x84c4000e: Process returned error: 0x84c4000e
[11AC:32FC][2014-05-23T17:48:29]e000: Error 0x84c4000e: Failed to configure per-user EXE package.
[11AC:32FC][2014-05-23T17:48:29]i319: Applied execute package: Sql2008Express, result: 0x84c4000e, restart: None
[11AC:32FC][2014-05-23T17:48:29]e000: Error 0x84c4000e: Failed to execute EXE package.
[11AC:32FC][2014-05-23T17:48:29]i351: Removing cached package: Sql2008Express, from path: C:\Users\baris.velioglu\AppData\Local\Package Cache\7E1E6EE9199D5AFD8117B8385E59B8EAAE724D2C\
[11AC:32FC][2014-05-23T17:48:29]i330: Removed bundle dependency provider: {19453c37-f078-45d3-939a-92a23e74184d}
[11AC:32FC][2014-05-23T17:48:29]i352: Removing cached bundle: {19453c37-f078-45d3-939a-92a23e74184d}, from path: C:\Users\baris.velioglu\AppData\Local\Package Cache\{19453c37-f078-45d3-939a-92a23e74184d}\
[11AC:32FC][2014-05-23T17:48:29]i399: Apply complete, result: 0x84c4000e, restart: None, ba requested restart: No

Pass Value/Variable to Dtsx /SET \Package.Variables[User::NameVariable];"value" ERROR

I want pass a value to ssis package, but i have an error back
I execute with batch, the command
dtexec /F "c:\MyPackage.dtsx" /SET \Package.Variables[User::Valore].Properties[Value];2
This is the error (warning) :
C:>dtexec /F "c:\AnagraficaTOC.dtsx" /SET \Package.Variables[User::Valore].Prop
erties[Value];2
Microsoft (R) SQL Server Execute Package Utility
Version 10.50.2500.0 for 64-bit
Copyright (C) Microsoft Corporation 2010. All rights reserved.
Started: 11:30:10
Warning: 2011-11-12 11:30:10.95
Code: 0x80012017
Source: AnagraficaTOC
Description: The package path referenced an object that cannot be found: "\Pa
ckage.Variables[User::Valore].Properties[Value]". This occurs when an attempt is
made to resolve a package path to an object that cannot be found.
End Warning
DTExec: Could not set \Package.Variables[User::Valore].Properties[Value] value t
o 2.
Started: 11:30:10
Finished: 11:30:10
Elapsed: 0.203 seconds
What does this mean? The syntax looks right to me, I checked on many sites, what is wrong?
Thanks to all!
Your syntax looks correct assuming your variable is exactly named Valore and lives at the package level scope.
Variables are case sensitive so if it's named valore, VAlore, etc, it will not match.
Variables can be created at any level in the program so scope does matter. Locate the variable Valore and verify it's scope is at the package level (the Scope will match the Package.Name property). This is an example of how to reference a variable declared inside a Data Flow Task which is nested inside a Sequence Container.
\Package\Sequence Container\Data Flow Task.Variables[User::something].Properties[Value]
I put together a simple package and called it using your input. It worked fine
C:\src\SSISHackAndSlash\SSISHackAndSlash>dtexec /F ".\AnagraficaTOC.dtsx" /SET \Package.Variables[User::Valore].Properties[Value];2
Microsoft (R) SQL Server Execute Package Utility
Version 10.50.2500.0 for 64-bit
Copyright (C) Microsoft Corporation 2010. All rights reserved.
Started: 8:05:45 AM
Warning: 2011-11-12 08:05:45.93
Code: 0x00000000
Source: Script Task value check
Description: Valore : 2
End Warning
DTExec: The package execution returned DTSER_SUCCESS (0).
Started: 8:05:45 AM
Finished: 8:05:45 AM
Elapsed: 0.328 seconds
I also tested with the above command line from inside a batch file and it too worked as expected.
Finally, it seems you've scrubbed your input for us
"dtexec /F "c:\MyPackage.dtsx" /SET \Package.Variables[User::Valore].Properties[Value];2"
vs
dtexec /F "c:\AnagraficaTOC.dtsx" /SET \Package.Variables[User::Valore].Prop erties[Value];2
Despite the space in Properties in the second example, I assume that is related to copying values as the error message has a correct path. The first one has quotes in the wrong places (at least when I run it as provided I receive error - cannot find the path specified) Could the issue be that you're looking at an older version of the package (or you have multiple copies of it)?
had the same problem, was resolved by changing the namespace from config to user in the ssis variables pane

Resources