View Full Version : Bundle extract directory
justin045
21-01-2020, 01:23
Hi ThinBasic community
My first post since using TB.
I wanted to build an exe from the program I wrote to give it as a tool for friends.
First : Microsoft antivirus dislikes some dll'swhen bundling ..... I temporary disabled antivirus on my dev machine.:evil:
Second : I tried to instruct exe to extract temporary files in other partition than \users\myname\AppData\Local\Temp\xxxxxxx-xxx-xxx-xxx-xxxxx-
To achieve that I have seen in help, an instruction : Bundle_SetExtractionFolder(FullPath)
The descripion seems to be what I need.
But at run time I receive error 30 : Variable not defined or misspelled Keyword
Thank to tell me what is wrong in my thoughts ?
Justin
----------------------------------------------
OS Win 7 SP1
ThinBasic 1.10.7.0
DirectuX
21-01-2020, 11:19
Bonjour et bienvenu justin045,
Bundle_SetExtractionFolder(FullPath) seems to be a configuration keyword for bundle_make (https://www.thinbasic.com/public/products/thinBasic/help/html/index.html?bundle_make.htm).
This seems to be implemented since 2007 (https://www.thinbasic.com/public/products/thinBasic/help/html/index.html?version_1_4_0_0.htm) in the thinBundle module. However, I can't find the thinBundle module and that's probably the reason why you get the misspelled keyword error. I'm not aware of a method for doing what you try.
Petr Schreiber
23-01-2020, 20:36
Hi Justin,
can you share please which AV is causing the issue, I will be happy to get in touch with them. Thank you!
Petr
DirectuX
23-01-2020, 21:16
Hi Justin,
can you share please which AV is causing the issue, I will be happy to get in touch with them. Thank you!
Petr
He says 'microsoft'. I understand 'windows defender'.
justin045
24-01-2020, 00:50
Hi Justin,
can you share please which AV is causing the issue, I will be happy to get in touch with them. Thank you!
Petr
Hi Petr
Antivirus : Microsoft Security Essentials
See attached windows captures .
First one for the versions
Second for the error reported when bundling a short tbasic file .
Apologize french in the images :)
But also, what about these instructions/directives
n = Bundle_Set********* causing the errors .
If they are out of date , please take them off the help files.
10115
10114
Regards,
Justin
ErosOlmi
24-01-2020, 06:55
Ciao Justin,
can you please install and use thinBasic 1.11.2.0 and see if it makes any difference for the AV?
Regarding extract directory I will check during the week-end. Bundle application has undergone many changes so maybe I missed something.
Thanks
Eros
Petr Schreiber
24-01-2020, 08:54
Eros, Justin,
I submitted the bundler as false positive to Microsoft, Submission ID: 2d203fb8-3b8d-46f5-8182-382d2b245c5f.
It can be done via this link: https://www.microsoft.com/en-us/wdsi/filesubmission?persona=SoftwareDeveloper
Petr
justin045
24-01-2020, 13:01
Ciao Justin,
can you please install and use thinBasic 1.11.2.0 and see if it makes any difference for the AV?
Regarding extract directory I will check during the week-end. Bundle application has undergone many changes so maybe I missed something.
Thanks
Eros
Hi Eros
Perhaps would it be more convenient to split the thread : one for AV issue , and one for the bundle directives ?
To test TB 1.11.2 , I decided to use another laptop I am just ready to convert to W10 (sniff sniff). :( :bom:
Today, it runs the same versions for W7, Microsoft AV, ThinBasic too.
I copied the whole test directory from PC where I saw the problem first.
I hit the ThinAir bundle button and ..............
The bundle goes to successful end, producing the .exe file which does what it is intended to.
The AV message appears, but AFTER the end of bundling. curious no ?? :o
After that,I deleted the exe and retryed to bundle.
Now the bundle can't go to end. Same as previous tests.:confused:
Friday 11:25
Download thinBasic_1.11.2.0.zip
11:27 install TB 1.11.2 OK
And now,.... a great doubt takes my brain. In another job I use "zTrace.DLL". What about TB version change ?
Cool it works ! :D
11:32 Test bundling - - - - - - - - - - - ah ah ah - - - - - - suspense ......... No AV message .exe created.
11:33 Re test - - - - - - - - - - - - - No AV message, .exe created.
11:33:30 RE Re test - - - - - - - - - No AV message, .exe created. Cool :cool: :D :cool:
AV issue : CLOSED / SOLVED (up to new AV version ??)
:offtopic:Just a little question on the fly........ What is the last version of ThinBasic running on beloved WinXP computers ? :offtopic:
Best regards,
Justin
Just a little question on the fly........ What is the last version of ThinBasic running on beloved WinXP computers ?
all versions, but in case of TB 1.11.2 the installer will not run in windows xp. instead of that install it in windows 7/.+ and copy the installed thinbasic folder to the windows xp. then run thinAir\thinAir.exe
but it is possible some few features specific to win7+ will not run in winXP.
personally i spend all the time within XP, some sites begins to annoy XP users such as bbc news , the videos stop to work, some sites does not show, they listen to microsoft and obey its instructions.
justin045
24-01-2020, 17:05
Thanks for these infos.
...... they listen to microsoft and obey its instructions.
I think it will be the same for Win7 users in a short time. :( :( :(
Regards.
Justin
Petr Schreiber
24-01-2020, 19:07
Hi Justin,
Microsoft processed the request quite promptly today:
We have removed the detection. Please follow the steps below to clear cached detection and obtain the latest malware definitions.1. Open command prompt as administrator and change directory to c:\Program Files\Windows Defender2. Run “MpCmdRun.exe -removedefinitions -dynamicsignatures”3. Run "MpCmdRun.exe -SignatureUpdate"Alternatively, the latest definition is available for download here: https://www.microsoft.com/en-us/wdsi/definitions
Petr
ErosOlmi
25-01-2020, 12:20
Thanks a lot Petr.
All thinBasic development is done under Windows 10 Pro and Microsoft Security always active to the max.
Never had problems so far.
At work we have only Windows 10 and other 2 protection systems: one AV and a security Breach Protection Platform that scan files, process, memory, network, user activity, ...
Here sometimes I have to bundle 2 or 3 times before AV think the new exe is safe.
It is mainly due to the fact that heuristic analysis get some strange behave (like putting dll inside exe as recoruces) but then exe is better analysed remotely and after 2/3 times it passed.
Consider also all my bundled exe are created on networked file system so also server protections scans for possible threats.
Regarding XP, I'm sorry but I had to move and stop back compatibility. Last officially compatible version is 1.9.16.17 but as DirectuX stated ... you can install latest version into a recent OS and copy \thinBasic\ directory into one XP machine and it should work. Maybe few modules will not run or thinAir will not run but most of scripts will run fine.
Windows 7 will be on the same path somewhere during this year.
To me both were great OS but if Microsoft stops to fix security problems ... and add new api ... their death is inexorable.