I am having a vexing problem with the startup file in Alpha Anywhere, Desktop version. I want to distribute an application with custom icons, title, and splash screen. My installer will allow a user to specify where he wants to install the application files, which is the problem. I can hard code the options in the startup file with the path to the icon and splash graphics, and that works just fine. Since my user will most likely have a different path, in that case it will not work. It seems that there is not a way to use Alpha functions in the startup, as I believe that the startup code runs during the initialization of the runtime, so Alpha functions and code are not available at that point.
For example:
This works:
-TITLE="RoadMAP CRM"
-SPLASH="C:\Users\mpeir\Documents\RoadMAP\Graphics\RoadMAP_Logo.bmp"
-ICON="C:\Users\mpeir\Documents\RoadMAP\Graphics\RoadMAP.ico"
-MAXIMIZE
But this does not:
-TITLE="RoadMAP CRM"
-SPLASH=A5.GET_PATH() + "\Graphics\RoadMAP_Logo.bmp"
-ICON="A5.GET_PATH() + "\Graphics\RoadMAP.ico"
-MAXIMIZE
If I have to, I can have the initial start of the application modify the startup file by using Alpha functions to get and write the correct path to the text file as needed. The only problem with that approach is that it still does not have the initial program run show the information that I want.
I also note that the Alpha Anywhere V12 developer actually names the startup file similar to "RoadMAP 0_RoadMAP CRM.startup", while it seems that the old naming of "startup.txt" still works.
Any thoughts on how to approach this?
Mack Peirson
RoadMAP CRM LLC
For example:
This works:
-TITLE="RoadMAP CRM"
-SPLASH="C:\Users\mpeir\Documents\RoadMAP\Graphics\RoadMAP_Logo.bmp"
-ICON="C:\Users\mpeir\Documents\RoadMAP\Graphics\RoadMAP.ico"
-MAXIMIZE
But this does not:
-TITLE="RoadMAP CRM"
-SPLASH=A5.GET_PATH() + "\Graphics\RoadMAP_Logo.bmp"
-ICON="A5.GET_PATH() + "\Graphics\RoadMAP.ico"
-MAXIMIZE
If I have to, I can have the initial start of the application modify the startup file by using Alpha functions to get and write the correct path to the text file as needed. The only problem with that approach is that it still does not have the initial program run show the information that I want.
I also note that the Alpha Anywhere V12 developer actually names the startup file similar to "RoadMAP 0_RoadMAP CRM.startup", while it seems that the old naming of "startup.txt" still works.
Any thoughts on how to approach this?
Mack Peirson
RoadMAP CRM LLC
Comment