Hello, I'have Prism installation script based on variables like this: /run /wait msiexec.exe /i "%REPLICA_SOURCE%\%APPNAME%\Sources\msifile.msi" /q where %REPLICA_SOURCE% is resolved as a UNC path (“\\server\share”) and %APPNAME% is the name of application… All is working like a charm… Now I want to move the application folder to another server... I have to change the %REPLICA_SOURCE% variable… but I want to make this automatically... This is the challenge… First attempt: Trying to use %CD% %CD% is a batch variable that is normally resolved to the current folder in a batch file… But in prism script (.pts) this doesn’t work... Example after executing: /scriptver 5 /run /wait %comspec% /c echo “%CD%” > test.txt test.txt contain: "" Second attempt: Set an Environment variable dynamically I /run a simple application that write an user Environment variable like this (in c#) : Environment.SetEnvironmentVariable("PRISM_SHARE", Parentdir, EnvironmentVariableTarget.User); But pts script doesn’t see variable because is need to restart pts to take modification of environment variable. (I’ has tried to create variable in Process, user and machine… with all the same result) Third attempt: Get path from registry I /run a simple application that write in registry the Current path and I want to get it in .PTS: /SET REPLICA_SOURCE <Registry Value> "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\\TESTVAR" But this doesn’t work... Now I don’t have more idea to pass variable to .PTS Can you help me? Thanks a lot Sebastien |