Menu

Embed version ID

Wizard
2025-09-21
2025-10-04
  • Wizard

    Wizard - 2025-09-21

    Could you embed a version ID somewhere. Even if just declaring as a variable in the install.bat script would suffice. I'm trying to auto-convert all my imdisk installations with AIMtk. For imDisk I asked you before to embed a version ID which you did and it enabled me to write a "auto-update" script. Would like to do the same/re-use parts of that code for AIMtk after a one-time-only conversion... Thanx...

     
  • v77

    v77 - 2025-09-21

    There is no change with ImDisk Toolkit about that: the version is returned by config.exe with the switch /version in both the standard output and the exit code.

    However, calling install.bat with this switch does not work (there is another command after config.exe and it creates a new process of cmd).

    Not sure to understand what you need.

     
  • Wizard

    Wizard - 2025-10-02

    You put fileversion in ImDiskTk-x64.exe on my request in the past. I was using that to determine update-status through my scripts and auto-update if newer... Since AIMtk is just a zip/7z I can't do that 'trick' anymore... Don't know if, perhaps, you could add the fileversion to the zip/7z ?

     
  • v77

    v77 - 2025-10-03

    Not sure to find something really helpful...
    Could you please show me your update script?

     
  • Wizard

    Wizard - 2025-10-04

    It would suffice if you add a DOS-variable like set version=2025.08.18.0 to the install.bat. I can simply extract that and use it as the versionnumber... Or better, but don't know if possible, add file-version to the .cab ?

     
  • v77

    v77 - 2025-10-04

    Why not use the folder name inside the ZIP file?
    But yes, I can also add the version in install.bat.
    Please try the file below. If you use "install.bat /version", it will return the version in both the standard output and in the %ERRORLEVEL% variable. Is that fine for you?

     
  • Wizard

    Wizard - 2025-10-04

    To be honest with ya, I didn't think about it/notice it (Foldername). That's already good enough... No need to have a switch from running install.bat as I'm not running that anyways. I was asking to just have a set version=20250818 in it (or even a rem 20250818 or something like that would suffice, so my script would just read install.bat and interprete that, but then, indeed, I might aswell just read the foldername for that... Thanks for pointing that out...

     

Log in to post a comment.