I'm new to AppV and I've sequenced an application which has a config file within it. This config file determines which server the application will talk to. So depending on your location you will need a different config file. I have sequenced the application so that there is only one config file within the sequence. I am then using OSD scripting to overwrite the file in the Bubble pre-paunch with the relevant file and therefore run the application with a different config file. However, the script doesn't seem to be running and the application is launching with the config file within the sequence. Could someone tell me how best to troubleshoot this or why my script would not be running? It's not running on desktop but it's running in a Terminal Server environment....
My script is as follows - <DEPENDENCY>
<SCRIPTBODY>if exist "\\\\location\\data\\Apps\\AppV\\TestApp74.053\\Loc\\file.exe.config" copy "\\\\location\\data\\Apps\\AppV\\TestApp74.053\\Loc\\file.exe.config" "Y:\\TestApp74.053\\TestApp\\FileArea\\" </SCRIPTBODY>

Look forward to any replies,Thanks,Mark
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


Hi Mark,

Do you know if the script actually runs (in which case it's the version of the file being used which is the problem) or whether the script itself is failing? Perhaps try replacing your script with a command prompt and running the file copy command yourself - this MAY give you a clue as to what is happening. It may also be worth checking whether the original file is being set per-user and is being persisted in the users' PKG file; try deleting that file before launching the app.

Answered 01/10/2012 by: DannyC
Orange Belt

Please log in to comment
Looks like it's a software restriction policy that's not allowing users to run a .bat file. Will have to find another way of doing it!
Answered 01/10/2012 by: mark_holland21
Fourth Degree Green Belt

Please log in to comment
Hi Mark,

add another command with /n PAUSE to see the CMD output.
Think about the PROTECT="TRUE" or "FALSE" Parameter - it depends where is the scource and where´s the target. (inside/outside the Bubble)

Answered 01/10/2012 by: vkleiner
Orange Senior Belt

Please log in to comment

Hi mark

Is it possible to do mutiple scripts with the "if exists"/"if not exist"

for example

   <SCRIPTBODY>if not exist "C:\\Support\\AppVKit\\Offvirt.msi" COPY "\\\\dmbcbcsvr1\\Software\\AppV_46SP1\\AppVKit" "C:\\Support\\AppVKit" start /wait msiexec /i "C:\\Support\\AppVKit\\Offvirt.msi" /L*V "C:\\Support\\AppVKit\\LOG.LOG" PROPLUS=1 PROJECTPRO=1 PIDKEYS=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx VISIOPREM=1 PIDKEYS=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx USEROPERATIONS=1

Answered 02/20/2013 by: Shepsy
White Belt

Please log in to comment