Howzatt
asked on
XenApp 6.5 - I want to publish client Software that is launched from a vbs file, which opens a batch file.
I am trying to publish the HP Device Manager Client software via XenApp 6.5.
The client software is a Java application. To Launch it, the Console shortcut launches a VBS file. The VBS then fires up a Batch file, which then launches the Java App.
The shortcut launches the following vbs file:
VBS
set wbs = wscript.createobject("WScr ipt.shell" )
wbs.run("Console.bat"), 0, true
Which as you can see launches the bat file
Batch File
cd lib
"..\..\JVM\bin\java.exe" -Xms256m -Xmx1024m -Dfile.encoding=Cp1252 -classpath .\*;hpdm-console.jar com.hp.hpdm.console.main.C onsole
But when I try launch the App, I get the following.
The App is configured as follows:
Command Line:
c:\windows\system32\wscrip t.exe "\\(HOSTNAME)\d$\Program Files (x86)\Hewlett-Packard\HP Device Manager\Console\Console.vb s"
Working Directory:
c:\windows\system32\
The client software is a Java application. To Launch it, the Console shortcut launches a VBS file. The VBS then fires up a Batch file, which then launches the Java App.
The shortcut launches the following vbs file:
VBS
set wbs = wscript.createobject("WScr
wbs.run("Console.bat"), 0, true
Which as you can see launches the bat file
Batch File
cd lib
"..\..\JVM\bin\java.exe" -Xms256m -Xmx1024m -Dfile.encoding=Cp1252 -classpath .\*;hpdm-console.jar com.hp.hpdm.console.main.C
But when I try launch the App, I get the following.
The App is configured as follows:
Command Line:
c:\windows\system32\wscrip
Working Directory:
c:\windows\system32\
ASKER
its the server it's been published from. When you create the published app, you pick the path to the server its installed on (which is the command line above). Then next window after that is to select the servers it is going to be running off.
Yes that is correct. But you shouldn't input the path using the administrative share d$. You can also just target to the vbs file (without calling wscript.exe before)
Please try it this way:
Command Line:
"d:\Program Files (x86)\Hewlett-Packard\HP Device Manager\Console\Console.vb s"
(you can also try to run this command line from you citrix server just to check the path)
Please try it this way:
Command Line:
"d:\Program Files (x86)\Hewlett-Packard\HP Device Manager\Console\Console.vb
(you can also try to run this command line from you citrix server just to check the path)
ASKER
Tried that before. Same result.
If you run "d:\Program Files (x86)\Hewlett-Packard\HP Device Manager\Console\Console.vb s" on the server the command runs fine? Where is console.bat located?
ASKER
in the same folder
ASKER
and yes it runs fine
Change the vbs script to:
set wbs = wscript.createobject("WScr ipt.shell" )
wbs.run("d:\Program Files (x86)\Hewlett-Packard\HP Device Manager\Console.bat"), 0, true
Publish the app using the following command line:
"d:\Program Files (x86)\Hewlett-Packard\HP Device Manager\Console\Console.vb s"
set wbs = wscript.createobject("WScr
wbs.run("d:\Program Files (x86)\Hewlett-Packard\HP Device Manager\Console.bat"), 0, true
Publish the app using the following command line:
"d:\Program Files (x86)\Hewlett-Packard\HP Device Manager\Console\Console.vb
ASKER
If I try launch with the new script locally on the host server, it fails saying it can't find the file. I picked up that it's missing the last folder in the path (Console), but it still fails saying it cant find the file.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
that "hostname" is your citrix server from where you wan't the app to be published?