Hi,
I'm sure I've posted about this or seen another topic but can't find it. I've just got my auto updater working silently in the background but when the update runs i get the following behaviours:
1) I collect tag values, system type and system location. These are set at the time of installation and written out to a config file. When the updater runs without any human interaction this config file is overwritten so i end up with
Type = "Select One"
location = "Select One"
How can i retain the original values during the update?
2) as part of the installation, i provide a resolvable machine name (in my test environment this is called "apache"), the installer builds a url from this which becomes http://apache/config.conf - During the update because i do not specify this path again the installer variable becomes blank giving me the url "http://config.conf". This causes the installer to fail during the update.
For now, i can hard code this as a default value which would work for testing, however in production this value could be different depending on the client and hard coding a defaut value could result in the same failure if this default doesn't match the one we provided.
How can i stop the updater from trying to download the config file again during install?
Ideally when this installs, i don't want any user interaction so the values need to remain as they were during installation. How can i achieve this?
Bonus points)
I have an optional field, called "MULTI_SITE_LOCATION" - This is used when we isntall our application on systems/services that are spread across multiple sites.
Currently i write my tag values to a file using the "edit text file update" - How can i work this so that the "MULTI_SITE_LOCATION" tag and value is only written when they have been entered?
I need to avoid sending any unwanted tags to my database due to data cardinallity.
Can any one offer some advice? I can amost taste victory!