/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (4)

Posted by: Shepsy 11 years ago
White Belt
0

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
Orange Belt
0
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
Posted by: mark_holland21 12 years ago
Fourth Degree Green Belt
0
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!
Posted by: vkleiner 12 years ago
Orange Senior Belt
0
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ