Results 1 to 8 of 8

Thread: Bundle is not adding files

  1. #1

    Bundle is not adding files

    The bundle does not add additional files to the EXE pack.
    Generally it is included in the script (using #BUNDLE File), but the size of the resulting EXE does not change, so it is clear that file is not added. Checked with small and big jpg/png files to verify compression.

    The included sample TImage is just the clear way to check it.
    IDE running is OK
    EXE pack in the same folder is OK
    EXE pack on different computer fails with "beep", no image is found in Application Folder.

    Please advice how can we add additional files to our project.
    Adding second package if not the best way, but we can do it with WinRAR if this functionality will not work.

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10
    Hi Victor,

    Bundling process has recently completely changed compared to previous thinBasic versions.
    At the moment only thinBasic modules needed by the the script are included automatically.
    Adding additional files is not supported.

    But I will work on this.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    I can help you on testing and/or development.

    Victor Pavlov
    Microinvest

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10
    OK, thank you.
    I will post here when something to test.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  5. #5
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10
    I have #BUNDLE FILE ... almost done.

    Syntax will be the following:
    '---Add additional files
    #BUNDLE File "ID", "SourceFile", "DestinationPath" [, DeleteOnClose="0", ExtractOnRun="1", ReplaceExisting="0", CreateFullPath="0"]
    
    After #BUNDLE File ... there will be:

    1. optional file ID. If empty an auto-numeration FILEXXXX will be generated
    2. Source full path and file name (relative path to current script is supported)
    3. Destination path
    4. up to 4 optional parameters. If not specified default values will be used
      • DeleteOnClose. If 1, file will be deleted after script execution. Default = 1
      • ExtractOnRun. If 1, file will be extracted on disk before script execution. Default = 1
      • ReplaceExisting. If 1, file extraction will replace already existing file with the same name. Default = 0
      • CreateFullPath. If1, if destination path does not exists will be created otherwise file will not be extracted. Default = 1


    Example:
    '---Add additional files
    #BUNDLE File "MyID", ".\MyFirstApplication_DB.accdb", "", DeleteOnClose="0", ExtractOnRun="1", ReplaceExisting="0", CreateFullPath="0"
    #BUNDLE File "", ".\MyFirstApplication_Excel.xlsx", ""
    #BUNDLE File "", ".\MyFirstApplication_DB_1.1.2.sql", ".\DB\SQL\", DeleteOnClose="0", ExtractOnRun="1", ReplaceExisting="1", CreateFullPath="1"
    
    Any suggestion?
    Any file type to test?
    Attached Images Attached Images
    Last edited by ErosOlmi; 11-12-2015 at 00:38.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  6. #6
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174
    Can we also simply select complete subfolders of app_scriptpath (containing resources as media, fonts, themes etc.) to be part of the bundle?
    I think there are missing some Forum-sections as beta-testing and support

  7. #7
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10
    Yes I thought about that but maybe it will come later when single file bundling will be stabilized.
    I still have to add and fix many aspects and going into adding full directories and sub directories is quite complex at this stage.

    Anyway, thanks
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  8. #8
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174
    I think there are missing some Forum-sections as beta-testing and support

Similar Threads

  1. why bundle exe files (module incl.) are so big?
    By largo_winch in forum Modules specific issues
    Replies: 2
    Last Post: 16-07-2011, 11:10
  2. WinAPI for adding menu shortcuts?
    By Michael Hartlef in forum UI (User Interface)
    Replies: 0
    Last Post: 22-08-2010, 19:46
  3. Obfuscated scripts adding
    By ErosOlmi in forum thinBundle suggest new features
    Replies: 12
    Last Post: 22-03-2007, 12:24

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •