Trouble with OSD Scripting - APPV newbie
Hi,
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>
<CLIENTVERSION VERSION="4.6.0.0"/>
<SCRIPT TIMING="PRE" EVENT="LAUNCH" WAIT="TRUE" PROTECT="TRUE">
<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>
</SCRIPT>
</DEPENDENCY>
Look forward to any replies,Thanks,Mark
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>
<CLIENTVERSION VERSION="4.6.0.0"/>
<SCRIPT TIMING="PRE" EVENT="LAUNCH" WAIT="TRUE" PROTECT="TRUE">
<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>
</SCRIPT>
</DEPENDENCY>
Look forward to any replies,Thanks,Mark
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
Shepsy
11 years ago
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
</SCRIPTBODY>
Posted by:
DannyC
12 years ago
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.
Danny
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.
Danny
Posted by:
mark_holland21
12 years ago
Posted by:
vkleiner
12 years ago
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)
/vkleinerde
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)
/vkleinerde
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.