Link to home
Start Free TrialLog in
Avatar of Howzatt
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("WScript.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.Console

But when I try launch the App, I get the following.
User generated image
The App is configured as follows:

Command Line:
c:\windows\system32\wscript.exe "\\(HOSTNAME)\d$\Program Files (x86)\Hewlett-Packard\HP Device Manager\Console\Console.vbs"

Working Directory:
c:\windows\system32\
Avatar of Pedro Gama
Pedro Gama
Flag of Portugal image

Hello,

that "hostname" is your citrix server from where you wan't the app to be published?
Avatar of Howzatt
Howzatt

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.vbs"

(you can also try to run this command line from you citrix server just to check the path)
Avatar of Howzatt

ASKER

Tried that before. Same result.
If you run "d:\Program Files (x86)\Hewlett-Packard\HP Device Manager\Console\Console.vbs" on the server the command runs fine? Where is console.bat located?
Avatar of Howzatt

ASKER

in the same folder
Avatar of Howzatt

ASKER

and yes it runs fine
Change the vbs script to:

set wbs = wscript.createobject("WScript.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.vbs"
Avatar of Howzatt

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
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial