VMware Horizon Community
bobbovine
Contributor
Contributor

App works from debug entry point, but not primary entry point....

Here's an odd one. I have an app that works fine from the cmd.exe debug entry point but throws an error if I try launching it from it's primary entry point.

If I go in via cmd.exe, change directory to the app and run the main executable it comes up just fine. If I launch the primary entry point, which references the exact same executable I get this:

RelaunchUsingCreateProcess::CreateProcess failed "C:\Program Files\NSWCCD\ASSET530\bin\assetwui.exe"

Here's the primary entry point config from the package.ini:

http://ASSET 5.3.0.exe

Source=%Drive_C%\Program Files\NSWCCD\ASSET530\bin\assetwui.exe

Shortcut=ASSET_5.3.0.dat

Icon=%Drive_C%\Program Files\NSWCCD\ASSET530\bin\assetwui.exe

ObjectTypes=Asset.Executive

Shortcuts=%Programs%\ASSET

Pretty standard, I've done a lot weirder stuff than that without any issues. I had to use the =%Drive_C%\Program Files trick because the app explitly references c:\program files and I need this to work on a 64-bit machine.

Reply
0 Kudos
1 Reply
Squidly_Man
VMware Employee
VMware Employee

Your Entry Point source is listed as...

Source=%Drive_C%\Program Files\NSWCCD\ASSET530\bin\assetwui.exe

Try changing this to...

Source=%ProgramFilesDir%\NSWCCD\ASSET530\bin\assetwui.exe

Also, try adding both a Working Directory and Command Line options. On the

CommandLine=

option, you can wrap it in quotes (maybe the program needs that) and add your necessary command line switches to the end (see my "{your switches here}"

Example:
Source=%ProgramFilesDir%\NSWCCD\ASSET530\bin\assetwui.exe
CommandLine="%ProgramFilesDir%\NSWCCD\ASSET530\bin\assetwui.exe" {your switches here}
WorkingDirectory=%ProgramFilesDir%\NSWCCD\ASSET530\bin






-Dean F.

http://pubs.vmware.com/thinapp4/help

-Dean F. https://www.vmware.com/support/pubs/identitymanager-pubs.html
Reply
0 Kudos