Archi Forum

Archi => Archi Development => Topic started by: mwillemse on August 18, 2014, 16:21:25 PM

Title: launcher.openFile functionality in zip installation
Post by: mwillemse on August 18, 2014, 16:21:25 PM
Hello. The ReadMe.txt file suggests to change the name of the executable from Archi32.exe to Archi.exe. Without this change the launcher.openFile function does not work anymore.
I managed to achieve the same result by adding the following lines in Archi32.ini after openFile :
-name
Archi

Title: Re: launcher.openFile functionality in zip installation
Post by: Phil Beauvoir on August 18, 2014, 16:43:32 PM
Hi, and welcome to the forum - you are the first registered user  8)

I tested it all and it all works OK?

Did you also rename Archi32.ini to Archi.ini?
Title: Re: launcher.openFile functionality in zip installation
Post by: mwillemse on August 19, 2014, 12:35:16 PM
Hello.
No I did not rename it: to avoid the need to rename both exe and ini files i had to add the two lines in the ini file.

In the eclipse launcher, ini file and exe file need to have the same name; appName and name parameter need to match too; the name parameter, if not specified in the command line or ini file, is taken from the exe name (first letter to uppercase, extension is trunkated).

My post was a suggestion, to add the -name parameter in the two distributed ini files, rather than document in ReadMe.txt that the two files have to be renamed. (it took me some time to understand why it was not working  :D )
Title: Re: launcher.openFile functionality in zip installation
Post by: Phil Beauvoir on August 19, 2014, 13:07:11 PM
Yes, thanks for the suggestion. As you say, all names need to match between these files:

Archi.exe
Archi.ini

and this line in the RegisterFileAssociation.bat file:

set APP_PATH=%~dp0Archi.exe
Title: Re: launcher.openFile functionality in zip installation
Post by: Phil Beauvoir on September 21, 2014, 11:46:25 AM
Regarding your suggestion of adding these lines to Archi32.ini:

-name
Archi

These lines do indeed need to be added if you edit the following line in the RegisterFileAssociation.bat file to "Archi32.exe":

set APP_PATH=%~dp0Archi32.exe

If you rename Archi32.exe to Archi.exe and Archi32.ini to Archi.ini then you don't need to do that. I thought it would be easier for users to rename the two files, rather than edit the RegisterFileAssociation.bat file.
Title: Re: launcher.openFile functionality in zip installation
Post by: Phil Beauvoir on September 21, 2014, 17:50:08 PM
In the next version I will include these files:

RegisterFileAssociation32-bit.bat
RegisterFileAssociation64-bit.bat

And the Archi32.ini and Archi64.ini files will contain:

-name
Archi

So no renaming is necessary. The user simply registers either the 32-bit or 64-bit batch file and thereafter runs the required exe file, Archi32.exe or Archi64.exe