Page 4 of 29

Re: yaP - yet another Portablizer

Posted: Tue Jul 03, 2012 8:21 am
by Midas
Midas wrote:
tproli wrote:Any news? Did it fix the issue?
Sorry, I haven't been able to test this yet. I'm in the middle of moving laptops and coupled with a move to XP Pro x64, my usual tools went haywire. I will report back ASAP... :oops:

Re: yaP - yet another Portablizer

Posted: Tue Jul 03, 2012 8:22 am
by Midas
Still had no opening to go back to my Winimage project (too complex...), but tested the yaP 0.23-fixed version with an easier target and everything seems to be working alright. 8)

Here's the result for DiMXSoft Desktop Lighter (link included): http://www.filedropper.com/yap-desktoplighter or
http://mir.cr/KKS26WJV

EDIT: Making final checks, I looked at the memory footprint of my yaP'ed util and found the 'Private Bytes' count a bit too large for my linking (see image below). Couldn't anything be done to further reduce it?

Image

Re: yaP - yet another Portablizer

Posted: Sat Nov 03, 2012 8:34 pm
by I am Baas
@tproli

What's the latest yaP version? There are a few 0.23 fixes throughout this thread, not sure which one to download. I would like to give it another go.

Cheers.

Re: yaP - yet another Portablizer

Posted: Sat Nov 03, 2012 10:38 pm
by tproli
The latest is 0.23, the two fixes were not "released" officially.

http://rolandtoth.hu/files/yaP_rootdir_fixed.zip
http://rolandtoth.hu/files/yaPs-old-nircmd.zip

@Midas
I don't think there is much I could do about the memory issue. The solution would be a complete rewrite in a more suitable language (perhaps AutoIt?) but I don't think I can do it in the near future.

Re: yaP - yet another Portablizer

Posted: Sun Nov 04, 2012 12:02 am
by I am Baas
OK, thank you.

Re: yaP - yet another Portablizer

Posted: Tue Nov 06, 2012 3:40 am
by Midas
tproli wrote:The latest is 0.23, the two fixes were not "released" officially.

http://rolandtoth.hu/files/yaP_rootdir_fixed.zip
http://rolandtoth.hu/files/yaPs-old-nircmd.zip

@Midas
I don't think there is much I could do about the memory issue. The solution would be a complete rewrite in a more suitable language (perhaps AutoIt?) but I don't think I can do it in the near future.
It's all good, no worries, tproli. Although IMHO you should release a fixed version, at least for the first glitch... 8)

Re: yaP - yet another Portablizer

Posted: Mon Dec 24, 2012 11:05 am
by tproli
yaP version 0.25 is out:

- ported from NSIS to AutoIt
- ADDED possibility to add your own message before or after launching the main application, e.g. "Click Yes to run the application"
- ADDED example setups for Dukto R5, UltraVNC, WinLess
- REMOVED rootdir option: before/after items go to the "yaP" directory (hardcoded)
- REMOVED nowait option: if there are no AFTER items the launcher terminates after executing the main application
- REMOVED silentbatch -1

http://rolandtoth.hu/files/yaP_v0.25.7z

My tests with example setups were all successful so hopefully there is no (major) bug. Nircmd is taken out as AutoIt can run command windows hidden, so hopefully issues with previous versions are solved.

Don't know anything about UAC as I'm still on XP.

Because of AutoIt the file size is much larger (640 Kb instead of 80). I thought about adding a feature that would require only one yaP.exe and individual applications would use a shortcut to it - what do you think? I rejected the idea because disk space was cheaper than my precious time :)

Re: yaP - yet another Portablizer

Posted: Mon Dec 24, 2012 12:04 pm
by guinness
Looking through the source code now.

Re: yaP - yet another Portablizer

Posted: Thu Dec 27, 2012 6:13 am
by I am Baas
guinness wrote:Looking through the source code now.
The verdict seems to be out.

Re: yaP - yet another Portablizer

Posted: Thu Dec 27, 2012 7:42 am
by Midas
What? Where?

Re: yaP - yet another Portablizer

Posted: Thu Dec 27, 2012 10:45 am
by tproli
It seems to be a special Christmas to guinness :)

The relatively large file size bothered me so I searched for other solutions. yaP is a simple tool that shouldn't be more than 40-50 KB I guess.

Finally I found BCX:
http://www.bcxgurus.com/

I'm new to BASIC and but fortunately AutoIt is also a BASIC-like language so I gave it a try. Now I'm only testing basic functions but so far so good. Surely I will have issues but as I see there's nothing that looks impossible. File size is currently 5152 bytes but of course this will be much larger (perhaps 20 KB? :)). Anyway, I like it :)

Re: yaP - yet another Portablizer

Posted: Thu Dec 27, 2012 12:29 pm
by Midas
I'm no programmer, but BCX does look mighty interesting -- it supports multiplatform coding (apparently it already runs in embedded systems) and C is synonymous with tiny executables. Two questions remain: will it be x64 compatible? And can the programming environment be made portable?

Disclaimer: I gathered all my info at the forum at http://basic-compiler.com/forum/.

Re: yaP - yet another Portablizer

Posted: Thu Dec 27, 2012 1:37 pm
by guinness
tproli wrote:It seems to be a special Christmas to guinness :)

The relatively large file size bothered me so I searched for other solutions. yaP is a simple tool that shouldn't be more than 40-50 KB I guess.

Finally I found BCX:
http://www.bcxgurus.com/

I'm new to BASIC and but fortunately AutoIt is also a BASIC-like language so I gave it a try. Now I'm only testing basic functions but so far so good. Surely I will have issues but as I see there's nothing that looks impossible. File size is currently 5152 bytes but of course this will be much larger (perhaps 20 KB? :)). Anyway, I like it :)
Thanks for ruining my weekend :mrgreen:

Re: yaP - yet another Portablizer

Posted: Fri Dec 28, 2012 6:10 am
by tproli
Sorry to hear that. No chocolate for tpr this year :)

I managed to convert about 75% of the functionality of yaP and file size is only 8.5 KB. Lovin it! :)

@Midas
Mind to care your findings? All I got when visiting the forum you linked is
"Sorry Guest, you are banned from using this forum!"
(yesterday it was working)

Re: yaP - yet another Portablizer

Posted: Fri Dec 28, 2012 8:16 am
by guinness
I just compiled this with MingGW gcc and the exe came out as 527 KB.

Code: Select all

 DIM ArrayInt% [5]
 
 DIM ArrayStr$ [10]

 ArrayStr$ [0] = "zero"
 
 ArrayInt% [0] = 0

 PRINT UBOUND(ArrayInt%)
 
 PRINT UBOUND(ArrayStr$)