Kaju self-updater talk (v.2.x)

  1. ‹ Older
  2. 3 months ago

    A bit off here, but any reason why I would get the "This OS is not supported (missing required tools) message?" randomly?

    I had this working fine last week, with no issues at all... now, I get this message quite often.. not all the time, but it is enough to tell me Ive messed something up somewhere.

    If I go into the OSisSupported and delete this:

    #elseif TargetWindows then
      
      dim sh as new Shell
      sh.Execute "XCOPY /?"
      r = sh.ErrorCode = 0
      
    #else // Linux
      
      dim cmds() as string = array( "rsync --version", "/usr/bin/logger --version" )
      
      dim sh as new shell
      for each cmd as string in cmds
        sh.Execute cmd
        if sh.ErrorCode <> 0 then
          r = false
          exit
        end if
      next

    Then everything works great again.

    This is on a window machine, building for windows only

  3. Kem T

    Jul 16 Pre-Release Testers, Xojo Pro, XDC Speakers New York

    Deleting that code is not the answer because, if XCOPY is truly missing, the whole process will fail without warning. Instead, log the error code and result so we can get to the bottom of it.

    My guess is that it's a timing issue. I'll add a timeout, some logging, and perhaps a loop so it can try more than once.

  4. Tim P

    Jul 16 Pre-Release Testers feedback://46303,51561

    I mean, removing code from the function OSisSupported seems like such a good idea.

  5. Kem T

    Jul 16 Pre-Release Testers, Xojo Pro, XDC Speakers New York

    Be nice, Tim. :)

  6. Kem T

    Jul 16 Pre-Release Testers, Xojo Pro, XDC Speakers New York

    @kyle h I've pushed those changes out to the develop branch, please let me know what you find.

  7. Thanks, that worked.

    One last issue, how do I go about debugging the update?

    I can successfully download the file and when I go to install it, I end up with an error saying the "MyApp.exe" cannot be found. Even tho that was the file I used to originally get the update with.

    The log file is littered with stuff like:
    "...not found as file, trying as directory"
    "...NOT FOUND!"

    etc

    The MyApp.exe WAS there, but it gets deleted once the updater begins to work. All the names are the same. I did compile v1 and places the files on the desktop.

    MyApp (folder)

    • MyApp Libs
    • MyApp Resources
    • MyApp.exe

    The v2 directory structure is the same, including names.

    Any Idea?

  8. Kem T

    Jul 23 Pre-Release Testers, Xojo Pro, XDC Speakers New York

    Post the whole log please.

  9. Trying... not working.
    I'll try splitting it up

    part 1: ======================

    "STARTED ON 2018-07-23 13:11:58"
    "Copying items to backup C:\Users\kyle\Desktop\MyAppToolKit\MyAppToolKit.exe-20180723131158"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\Appearance Pak.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\Browser Plugin.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\cef.pak"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\cefsubproc.exe"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\cef_100_percent.pak"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\cef_200_percent.pak"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\cef_extensions.pak"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\chrome.pak"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\Crypto.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\d3dcompiler_43.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\d3dcompiler_47.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\devtools_resources.pak"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\icudt.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\icudtl.dat"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\Internet Encodings.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\libcef.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\libEGL.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\libGLESv2.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\locales"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\msvcp140.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\natives_blob.bin"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\RegEx.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\Shell.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\snapshot_blob.bin"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\SSLSocket.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\vccorlib140.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\vcruntime140.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\widevinecdmadapter.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Looking for item C:\Users\kyle\Desktop\MyAppToolKit\XojoGUIFramework32.dll"
    "...not found as file, trying as directory"
    "...NOT FOUND!"
    "Moving the executable MyAppToolKit.exe to backup"
    1 file(s) moved.
    "...confirmed"
    "All items moved to backup"

  10. Part 2 =====================

    "Copying files from C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs to folder C:\Users\kyle\Desktop\MyAppToolKit"
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\Appearance Pak.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\Browser Plugin.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\cef.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\cefsubproc.exe
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\cef_100_percent.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\cef_200_percent.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\cef_extensions.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\chrome.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\Crypto.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\d3dcompiler_43.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\d3dcompiler_47.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\devtools_resources.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\icudt.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\icudtl.dat
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\Internet Encodings.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\libcef.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\libEGL.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\libGLESv2.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\msvcp140.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\natives_blob.bin
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\RegEx.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\Shell.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\snapshot_blob.bin
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\SSLSocket.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\vccorlib140.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\vcruntime140.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\widevinecdmadapter.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\XojoGUIFramework32.dll
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\am.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\ar.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\bg.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\bn.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\ca.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\cs.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\da.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\de.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\el.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\en-GB.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\en-US.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\es-419.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\es.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\et.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\fa.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\fi.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\fil.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\fr.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\gu.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\he.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\hi.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\hr.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\hu.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\id.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\it.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\ja.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\kn.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\ko.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\lt.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\lv.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\ml.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\mr.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\ms.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\nb.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\nl.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\pl.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\pt-BR.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\pt-PT.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\ro.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\ru.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\sk.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\sl.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\sr.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\sv.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\sw.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\ta.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\te.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\th.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\tr.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\uk.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\vi.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\zh-CN.pak
    C:\Users\kyle\Desktop\MyAppToolKit\MyApp Tool Kit- decompressed\MyAppToolKit Libs\locales\zh-TW.pak
    81 File(s) copied
    "...confirmed"
    "Removing backup"
    "Removing decompressed folder"
    "Launching new app"
    "Removing temp folder"

  11. Kem T

    Jul 23 Pre-Release Testers, Xojo Pro, XDC Speakers New York

    When you compressed the updated app, did you compress the contents of the folder or the parent folder? It has to be latter.

    MyApp
      MyApp.exe
      MyApp Resources
      etc.

    In that example, you'd compress MyApp, not the contents of MyApp.

  12. OK I think I got it. My last test worked.

    Now, just to verify... the RSA key should never change, no matter the version? is this correct? OR do I need to add in a new RSA for every incremental version beyond the original. (as long as I use the same admin file for future versions)

    so,
    V1.0.0 = original RSA
    v1.2.0 = new RSA

    or

    V1.0.0 = original RSA
    v1.2.0 = original RSA

  13. Kem T

    Jul 23 Pre-Release Testers, Xojo Pro, XDC Speakers New York

    The RSA public/private key combo is unique to each Kaju admin file and will remain the same for the life of that file. Refer to the project README on how to handle that file and when to start a new one.

  14. Thanks

  15. Edited 3 months ago

    I just tested the the updates on 2 other windows machines, and upon hitting "check for update" the entire app simply closes. Where would one find a log file to begin trouble shooting this? Works fine on the dev machine tho.

    thanks

    EDIT:
    Its working now. I think google drive's "zipping" technique busted it. I zipped it meself and uploaded it. Works as intended.

  16. 5 weeks ago
    Edited 5 weeks ago

    Hello!

    i just got your testUpdate-App running., but ...

    it says "update available", downloads and installs but when i want to try it a second time it says "aborted no write permission"

    What am i doing wrong?

    if i copy the updated app to another location then there is a error "RSA Signature could not be verified"...

  17. sorry my mistake, i didn't realised that the public rsa key is unique for each kaju project, it's working now!!

or Sign Up to reply!