• Is it possible to modify a file that has been incorporated into a starp

    From The Rickster@21:1/5 to All on Sat Jun 24 11:30:43 2023
    ActiveState devkit was used to build the executable.
    The file was a simple windows .txt file that contains license info.
    Subsequent to building the exe, the physical file was deleted. The file, not located in the VFS of the exe could be referenced using fileutil cat and the contents read,
    fileutil writeFile was used to determine it was 'writeable', and the file was changed with the fileutil writeFile command, The file was read again and the new contents returned.
    However, it does not seem the changes persist subsequent to exiting the app (ending execution).
    Granted, this could be one of the dumbest questions ever asked.
    Alternatively, is is possible in any way to have an embedded app modify the exe in which it resides?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Robert Heller@21:1/5 to The Rickster on Sat Jun 24 20:49:59 2023
    The Starpack FS is (effectively) a RO fs. I don't know if the VFS code returns an error if writing is attempted or if the writing is dropped on the floor. It might actually be a RW file system, but only to memory and not to the "backing store" (the .exe file). Note: executable files are inheirently read-only (when executed), so it probably makes no sense to file a "bug report" about this.
    If you need updatable persistance storage you will have to create and manage a file on the end-users disk (eg whatever passes for a $HOME/.file under MS-Windows).

    At Sat, 24 Jun 2023 11:30:43 -0700 (PDT) The Rickster <sled99dog@gmail.com> wrote:


    ActiveState devkit was used to build the executable.
    The file was a simple windows .txt file that contains license info. Subsequent to building the exe, the physical file was deleted. The file, not located in the VFS of the exe could be referenced using fileutil cat and the contents read,
    fileutil writeFile was used to determine it was 'writeable', and the file was changed with the fileutil writeFile command, The file was read again and the new contents returned.
    However, it does not seem the changes persist subsequent to exiting the app (ending execution).
    Granted, this could be one of the dumbest questions ever asked. Alternatively, is is possible in any way to have an embedded app modify the exe in which it resides?



    --
    Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
    Deepwoods Software -- Custom Software Services
    http://www.deepsoft.com/ -- Linux Administration Services
    heller@deepsoft.com -- Webhosting Services

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Gerald Kirchner@21:1/5 to All on Sat Jun 24 15:37:26 2023
    I don't know ActiveState devkit. A normal starkit can be unpacked and repacked with sdx. The file can be changed in between.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Rickster@21:1/5 to Gerald Kirchner on Sat Jun 24 21:58:55 2023
    On Saturday, June 24, 2023 at 3:37:29 PM UTC-7, Gerald Kirchner wrote:
    I don't know ActiveState devkit. A normal starkit can be unpacked and repacked with sdx. The file can be changed in between.
    roger that!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Rickster@21:1/5 to Robert Heller on Sat Jun 24 21:58:42 2023
    On Saturday, June 24, 2023 at 1:50:13 PM UTC-7, Robert Heller wrote:
    The Starpack FS is (effectively) a RO fs. I don't know if the VFS code returns
    an error if writing is attempted or if the writing is dropped on the floor. It
    might actually be a RW file system, but only to memory and not to the "backing
    store" (the .exe file). Note: executable files are inheirently read-only (when
    executed), so it probably makes no sense to file a "bug report" about this. If you need updatable persistance storage you will have to create and manage a
    file on the end-users disk (eg whatever passes for a $HOME/.file under MS-Windows).
    At Sat, 24 Jun 2023 11:30:43 -0700 (PDT) The Rickster <sled...@gmail.com> wrote:


    ActiveState devkit was used to build the executable.
    The file was a simple windows .txt file that contains license info. Subsequent to building the exe, the physical file was deleted. The file, not located in the VFS of the exe could be referenced using fileutil cat and the contents read,
    fileutil writeFile was used to determine it was 'writeable', and the file was changed with the fileutil writeFile command, The file was read again and the new contents returned.
    However, it does not seem the changes persist subsequent to exiting the app (ending execution).
    Granted, this could be one of the dumbest questions ever asked. Alternatively, is is possible in any way to have an embedded app modify the exe in which it resides?


    --
    Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
    Deepwoods Software -- Custom Software Services
    http://www.deepsoft.com/ -- Linux Administration Services hel...@deepsoft.com -- Webhosting Services
    The more I though about it; the more is suspected it was RO. The kicker was I got confirmation using the fileutils that it was writeable. And, logically those file are; the changes, however, are not persistent.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Mon Jun 26 10:30:40 2023
    Am 24.06.2023 um 20:30 schrieb The Rickster:
    ActiveState devkit was used to build the executable.
    The file was a simple windows .txt file that contains license info. Subsequent to building the exe, the physical file was deleted. The file, not located in the VFS of the exe could be referenced using fileutil cat and the contents read,
    fileutil writeFile was used to determine it was 'writeable', and the file was changed with the fileutil writeFile command, The file was read again and the new contents returned.
    However, it does not seem the changes persist subsequent to exiting the app (ending execution).
    Granted, this could be one of the dumbest questions ever asked. Alternatively, is is possible in any way to have an embedded app modify the exe in which it resides?

    On the last TCL conference in Houston, there were some people with
    healthcare applications, which just did that: modify an exe with a
    starpack within an update process.

    It is a complex subject:
    - the file storage format is called "metakit" by Jean-Claude Wippler.
    There are RO and RW drivers for Metakit. Normally, only vlerq (the RO
    driver) is packed as package into the starkit, so no RW access.
    - on many operating systems, a running exe file may not be modified
    while running. So, you need a temporary "modification exe" which
    modifies the target exe.

    Or you can use TCL 9.0, which has the zip exe technology build in.

    Be aware, that modifying a signed exe will make all virus scanner etc cry.

    Hope this gives some pointers.

    Take care,
    Harald

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Rickster@21:1/5 to Harald Oehlmann on Tue Jun 27 21:14:21 2023
    On Monday, June 26, 2023 at 1:30:41 AM UTC-7, Harald Oehlmann wrote:
    Am 24.06.2023 um 20:30 schrieb The Rickster:
    ActiveState devkit was used to build the executable.
    The file was a simple windows .txt file that contains license info. Subsequent to building the exe, the physical file was deleted. The file, not located in the VFS of the exe could be referenced using fileutil cat and the contents read,
    fileutil writeFile was used to determine it was 'writeable', and the file was changed with the fileutil writeFile command, The file was read again and the new contents returned.
    However, it does not seem the changes persist subsequent to exiting the app (ending execution).
    Granted, this could be one of the dumbest questions ever asked. Alternatively, is is possible in any way to have an embedded app modify the exe in which it resides?
    On the last TCL conference in Houston, there were some people with healthcare applications, which just did that: modify an exe with a
    starpack within an update process.

    It is a complex subject:
    - the file storage format is called "metakit" by Jean-Claude Wippler.
    There are RO and RW drivers for Metakit. Normally, only vlerq (the RO driver) is packed as package into the starkit, so no RW access.
    - on many operating systems, a running exe file may not be modified
    while running. So, you need a temporary "modification exe" which
    modifies the target exe.

    Or you can use TCL 9.0, which has the zip exe technology build in.

    Be aware, that modifying a signed exe will make all virus scanner etc cry.

    Hope this gives some pointers.

    Take care,
    Harald
    Interesting...good to know I am not the only one with the need. Thanks. Was thinking about a 'modification' exe.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Wed Jun 28 08:18:27 2023
    Am 28.06.2023 um 06:14 schrieb The Rickster:
    On Monday, June 26, 2023 at 1:30:41 AM UTC-7, Harald Oehlmann wrote:
    Am 24.06.2023 um 20:30 schrieb The Rickster:
    ActiveState devkit was used to build the executable.
    The file was a simple windows .txt file that contains license info.
    Subsequent to building the exe, the physical file was deleted. The file, not located in the VFS of the exe could be referenced using fileutil cat and the contents read,
    fileutil writeFile was used to determine it was 'writeable', and the file was changed with the fileutil writeFile command, The file was read again and the new contents returned.
    However, it does not seem the changes persist subsequent to exiting the app (ending execution).
    Granted, this could be one of the dumbest questions ever asked.
    Alternatively, is is possible in any way to have an embedded app modify the exe in which it resides?
    On the last TCL conference in Houston, there were some people with
    healthcare applications, which just did that: modify an exe with a
    starpack within an update process.

    It is a complex subject:
    - the file storage format is called "metakit" by Jean-Claude Wippler.
    There are RO and RW drivers for Metakit. Normally, only vlerq (the RO
    driver) is packed as package into the starkit, so no RW access.
    - on many operating systems, a running exe file may not be modified
    while running. So, you need a temporary "modification exe" which
    modifies the target exe.

    Or you can use TCL 9.0, which has the zip exe technology build in.

    Be aware, that modifying a signed exe will make all virus scanner etc cry. >>
    Hope this gives some pointers.

    Take care,
    Harald
    Interesting...good to know I am not the only one with the need. Thanks. Was thinking about a 'modification' exe.

    My pointer was wrong. It is the TCL 2018 conference. The first two talks
    were about that:

    https://www.tcl-lang.org/community/tcl2018/proceedings.html

    Take care,
    Harald

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)