I have something strange going on with an app running on OS X Yosemite. The desktop app is downloaded and run by a xojo console app that is started by a LaunchAgent.
When I build the desktop app, its App.MajorVersion, App.MinorVersion, and App.BugVersion are all giving expected values (in this case 1, 4, and 39). I then go through the following steps:
a. compress (zip) the app
b. encrypt the zipped file using command line openssl
c. upload the file to server
The LaunchAgent (running as root) then fires up the console app, which downloads the zipped, encrypted desktop app, and proceeds to decrypt and unzip it, then run it using the following command line:
shell.WriteLine "su - " + userName + " -c " + chr(34) + “/Library/Application\ Support/fvfde/InstallFVFDE.app/Contents/MacOS/InstallFVFDE” + chr(34)
The desktop app runs, but it shows App.MajorVersion, App.MinorVersion, and App.BugVersion as all being 0.
I am having a hard time coming up with ideas as to why this is happening. Anyone out there have any thoughts?
Thanks