Results 1 to 8 of 8

Thread: thinBundle module new features to complete exe creation

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    50
    Posts
    8,187
    Blog Entries
    2
    Rep Power
    10

    thinBundle module new features to complete exe creation

    Roberto,

    what I think is still missing in thinBundle module is the following:
    • possibility to add files, so something like "Bundle_AddFile"
    • possibility to reset, so something like "Bundle_Reset".
      This functionality is needed in case with one script user wants to create more bundled exe. So after "Bundle_Builder" and testing all is ok, a "Bundle_Reset" will let user to restart a new bundle.


    What do you think?

    Ciao and thanks for the great job have already done.
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  2. #2

    Re: thinBundle module new features to complete exe creation

    I say perfect, only you forgot the Bundle_Make method, ops sorry function!

    Roberto

    http://www.thinbasic.com

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    50
    Posts
    8,187
    Blog Entries
    2
    Rep Power
    10

    Re: thinBundle module new features to complete exe creation

    Perfect!
    So, Bundle_Make will create the exe and Bundle_Reset will let you restart a new bundling process.

    Thanks
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  4. #4

    Re: thinBundle module new features to complete exe creation

    Added to thinbasic_bundle.dll the following functions:

    • Bundle_Reset
    • Bundle_Make
    • Bundle_AddFile


    So you should be able to run this script

    [code=thinbasic]uses "BUNDLE"

    dim i as long

    ' Put some garbage
    Bundle_SetBundleName("Bundle")
    Bundle_SetScriptName("c:\thinbasic\samplescripts\bundle\Bundle.tbasic")
    Bundle_SetScriptParameters("Hello")
    Bundle_SetCreationFolder("c:\Bundle")
    Bundle_SetExtractionFolder("c:\temp")
    Bundle_SetFlagCompressAllFiles(%TRUE)
    Bundle_SetFlagAskBeforeExtract(%TRUE)
    Bundle_SetFlagDeleteAfterRun(%TRUE)
    Bundle_SetFlagObfuscateMainScript(%TRUE)

    ' Clean it up (code above is needed only for show the Bundle_Reset() use)
    if Bundle_Reset() then msgbox 0, "Data Reset"

    ' Now set the correct data for the Smallest's bundle that is without additional modules
    Bundle_SetBundleName("Smallest")
    Bundle_SetScriptName("c:\thinbasic\samplescripts\bundle\Smallest.tbasic")
    Bundle_SetScriptParameters("Hello")
    Bundle_SetCreationFolder("c:\thinbasic\samplescripts\bundle\")
    Bundle_SetExtractionFolder("c:\temp")
    Bundle_SetFlagCompressAllFiles(%TRUE)
    Bundle_SetFlagAskBeforeExtract(%TRUE)
    Bundle_SetFlagDeleteAfterRun(%TRUE)
    Bundle_SetFlagObfuscateMainScript(%TRUE)

    ' Make the bundle
    DisplayResult(Bundle_Make())

    ' Now same of previous but also add thinAir.ini file
    Bundle_SetBundleName("Smallest2")
    Bundle_SetScriptName("c:\thinbasic\samplescripts\bundle\Smallest.tbasic")
    Bundle_SetScriptParameters("Hello")
    Bundle_SetCreationFolder("c:\thinbasic\samplescripts\bundle\")
    Bundle_SetExtractionFolder("c:\temp")
    Bundle_SetFlagCompressAllFiles(%TRUE)
    Bundle_SetFlagAskBeforeExtract(%TRUE)
    Bundle_SetFlagDeleteAfterRun(%TRUE)
    Bundle_SetFlagObfuscateMainScript(%TRUE)
    Bundle_AddFile("c:\thinbasic\thinair\thinair.ini")

    ' Invoke the Bundle_Builder
    DisplayResult(Bundle_Builder())

    SUB DisplayResult(i as long)
    If i = 0 then
    msgbox 0, "Bundled Executable Created."
    else
    if i = %BUNDLE_BUILDER_CANCELLED then
    msgbox 0, "Bundle creation cancelled by user."
    else
    msgbox 0, "Error occured while creating bundle."
    end if
    end if
    end sub[/code]

    I'm still woarking to add the Bundle_AddFolder function and fixing some minor lacks.

    Cheers,
    Roberto
    http://www.thinbasic.com

  5. #5
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Leverkusen, Germany
    Age
    51
    Posts
    3,278
    Blog Entries
    2
    Rep Power
    339

    Re: thinBundle module new features to complete exe creation

    That looks very good! thank you for this
    Running Windows 7 Home, 64 bit, 8 GB ram, Athlon II X2 255, ATI Radeon HD 4200.

  6. #6
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    50
    Posts
    8,187
    Blog Entries
    2
    Rep Power
    10

    Re: thinBundle module new features to complete exe creation

    I'm finishing to fix a bugs that oblidge me to change some internal thinCore structures.
    After that I will release all those important features Roberto added to thinBundle.

    Thanks Roberto.
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  7. #7

    Re: thinBundle module new features to complete exe creation

    Added Bundle_AddFolder() function and set the readonly and system flag to the directories created with addfolder.

    Ciao,
    Roberto
    http://www.thinbasic.com

  8. #8
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    61
    Posts
    3,869
    Rep Power
    398

    Re: thinBundle module new features to complete exe creation

    This is great, thanks guys. Will make it very nice to share our work with others not into programming, but like using apps.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

Similar Threads

  1. Replies: 1
    Last Post: 21-02-2007, 01:56

Posting Permissions

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