vrijdag 16 januari 2015

Thinapp - Application crashes after launch, added Workingdirectory= to package.ini

I had to Thinapp an simple application. I just had to copy the application executable and a couple of configuration files to the "c:\program files\MyApplicationDirectory"  folder.
The application could be started by double clicking the executable. I captured these steps, and build the Thinapp.

Next step, start the thinapp and inform the user that the application was ready for use. Done? Wrong!

The application crashed as soon as the thinapp was started.

I opened the cmd.exe entrypoint browsed to the application directory, run the executable and it worked!? So what this application was missing was an working directory setting. I edited the package.ini by adding the WorkingDirectory= line:

[MyApplication.exe]
Source=%ProgramFilesDir%\MyApplicationDirectory\MyApplication.exe
WorkingDirectory=%ProgramFilesDir%\MyApplicationDirectory


And it worked!

Geen opmerkingen:

Een reactie posten