yaP - yet another Portablizer

If you are currently developing portable freeware or planning to do so, use this forum to discuss technical implementation, seek out like-minded developers for partnership, or solicit interested users for beta testing.
Message
Author
User avatar
Midas
Posts: 6710
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: yaP - yet another Portablizer

#46 Post 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:

User avatar
Midas
Posts: 6710
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: yaP - yet another Portablizer

#47 Post 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

User avatar
I am Baas
Posts: 4150
Joined: Thu Aug 07, 2008 4:51 am

Re: yaP - yet another Portablizer

#48 Post 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.

User avatar
tproli
Posts: 1172
Joined: Sat Sep 09, 2006 10:14 am
Location: Hungary
Contact:

Re: yaP - yet another Portablizer

#49 Post 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.

User avatar
I am Baas
Posts: 4150
Joined: Thu Aug 07, 2008 4:51 am

Re: yaP - yet another Portablizer

#50 Post by I am Baas »

OK, thank you.

User avatar
Midas
Posts: 6710
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: yaP - yet another Portablizer

#51 Post 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)

User avatar
tproli
Posts: 1172
Joined: Sat Sep 09, 2006 10:14 am
Location: Hungary
Contact:

Re: yaP - yet another Portablizer

#52 Post 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 :)

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: yaP - yet another Portablizer

#53 Post by guinness »

Looking through the source code now.

User avatar
I am Baas
Posts: 4150
Joined: Thu Aug 07, 2008 4:51 am

Re: yaP - yet another Portablizer

#54 Post by I am Baas »

guinness wrote:Looking through the source code now.
The verdict seems to be out.

User avatar
Midas
Posts: 6710
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: yaP - yet another Portablizer

#55 Post by Midas »

What? Where?

User avatar
tproli
Posts: 1172
Joined: Sat Sep 09, 2006 10:14 am
Location: Hungary
Contact:

Re: yaP - yet another Portablizer

#56 Post 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 :)

User avatar
Midas
Posts: 6710
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: yaP - yet another Portablizer

#57 Post 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/.

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: yaP - yet another Portablizer

#58 Post 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:

User avatar
tproli
Posts: 1172
Joined: Sat Sep 09, 2006 10:14 am
Location: Hungary
Contact:

Re: yaP - yet another Portablizer

#59 Post 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)

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: yaP - yet another Portablizer

#60 Post 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$)

Post Reply