Hi again,
I'm running into an issue where the persistent properties i set during installation don't seem to be used/passed to the updater.exe file when I run it.
I have it configured as a scheduled task with two actions, the first is a configuration update. It uses powershell to grab the config location from the registry and then builds a URL to the remote server, then downloads the config files. The second action runs an updater.exe file to check for any recent update to my application.
When i run this task from the task scheduler, it goes and grabs the configs but the updater.exe doesn't run. The windows event viewer says the update.exe file executed successfully but looking in the logs on the server where the update is installed the request for my update.conf is never received. I can run this task multiple times, and the configs are dwnloaded but never the update.
If i run the exectuable manually from the installation directory, it reaches the server and downloads the update. The problem is when it does this, it fails. I've checked in event viewer and it is failing when trying to download a config file.
this is failing because the URL set during installation is blank during the update. I get a url of http://config.conf (it should be http://servername/config.conf)
Because this URL is set during installation as a persistent property I'm expecting the update to use the value in the registry. It seems it does not and the update fails.
I've created a persistent property with a blank value, using the comments instead. I think this is how I create a persistent value. When the initial installation completes the values are written to the registry.
It's as though the update is removing the registry entries during installation, causing the installation to fail ..
Can anyone help? I can forward my project file if that helps, I'm not the best at explaining msyelf sometimes.