I found the source code for the AutomaticUpdater control on the web site and found the answers to my questions by browsing through the code.
Thomas
Hi there,
I'm trying out wyBuild for an application of ours.
The difficulties I face is the application lives on a Windows Embedded platform protected by a File Based Write Filter (FBWF). The problem is not getting wyUpdate to run on the embedded platform. The problem is the FBWF.A File Based Write Filter prevent writing files to flash/disk when protected - except for files and folders added to an exclusion list in the filter. If a file is written/changed in a protected area the file will be written to memory and only exist until the next restart.
Im not expecting wyUpdate to handle the FBWF during the update. The goal Im aiming at is to use the AutomaticUpdaterBackend to check and download the update files and save them to a known temporary folder excluded from the filter. Script my way out of handling the filter and installing the update when Windows is starting.
I cannot use the BeforeInstalling event to remove the protection of the application. I need to squeeze in a restart of the system to make any changed to the FBWF take effect.
The problem Im facing is to prevent the AutomaticUpdaterBackend from installing the update. I can set the UpdateType to CheckAndDownload and not call InstallNow method but it will only postpone the installation to the next start of the application. Setting Cancel = true in BeforeInstalling event arguments doesnt seem to prevent the installation either.
Is there a way to prevent wyUpdate from installing the update until I want it too?
If its possible - the next question is can I set the location where the update files are downloaded? Then I could check the location for a wyserver.wys file in my script and call wyUpdate with the offline switch -server="file:///C:/path/to/wyserver.wys".
Best regards and thanks you for helping
Thomas
I found the source code for the AutomaticUpdater control on the web site and found the answers to my questions by browsing through the code.
Thomas
I found the source code for the AutomaticUpdater control on the web site and found the answers to my questions by browsing through the code.
I thougth I had the answers but I'm not sure if I can rely on the wyserver.wys file to be in %HOMEPATH%\wc\6 folder as it is on my laptop.
Can I control this path in any way?
Thomas
The only way to do what you want to do is to modify the wyUpdate source code. Change it so after it downloads, extracts, and patches your files it leaves it in the temporary folder to be done with however you'd like.
Does that make sense?