|
OneTimeCodeNewBuild is an extension template for the frame that runs once on a new install or on an updated version of the program. Uses Ini Manager (ABC only) and has an embed point for code to run once. Has a checkbox if you want to reset all the window sizes and positions stored in the Ini file. (If you redesigned the screens.) It is activated by manually incrementing or changing a version value. The version value is stored in the App Ini file under ('RWSZ','RWSZFlag'). It works in conjunction with the ResetWindows Code Template which can be put under a button and will reset the windows at runtime at an application restart.
Simply change the value stored in Version or Build to trigger the one time event on the first time the application is run, on install, or on an update to the application. You can go directly to the embed point to enter code to execute. This code can be changed on each release if needed. The checkbox will loop thru and reset all the stored sizes of windows in the ini file if you have redesigned the screens.
It stores the version or build value in the ini file, so deleting the file or changing the value of ('RWSZ','RWSZFlag') will also cause the code to fire.
|