In the package editor I can see all the Files. In the Custom Event -> On start (Virtualized) I added a new command: "c:\MySql\bin\mysql-nt --install mysql" (this will install mysql as a service)
The problem is that at start I get an error message: Could not execute (Error=87, MyPID=1940)
1. Do you have a Specific command in Startup, or do you have a Display menu? 2. If you have a Specific command in Startup, what is it? 3. Had you launched your package before adding your Custom event?
"1. Do you have a Specific command in Startup, or do you have a Display menu?"2. If you have a Specific command in Startup, what is it?
I deleted the Startup, so now it is empty.
3. Had you launched your package before adding your Custom event?
Without any Custom event it gives me Could not execute Error=2
It is interesting that my Mysql test consist of the MySql folder and a folder in which is a simple Exe file to display a mysql table in a grid (I created the Exe). In the folder created by Cameyo I can find the exe, but the Mysql folder doesn't contain every file I can see in the Package editor.
If it helps I can upload the files to Ftp to have a look, just tell me which files to copy (I am a beginner with Cameyo).
I found out that I cannot start anything within the virtualized box with Startup setting.
For example if I choose MySoft\Test\Test.exe , it will give error.
If I choose an external file (on the target computer) as c\totalCmd\TotalCmd.exe, it works.
I suppose the Cameyo puts a wrong path when I choose Test.exe, so instead of "MySoft\Test\Test.exe" it should be something else. I also tried to put "%CAMEYO_BASEDIRNAME%\MySoft\Test\Test.exe" but the result was the same.
And I have the MySql directory and the Virt.exe under the Files tab, and every file is set "Deployed: extracts immediately..."
I set the storage under the exe directory so as I can see that every file is deployed (and it is).
When running the virtualized program on the other computer the "Startup: C_\MySQL5\bin\mysqld-nt.exe" doesn't give error message (so I assume it starts without errors) however the custom event doesn't start. If it would start, clicking the Button1 would show some rows from the database in the grid
I uploaded the project under http://starsoft.hu/ideig/appname.6334.cameyo.exe
1. Try changing Startup Parameters from console to --console
2. Under Custom events, change underscore to colon, i.e. C_\StarSoft\Teszt\Virt.exe should be C:\StarSoft\Teszt\Virt.exe; don't forget to click Apply after making the change (you should see the underscore change on the left side before clicking OK)
1.After applying "hanging Startup Parameters from console to --console" I could see the console (image attached) but it is interesting that it says that ibdata1 doesn't exist because it is in the MySql\Data folder
2. I changed (under Custom events) C:\StarSoft\Teszt\Virt.exe; (although after saving it the semicolon disappeared) and the Virt.exe started. When pressing the Button1 I got an error message "table test.a doesn't exist" but I am sure this error is because of issue 1. (that the ibdata1 wasn't correctly found)
I realized that in mysql.ini the basedir is set to a certain directory. How can I deal with this using virtualization?
The "basedir" may vary depending where the user will copy my application...