winPenPack - The Portable Software Collection : Forum / topic
http://www.winpenpack.com/
it-it2024-03-29T07:05:28+01:00winpenpack@nospam.comhourly12000-01-01T12:00+00:00Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00Hi, I have tried several apps to do this and none seem to work. Looking at the X-Launcher.exe in ResurceHacker shows the IconGroup 161:2057 icons as follows: 16 × 16 (16.8mil colors) - Ordinal name: 1
32 × 32 (16.8mil colors) - Ordinal name: 2
48 × 48 (16.8mil colors) - Ordinal name: 3
64 × 64 (16.8mil colors) - Ordinal name: 4
128 × 128 (16.8mil colors) - Ordinal name: 5 Yet when I use this app to change the icons to suit my chosen app, in this case KnobMan, which I'm simply doing for test purposes, icons are in reverse order so their Ordinal Name is backwards compared to the original WPP ones: 128 × 128 (16.8mil colors) - Ordinal name: 1
64 × 64 (16.8mil colors) - Ordinal name: 2
48 × 48 (16.8mil colors) - Ordinal name: 3
32 × 32 (16.8mil colors) - Ordinal name: 4
16 × 16 (16.8mil colors) - Ordinal name: 5 Does this reverse order matter when X-Launcher displays icons in Windows? I can't get it to work! If so, how do I reorder the icons? The apps I've tried don't work, nothing seems to work!!! Well, one app worked but it seems to only save the icon change within Windows itself and NOT the X-Launcher.exe.Also, how do you change the name of the exe? I don't mean in Windows, but rather when the app is added to PortableAppsMenu, for example, it shows winPenPack X-Launcher instead of the WindowsFileName.Please help...ThanksScottRe: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00NuvolariHi sl23,you should use AutoIt to compile your full personalized x-launcher.exeHere a tutorial (in italian ) -Link- You also need to download the x-launcher source -Link- and play with x-compiler.au3Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23Thanks for the reply Nuvolari, don't suppose there's english translation available?Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00TafHi sl23,I made a very quick translation for You, have a look if can help... -Link-Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00NuvolariTaf ha scritto ...Hi sl23,I made a very quick translation for You, have a look if can help... -Link- I was going to try to do the same, happy that you have been faster!Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23Hmm... First I must thank you for your help, though I'm somewhat confused! You said in order to change the X-Launcher icons I must download the source code and recompile in AutoIT. But I have just noticed this comment on the page you linked to:Moreover, if You want to modify file infos (icon, author, etc...) You must use Resource Hacker.So, can I just use Resource Hacker instead? If so, I'm back to my original question, does it matter that the OrdinalNames are reverse numbered?I imagine using AutoIT would avoid all issues with regards to icons? Then maybe I should just learn to do that instead? Though I am still stuck! Do I simply replace the X-icon in the graphics folder with my own and then recompile X-Launcher? Is it really that simple? Are there any specifications that need to be followed with regards to icon sizes included, etc?I'm not a programmer, so this is all new to me, the page linked to isn't explaining anything I can understand, at least not with regards to my original question.Thanks again for your help.Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00NuvolariI have just tested Resource Hacker 4.2.5 changing the icon to an X-software (X-7zip) in Windows 7.I have replaced the n.1 (of 12 icons) only, by selecting a random file.ico of my own.It looks working: X-7zip.exe shows the new icon and the software works properly.Are you using the last version of RH?P.S.: yes, AutoIt-SciTe is easy and fast to use (once got friendly) and more powerful or at least it does 'clean' changes... I have just checked I'm using an old version (3.2.12.1) which may fit properly with the tutorial (new ones may not)Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00TafThanks to Nuvolari for the support!I'm not able to help you more than this, because I'm not a programmer too.Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23Taf ha scritto ...Thanks to Nuvolari for the support!I'm not able to help you more than this, because I'm not a programmer too. No Problem, thanks for trying, I really appreciate it Nuvolari ha scritto ...I have just tested Resource Hacker 4.2.5 changing the icon to an X-software (X-7zip) in Windows 7.I have replaced the n.1 (of 12 icons) only, by selecting a random file.ico of my own.It looks working: X-7zip.exe shows the new icon and the software works properly.Are you using the last version of RH?P.S.: yes, AutoIt-SciTe is easy and fast to use (once got friendly) and more powerful or at least it does 'clean' changes... I have just checked I'm using an old version (3.2.12.1) which may fit properly with the tutorial (new ones may not)Using RH v 4.2.5.I tried changing the icons but on renaming the exe it reverts to the default winpenpack icon??? Whilst looking for other apps and ways of changing icons, I noticed one app claimed to do this by changing the actual exe instead of just changing it in the registry. Basically telling windows to show a different icon, like file associations I suppose. Therefore giving the illusion the icon has changed yet it remains the same but windows shows a different one.As I said above, I don't understand the tutorial? It doesn't explain anything, there aren't any instructions of any kind that I could make out anyway?! I opened the file in a text editor and can't make any sense of it at all. Can you help any further?That said, I'm happy to use RH if that is actually changing the exe and NOT just the registry.Thanks for your helpScottRe: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00NuvolariPlease, tell me exactly which app-icon are you trying to change using Resource Hacker (is it an X-launcher or winPenPackNet.exe?), I will try to reproduce your case.About AutoIt3, I write in few steps how to compile an X-launcher:1) download AutoIt3 -Link- , unpack it, it should already contain SciTe subfolder (can't remember), if not get it from -Link- (SciTE4AutoIt3_Portable.zip)2) download -Link- and unpack into a folder named X-Launcher_source 3) run .\AutoIt3\SciTe\SciTE.exe4) open x-compiler.au3 from X-Launcher_source5) move your x-icon.ico into subfolder .\graphics, by default it's wPP icon6) in SciTe click on Tools\Compile (Ctrl+F7)\Compile Script7) your brand new X-launcher.exe is created in the main directory X-Launcher_source having icon = x.icon.icoBy playing with the lines of the code in x-compiler.au3 you may choose icon, product name, product version, etc.Hope this helps P.S.: if you run into issues using old Windows OS with the latest AutoIt 3.3.x version, try with the 3.2.12.1 -Link-Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00NuvolariTaf ha scritto ...Thanks to Nuvolari for the support!It's a pleasureRe: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23Nuvolari ha scritto ...Please, tell me exactly which app-icon are you trying to change using Resource Hacker (is it an X-launcher or winPenPackNet.exe?), I will try to reproduce your case.About AutoIt3, I write in few steps how to compile an X-launcher:1) download AutoIt3 -Link- , unpack it, it should already contain SciTe subfolder (can't remember), if not get it from -Link- (SciTE4AutoIt3_Portable.zip)2) download -Link- and unpack into a folder named X-Launcher_source 3) run .\AutoIt3\SciTe\SciTE.exe4) open x-compiler.au3 from X-Launcher_source5) move your x-icon.ico into subfolder .\graphics, by default it's wPP icon6) in SciTe click on Tools\Compile (Ctrl+F7)\Compile Script7) your brand new X-launcher.exe is created in the main directory X-Launcher_source having icon = x.icon.icoBy playing with the lines of the code in x-compiler.au3 you may choose icon, product name, product version, etc.Hope this helps P.S.: if you run into issues using old Windows OS with the latest AutoIt 3.3.x version, try with the 3.2.12.1 -Link- That's a great help, thanks for the detailed reply Sorry for my inadequate posts lacking information!I am using the latest versions of these apps:AutoIT PortableResource HackerX-LauncherSyMenuPortableAppsMenuA little background info so you may understand my purpose:I started my portable venture with PortableAppsMenu around 2008, purely for portability. As my interest and knowledge grew, as well as my app collection, I realised the importance of auto-updates, hence I stuck with this menu to this day. Though I have searched for a replacement due to it's slow progress and few apps, plus you can't just add your own. Recently I came across SyMenu, which has an amazing concept, add any app to the database and it can be auto-updated!So I have both menu's, though I'm trying to rid myself of PA.com menu. I also found useful the X-Launcher for creating portable versions of my favourite semi-portable apps. Though I have very basic knowledge on how to use it!!! But it saves most apps that use AppData so that's pretty much solved the issues I have with apps such as PartitionWizard, WinRAR, MacriumReflect, KnobMan and a few others.So I tried changing my X-KnobMan X-Launcher icon but if I rename or move the exe it changes to the default wPP icon? I will however try out your instructions at a more appropriate time and let you know how I get on.One other issue that eludes me... How do I change the text that appears in either menu? Rather than have to rename apps within menu's, I'd like to know how to change the default name - 'winPenPack X-Launcher' - to the $AppName$. Which file from the source folder would need editing and what line do I need to change?Thank you again for your kind helpRe: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00Nuvolarisl23 ha scritto ...So I tried changing my X-KnobMan X-Launcher icon but if I rename or move the exe it changes to the default wPP icon? I will however try out your instructions at a more appropriate time and let you know how I get on. I've just used RH on X-launcher.exe (generic one with wPP ico):- icon successfully changed- exe renamed and icon changed- exe moved and icon changed sl23 ha scritto ...One other issue that eludes me... How do I change the text that appears in either menu? Rather than have to rename apps within menu's, I'd like to know how to change the default name - 'winPenPack X-Launcher' - to the $AppName$. Which file from the source folder would need editing and what line do I need to change? Using RH on X-launcher.exe:- it's enough to edit "Version Info" -> Product Name from 'winPenPack X-Launcher' to 'whatever-you-want' (remember to compile it)Using AutoIt3:- x-compiler.au3 is the file to editsl23 ha scritto ...Thank you again for your kind help You are welcomeRe: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23Thanks for confirming that Nuvolari. I don't know why, though I suspect it was my fault it didn't work as I don't think I compiled and saved after making changes. I just saved it, I think?! Anyway, I figured it out, but it's good to know RH works and has been confirmed from someone who knows what they're doing!Although it's not important now that RH does the job, but I'm curious how to change the ProductName in AutoIT, as you mention the file to edit is the one I searched for the 'winPenPack' string and it found it only in comments.I've changed my X-Launchers icons and names using RH and they seem to be fine, fantastic! I do have some further questions about the use of X-Launcher to copy/move folders, but I'll start another thread when ready. I want to try figure it out for myself if I can. But, for now, it's great to finally get these icons and names sorted after all these years, thanks!EDIT: Ah! I've just changed the icon in X-MuLab x32 X-Launcher. Manually updated the X-Launcher from 1.4.2 to 1.5.4.1. The new version has an incorrect version number, I believe it's showing the version of AutoIT used to compile the exe?2. On deleting the old, pasting the new and renaming new to match the old ie, X-MuLab x32 the icon remained even though I updated it ONLY in the old version?3. I then manually copied the updated exe to my F drive used for backup, but that copied exe does NOT have the icon?This tells me that the exe is only updated in Windows registry and not the EXE. If RH is compiling the icon into v1.4.2 then why does v1.5.4 have the icon showing but only on the drive it was originally edited? Doesn't make sense???On another note...Using RH I noticed v1.4.2 has a single VERSIONINFO section, whereas v1.5.4 has two but the second is blank. Well, not blank but sort of like default. Is this meant to be here? it seems like it's overriding the required info from VERSIONINFO/1040?I tested this thoery by deleting the second section namely VERSIONINFO/1/2057 and the launcher has reverted to showing the required info regarding version number and exe details in windows. Possible bug?Sorry if my explanations aren't too great!Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00NuvolariHappy that finally is working for you too About your further doubts (registry behaviour) or possible bug, you may directly try to contact the author of RH -Link- , it may be appreciated.And/Or test the same cases using other apps like XN Resource Editor or the small cmd tool "changeexeicon" -Link- EDIT: hmm, I tested it a little bit, are you running Windows 8 or superior?In Windows 8.1 I think I face similar issue as you: after using RH to change the icon of winPenPack.exe (same using the other two apps) I can see the new icon in another folder, while in the original folder, where the exe is placed by ages, it keeps the old one. Besides, if I rename a random X-launcher.exe (e.g. X-Audacity.exe, N.B. only an X-, not any other exe) into winPenPack.exe, this immediately gets the new icon set with RH! In Windows 7, where I have made all the tests about your case so far, it looks working good, instead.Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23Thanks for testing again, glad it's not just me!!!I did forget to mention I'm on Win10.Oh, and thanks for the author link, I couldn't find it on his site for some reason?!Just tried XNReEd, it doesn't show the same info for changing naming in the VERSIONINFO section. Not tried icons yet as it looks a lot more hassle changing each individual icon!Will need time to figure out "changeexeicon" as not used cmd tools before except NirCmd, and that has examples!Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23I've just realised my stupid mistake regarding AutoIT! I've been opening the wrong file! Teach me to not read replies properly!I can see now how it works, which has simplified things a bit. Same though that RH doesn't work as it's so much easier. Never mind, I've contacted the author about it, I can only hope he will sort it out. OK, I just attempted compiling using AutoIT, but, it simply creates an x-compiler.exe with no icon?Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00Nuvolarisl23 ha scritto ...Oh, and thanks for the author link, I couldn't find it on his site for some reason?! Because it's not in the home page but under the link "Software Programming", don't know why.sl23 ha scritto ...Never mind, I've contacted the author about it, I can only hope he will sort it out. Nice, let me know please if something moves ahead sl23 ha scritto ...Will need time to figure out "changeexeicon" as not used cmd tools before except NirCmd, and that has examples!Having the tool, the icon and the file.exe all in the same directory you should run changeexeicon newicon.ico source.exe destination.exe sl23 ha scritto ...OK, I just attempted compiling using AutoIT, but, it simply creates an x-compiler.exe with no icon? It should be a matter of path, you should put your icon in subfolder \graphics (where you should see x-icon.ico by the way)Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23I got a reply from the author of RH, and, I quote:Sorry, can't help.er... that's it!Re: AutoIT - That is exactly what I did. I even downloaded the older v3.2.12.1 as you previously suggested, but still all I get when compiling is an exe called x-compiler.exe with no icon! Am I doing it wrong? Or is this another Win10 issue?Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00Nuvolarisl23 ha scritto ...I got a reply from the author of RH, and, I quote:Sorry, can't help.er... that's it! sl23 ha scritto ...Re: AutoIT - That is exactly what I did. I even downloaded the older v3.2.12.1 as you previously suggested, but still all I get when compiling is an exe called x-compiler.exe with no icon! Am I doing it wrong? Or is this another Win10 issue?This is the latest (1.5.4) x-compiler.au3: ; winPenPack X-Launcher
#Region
;** AUT2EXE settings
#AutoIt3Wrapper_OutFile=X-Launcher.exe ;Target exe/a3x filename.
#AutoIt3Wrapper_OutFile_Type=exe ;a3x=small AutoIt3 file; exe=Standalone executable (Default)
#AutoIt3Wrapper_Icon=graphics\x-icon.ico ;Filename of the Ico file to use
#AutoIt3Wrapper_Compression=2 ;Compression parameter 0-4 0=Low 2=normal 4=High. Default=2
#AutoIt3Wrapper_UseUpx=N ;(Y/N) Compress output program. Default=Y
;** AUTOIT3 settings
#AutoIt3Wrapper_UseAnsi=Y ;(Y/N) Use Ansi versions for AutoIt3a or AUT2EXEa. Default=N
#AutoIt3Wrapper_UseX64=N ;(Y/N) Use X64 versions for AutoIt3_x64 or AUT2EXE_x64. Default=N
#AutoIt3Wrapper_Version=P ;(B/P) Use Beta or Production for AutoIt3 and AUT2EXE. Default is P
#AutoIt3Wrapper_Run_Debug_Mode=N ;(Y/N)Run Script with console debugging. Default=N
;** Target program Resource info
#AutoIt3Wrapper_Res_Field=ProductName|winPenPack X-Launcher
#AutoIt3Wrapper_Res_Field=ProductVersion|1.5.4
#AutoIt3Wrapper_Res_Field=OriginalFilename|X-Launcher.exe
#AutoIt3Wrapper_Res_Field=InternalName|X-Launcher
#AutoIt3Wrapper_Res_Description=X-Launcher - The Universal Launcher!
#AutoIt3Wrapper_Res_Field=CompanyName|www.winpenpack.com
#AutoIt3Wrapper_Res_Field=Authors|tittoproject - winPenPack Team & winPenPack community
#AutoIt3Wrapper_Res_Fileversion=1.5.4
#AutoIt3Wrapper_Res_Comment=X-Launcher allows you to change at will the options for initiating programs undertaken in order to make them portable.
#AutoIt3Wrapper_Res_LegalCopyright=GNU General Public License
#AutoIt3Wrapper_Res_Field=LegalTrademarks|winPenPack
#AutoIt3Wrapper_Res_Language=1040 ;Resource Language code . default 2057=English (United Kingdom)
#AutoIt3Wrapper_Res_Field=eMail|winpenpack@gmail.com
#AutoIt3Wrapper_Res_RequestedExecutionLevel=None ;None, asInvoker, highestAvailable or requireAdministrator (default=None)
#EndRegion
;** Include X-Launcher's source code
#include 'x-launcher.au3'
#include 'files\x-install.au3' The icon line: #AutoIt3Wrapper_Icon=graphics\x-icon.ico ;Filename of the Ico file to use The exe line: #AutoIt3Wrapper_Res_Field=OriginalFilename|X-Launcher.exe Try default settings, it should create X-Launcher.exe having wPP icon. Is it true?Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23I deleted my source and extracted a fresh copy. Still no icon??? WTF is going on?!Could it be an issue with the portable version of AutoIT?Are you testing this on Win7, 8 or 10? With AutoIT3portable?EDIT: Out of curiosity, I tested the x-compiler.exe to see if it worked. I kept the name but edited it's corresponding INI file that it creates to mirror an X-Launcher I've created and know works.the x-compiler.exe launched X-WinRAR with no problem. On closing WinRAR though I got this error message window that I never get from my usual X-WinRAR Launcher: Line 3997 (File "E:\path to X-WinRAR\x-compiler.exe"):
Error: Unknown function name. Any ideas?This is getting stupidly complex over such a simple thing!!!EDIT: Could it have anything to with the architecture? I notice the default line states no for x64 use. What exactly this means I don't know. Does it mean create x64 version of X-Launcher, I would think so. But then you need to use a x64 compiler. There is a x64 version of AutoIT included in the package but is it auto selected when starting SciTe or compiling the exe?Also noticed this line: #AutoIt3Wrapper_UseUpx=N ;(Y/N) Compress output program. Default=Y Default=Y but UseUpx=N. Keep in mind this is unedited in any way.Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00NuvolariPerhaps I got it, I may have given you the wrong link to X-Launcher_source instead of X-Launcher and this may cause an issue with 'path'. Try with this -Link- It has got subfolder .\_source\graphics (which I actually use with x-compiler.au3) instead of .\graphics.I didn't notice before, sorry. Hopefully it works now, let me know! About architecture it may be, this is the latest code I have used (AutoIt 3.2.12.1) with both upx and x64 set to 'No': #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=graphics\X-App.ico
#AutoIt3Wrapper_outfile=X-App.exe
#AutoIt3Wrapper_UseUpx=N
#AutoIt3Wrapper_UseX64=n
#AutoIt3Wrapper_Res_Fileversion=1.5.4.0
#AutoIt3Wrapper_Res_Language=1040
#AutoIt3Wrapper_Res_Field=ProductName|X-App
#AutoIt3Wrapper_Res_Field=ProductVersion|INI rev1
#AutoIt3Wrapper_Res_Field=OriginalFilename|X-App.exe
#AutoIt3Wrapper_Res_Field=InternalName|X-App
#AutoIt3Wrapper_Res_Field=Authors|Nuvolari
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
; winPenPack X-Launcher
#Region
;** AUT2EXE settings
;** AUTOIT3 settings
#AutoIt3Wrapper_UseAnsi=Y ;(Y/N) Use Ansi versions for AutoIt3a or AUT2EXEa. Default=N
#AutoIt3Wrapper_Run_Debug_Mode=N ;(Y/N)Run Script with console debugging. Default=N
;** Target program Resource info
#EndRegion
;** Include X-Launcher's source code
#include 'x-launcher.au3'
#include 'files\x-install.au3' Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23This is really starting to be not worth the hassle!!! Still doing the same, compiling without icon.Also, that code you've supplied above, is that the full code from the x-compiler.au3 file? As mine is different:Spoiler: ; winPenPack X-Launcher
#Region
;** AUT2EXE settings
#AutoIt3Wrapper_OutFile=X-Launcher.exe ;Target exe/a3x filename.
#AutoIt3Wrapper_OutFile_Type=exe ;a3x=small AutoIt3 file; exe=Standalone executable (Default)
#AutoIt3Wrapper_Icon=graphics\x-icon.ico ;Filename of the Ico file to use
#AutoIt3Wrapper_Compression=2 ;Compression parameter 0-4 0=Low 2=normal 4=High. Default=2
#AutoIt3Wrapper_UseUpx=N ;(Y/N) Compress output program. Default=Y
;** AUTOIT3 settings
#AutoIt3Wrapper_UseAnsi=Y ;(Y/N) Use Ansi versions for AutoIt3a or AUT2EXEa. Default=N
#AutoIt3Wrapper_UseX64=N ;(Y/N) Use X64 versions for AutoIt3_x64 or AUT2EXE_x64. Default=N
#AutoIt3Wrapper_Version=P ;(B/P) Use Beta or Production for AutoIt3 and AUT2EXE. Default is P
#AutoIt3Wrapper_Run_Debug_Mode=N ;(Y/N)Run Script with console debugging. Default=N
;** Target program Resource info
#AutoIt3Wrapper_Res_Field=ProductName|winPenPack X-Launcher
#AutoIt3Wrapper_Res_Field=ProductVersion|1.5.4
#AutoIt3Wrapper_Res_Field=OriginalFilename|X-Launcher.exe
#AutoIt3Wrapper_Res_Field=InternalName|X-Launcher
#AutoIt3Wrapper_Res_Description=X-Launcher - The Universal Launcher!
#AutoIt3Wrapper_Res_Field=CompanyName|www.winpenpack.com
#AutoIt3Wrapper_Res_Field=Authors|tittoproject - winPenPack Team & winPenPack community
#AutoIt3Wrapper_Res_Fileversion=1.5.4
#AutoIt3Wrapper_Res_Comment=X-Launcher allows you to change at will the options for initiating programs undertaken in order to make them portable.
#AutoIt3Wrapper_Res_LegalCopyright=GNU General Public License
#AutoIt3Wrapper_Res_Field=LegalTrademarks|winPenPack
#AutoIt3Wrapper_Res_Language=1040 ;Resource Language code . default 2057=English (United Kingdom)
#AutoIt3Wrapper_Res_Field=eMail|winpenpack@gmail.com
#AutoIt3Wrapper_Res_RequestedExecutionLevel=None ;None, asInvoker, highestAvailable or requireAdministrator (default=None)
#EndRegion
;** Include X-Launcher's source code
#include 'x-launcher.au3'
#include 'files\x-install.au3' EDIT: I just copied your code into a new x-compiler.au3 file and the same thing is happening, no icon! Some code is missing from your post, is that meant to be that way? Or are you posting just necessary part of code to check?Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00NuvolariIt's the whole code... Unless path is still wrong, I cannot understand, I've successfully compiled one right now, with wPP icon Paths:x-compiler.au3 -> _source folderx-icon.ico -> _source\graphics (btw, you should see it)x-YourCompiledApp.exe -> appears in _source folderLast difference may be my old SciTe version (1.79) but it should not matter...Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23Nuvolari ha scritto ...It's the whole code... Unless path is still wrong, I cannot understand, I've successfully compiled one right now, with wPP icon Paths:x-compiler.au3 -> _source folder - CORRECTx-icon.ico -> _source\graphics (btw, you should see it) - CORRECTx-YourCompiledApp.exe -> appears in _source folder - CORRECT - but, without icon. Also, no matter what I name it, it always has the name x-compiler.exe?Last difference may be my old SciTe version (1.79) but it should not matter... Could it be my installation? What if I sent it to you as well as my X-Launcher source so you can check it? would you mind?Are there any plugins or something that could be missing from my portable installation?Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00Nuvolarisl23 ha scritto ...Could it be my installation? What if I sent it to you as well as my X-Launcher source so you can check it? would you mind?Are there any plugins or something that could be missing from my portable installation? What about if I give mine to you? If 'ok' I will upload it somewhere and give you the link in pm. In italian we say "tagliamo la testa al toro"Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23Ok that would make sense. Please PM me the link.Thanks Nuvolari for your helpRe: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00NuvolariDone!Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23Some success at last, but...I've extracted the zip, then run SCiTe, after opening your supplied x-compiler.au3 v1.5.4 source, I then clicked Tools/Compile and I got a window never seen before called: AutoIt3Wrapper GUI to Compile AutoIt3 Script (v2.0.1.24) So, obviously something's missing from my setup.A quick File Properties comparison against my install and yours reveals: Size: 18.7MB/28.9MB
Files: 2136/2319
Folders: 28/59 I had a quick look at what's in the folders and it seems to be SCiTe is short is missing a great deal of files. What is it that needs to downloaded to complete the install? Did you simply download it as is or have you d/l extras for using SCiTe?So... from here I decided to compile. The X-Launcher.exe was created successfully with icon and correct name.Next I tried swapping the default icon for my own. But, this is odd, it created a new X-Launcher.exe, I deleted the previous one btw, but the icon still showed as wPP icon???I moved the newly created X-Launcher.exe w/modified icon to a new location and it showed the correct icon???I then tried moving the X-Launcher back to it's original location and it showed the wPP icon again??? I assume windows is somehow making a cache of this file in this location and using the icon previously made over the built in one? Very strange! Why though would windows do this to an exe containing icons?EDIT:Ah! Ok, I just noticed I hadn't d/l the actual SCiTe package. I assumed the AutoIt3.zip was the complete installation including SCiTe, but I checked the website and after d/l the SCiTe package, I can see it contains the missing files!!!RIGHT!! Now... I attempt a compile using your supplied source with a fresh AutoIt3/SCiTe install, and... I keep getting errors:: ;===============================================================================
;
; Function Name: _Download()
; Description: For JavaGet: downloads Java setup into predefined folder
;
;===============================================================================
Func _Download($sURL, $sDest, $iLang, $iMinByte = 1)
; Global $aMessage, $iLang
If StringInStr(FileGetAttrib($sDest), 'D', 2) <> 0 Then Return SetError(1, 0, 0)
Local $aPath = StringRegExp($sDest, "^(.*?)[\\/]?([^\\/]+)$", 1)
If @error Then Return SetError(2, 0, 0)
If Not FileExists($aPath[0]) Then DirCreate($aPath[0])
Local $iSize = InetGetSize($sURL)
If @error Then Return SetError(3, 0, 0)
If $iSize < $iMinByte Then Return SetError(4, 0, 0)
InetGet($sURL, $sDest & '.part', 1, 1)
Local $iCount = 0
While @InetGetActive
error: undefined macro: <---------------------------
$iCount = Round(@InetGetBytesRead / $iSize * 100, 0)
error: undefined macro: <---------------------------
TrayTip($aMessage[6][$iLang], $iCount & "%", 10, 16)
Sleep(250)
WEnd
If @InetGetBytesRead = -1 Then Return SetError(5, 0, 0)
error: undefined macro: <---------------------------
If @InetGetBytesRead <> $iSize Then Return SetError(6, 0, 0)
error: undefined macro: <---------------------------
FileMove($sDest & '.part', $sDest, 1)
Return 0
EndFunc ;==>_Download And...: ;===============================================================================
;
; Function Name: _TrayTipOn()
; Description: Shows a nice tray tip while starting the file to run
; Requirements:
;
;===============================================================================
Func _TrayTipOn($title, $time)
TraySetState()
TrayTip($title, "Software made portable with winPenPack Technology" & @CRLF & "http://www.winpenpack.com", 3, 1+16)
AdlibEnable("_TrayTipOff", $time)
error: AdlibEnable(): undefined function. <---------------------------
Return True
EndFunc ;==>_SplashScreen
;===============================================================================
;
; Function Name: _TrayTipOff()
; Description: Turn TrayTip Off
; Requirements:
;
;===============================================================================
Func _TrayTipOff()
TraySetState(2)
AdlibDisable()
error: AdlibDisable(): undefined function. <---------------------------
EndFunc ;==>_SplashScreenOff Log (May contain previous attempts running from different locations):: >"D:\MyApps\Documents\- TEST -\autoit-v3\install\SciTe\..\AutoIt3.exe" "D:\MyApps\Documents\- TEST -\autoit-v3\install\SciTe\AutoIt3Wrapper\AutoIt3Wrapper.au3" /ShowGui /prod /in "D:\MyApps\Documents\- TEST -\X-Launcher\AUTO_IT\AutoIt3 3.2.12.1 (SciTe 1.79) Nuvolari\X-Launcher_1.5.4\_source\x-compiler ORIG.au3"
+>16:34:56 Starting AutoIt3Wrapper v.15.920.938.0 SciTE v.3.6.0.0 Keyboard:00000809 OS:WIN_10/ CPU:X64 OS:X64 Environment(Language:0809)
+> SciTEDir => D:\MyApps\Documents\- TEST -\autoit-v3\install\SciTe UserDir => D:\MyApps\Documents\- TEST -\autoit-v3\install\SciTe\AutoIt3Wrapper
- Skipping #AutoIt3Wrapper_UseAnsi directive because ANSI is not supported anymore.
-> No changes made..
>Running AU3Check (3.3.14.2) from:D:\MyApps\Documents\- TEST -\autoit-v3\install input:D:\MyApps\Documents\- TEST -\X-Launcher\AUTO_IT\AutoIt3 3.2.12.1 (SciTe 1.79) Nuvolari\X-Launcher_1.5.4\_source\x-compiler ORIG.au3
"D:\MyApps\Documents\- TEST -\X-Launcher\AUTO_IT\AutoIt3 3.2.12.1 (SciTe 1.79) Nuvolari\X-Launcher_1.5.4\_source\x-udf.au3"(938,22) : error: undefined macro.
While @InetGetActive
~~~~~~~~~~~~~~~~~~~~^
"D:\MyApps\Documents\- TEST -\X-Launcher\AUTO_IT\AutoIt3 3.2.12.1 (SciTe 1.79) Nuvolari\X-Launcher_1.5.4\_source\x-udf.au3"(939,37) : error: undefined macro.
$iCount = Round(@InetGetBytesRead /
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\MyApps\Documents\- TEST -\X-Launcher\AUTO_IT\AutoIt3 3.2.12.1 (SciTe 1.79) Nuvolari\X-Launcher_1.5.4\_source\x-udf.au3"(943,23) : error: undefined macro.
If @InetGetBytesRead =
~~~~~~~~~~~~~~~~~~~~~^
"D:\MyApps\Documents\- TEST -\X-Launcher\AUTO_IT\AutoIt3 3.2.12.1 (SciTe 1.79) Nuvolari\X-Launcher_1.5.4\_source\x-udf.au3"(944,23) : error: undefined macro.
If @InetGetBytesRead <>
~~~~~~~~~~~~~~~~~~~~~^
"D:\MyApps\Documents\- TEST -\X-Launcher\AUTO_IT\AutoIt3 3.2.12.1 (SciTe 1.79) Nuvolari\X-Launcher_1.5.4\_source\x-udf.au3"(1242,34) : error: AdlibEnable(): undefined function.
AdlibEnable("_TrayTipOff", $time)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\MyApps\Documents\- TEST -\X-Launcher\AUTO_IT\AutoIt3 3.2.12.1 (SciTe 1.79) Nuvolari\X-Launcher_1.5.4\_source\x-udf.au3"(1255,15) : error: AdlibDisable(): undefined function.
AdlibDisable()
~~~~~~~~~~~~~^
D:\MyApps\Documents\- TEST -\X-Launcher\AUTO_IT\AutoIt3 3.2.12.1 (SciTe 1.79) Nuvolari\X-Launcher_1.5.4\_source\x-compiler ORIG.au3 - 6 error(s), 0 warning(s)
!>16:34:58 AU3Check ended. Press F4 to jump to next error.rc:2
+>16:34:58 AutoIt3Wrapper Finished.
>Exit code: 2 Time: 2.274 Here's how I set up:1. d/l & extract these:AutoIt3Portable– Self Extracting ArchiveAutoIt Script Editor2. Copy the SCiTe editor package to the SCiTe folder of AutoIt3, without overwriting existing files.3. Recopied SCiTe editor package to the SCiTe folder of AutoIt3, but this time, overwriting the existing files.Before overwriting and after caused the same errors.Also, why is the source you supplied different from the source available on the website? Specifically the x-compiler.au3, not sure of other files. Is it simply a newer version of X-Launcher?Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00NuvolariWhat does it happen if you use 'only' my zip? Does it work?The differences with websites must be because mine is an old version, both of AutoIt3 and SciTe, but if it works... sl23 ha scritto ...So... from here I decided to compile. The X-Launcher.exe was created successfully with icon and correct name.Next I tried swapping the default icon for my own. But, this is odd, it created a new X-Launcher.exe, I deleted the previous one btw, but the icon still showed as wPP icon???I moved the newly created X-Launcher.exe w/modified icon to a new location and it showed the correct icon??? This may be the weird result of using Resource Hacker in the past, guessing you are testing with the same exe as RH, am I right? Unfortunately I don't know how to "clean" the icon, the cache or whatever.If you use new (name.)exe it should work properly...P.S.: the X-launcher in my zip is the latest 1.5.4, it should be exactly the same linked in wPP website (more or less...)Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23I'll test a bit more, but, yes yours worked when I tested yesterday.Are you saying X-Launcher must be compiled with older versions of AutoIt/SciTe?I tried cleaning with CCleaner but to no avail!Thing is, although they're the same X-Launcher.exe name, they're in a different location, which seems to make a difference even with RH.The code you supplied is different from the download:Yours: #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=graphics\x-icon.ico
#AutoIt3Wrapper_outfile=X-Launcher.exe
#AutoIt3Wrapper_UseUpx=N
#AutoIt3Wrapper_UseX64=N
#AutoIt3Wrapper_Res_Comment=X-Launcher allows you to change at will the options for initiating programs undertaken in order to make them portable.
#AutoIt3Wrapper_Res_Description=X-Launcher - The Universal Launcher!
#AutoIt3Wrapper_Res_Fileversion=1.5.4.0
#AutoIt3Wrapper_Res_LegalCopyright=GNU General Public License
#AutoIt3Wrapper_Res_Language=1040
#AutoIt3Wrapper_Res_Field=ProductName|winPenPack X-Launcher
#AutoIt3Wrapper_Res_Field=ProductVersion|1.5.4
#AutoIt3Wrapper_Res_Field=OriginalFilename|X-Launcher.exe
#AutoIt3Wrapper_Res_Field=InternalName|X-Launcher
#AutoIt3Wrapper_Res_Field=CompanyName|www.winpenpack.com
#AutoIt3Wrapper_Res_Field=Authors|tittoproject - winPenPack Team & winPenPack community
#AutoIt3Wrapper_Res_Field=LegalTrademarks|winPenPack
#AutoIt3Wrapper_Res_Field=eMail|winpenpack@gmail.com
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
; winPenPack X-Launcher
#Region
;** AUT2EXE settings
;** AUTOIT3 settings
#AutoIt3Wrapper_UseAnsi=Y ;(Y/N) Use Ansi versions for AutoIt3a or AUT2EXEa. Default=N
#AutoIt3Wrapper_Run_Debug_Mode=N ;(Y/N)Run Script with console debugging. Default=N
;** Target program Resource info
#EndRegion
;** Include X-Launcher's source code
#include 'x-launcher.au3'
#include 'files\x-install.au3' Mine, from wPP site: ; winPenPack X-Launcher
#Region
;** AUT2EXE settings
#AutoIt3Wrapper_OutFile=X-Launcher.exe ;Target exe/a3x filename.
#AutoIt3Wrapper_OutFile_Type=exe ;a3x=small AutoIt3 file; exe=Standalone executable (Default)
#AutoIt3Wrapper_Icon=graphics\x-icon.ico ;Filename of the Ico file to use
#AutoIt3Wrapper_Compression=2 ;Compression parameter 0-4 0=Low 2=normal 4=High. Default=2
#AutoIt3Wrapper_UseUpx=N ;(Y/N) Compress output program. Default=Y
;** AUTOIT3 settings
#AutoIt3Wrapper_UseAnsi=Y ;(Y/N) Use Ansi versions for AutoIt3a or AUT2EXEa. Default=N
#AutoIt3Wrapper_UseX64=N ;(Y/N) Use X64 versions for AutoIt3_x64 or AUT2EXE_x64. Default=N
#AutoIt3Wrapper_Version=P ;(B/P) Use Beta or Production for AutoIt3 and AUT2EXE. Default is P
#AutoIt3Wrapper_Run_Debug_Mode=N ;(Y/N)Run Script with console debugging. Default=N
;** Target program Resource info
#AutoIt3Wrapper_Res_Field=ProductName|winPenPack X-Launcher
#AutoIt3Wrapper_Res_Field=ProductVersion|1.5.4
#AutoIt3Wrapper_Res_Field=OriginalFilename|X-Launcher.exe
#AutoIt3Wrapper_Res_Field=InternalName|X-Launcher
#AutoIt3Wrapper_Res_Description=X-Launcher - The Universal Launcher!
#AutoIt3Wrapper_Res_Field=CompanyName|www.winpenpack.com
#AutoIt3Wrapper_Res_Field=Authors|tittoproject - winPenPack Team & winPenPack community
#AutoIt3Wrapper_Res_Fileversion=1.5.4
#AutoIt3Wrapper_Res_Comment=X-Launcher allows you to change at will the options for initiating programs undertaken in order to make them portable.
#AutoIt3Wrapper_Res_LegalCopyright=GNU General Public License
#AutoIt3Wrapper_Res_Field=LegalTrademarks|winPenPack
#AutoIt3Wrapper_Res_Language=1040 ;Resource Language code . default 2057=English (United Kingdom)
#AutoIt3Wrapper_Res_Field=eMail|winpenpack@gmail.com
#AutoIt3Wrapper_Res_RequestedExecutionLevel=None ;None, asInvoker, highestAvailable or requireAdministrator (default=None)
#EndRegion
;** Include X-Launcher's source code
#include 'x-launcher.au3'
#include 'files\x-install.au3' Perhaps this is just the code telling AutoIt how to make the X-Launcher.exe? and therefore isn't important that it differs?Btw, What are the reasons for the two x-compiler.au3? x-compiler ORIG.au3 and x-compiler PERS.exe, PERS = personal?Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00NuvolariYes, PERS and ORIG are mine where PERS = personal and ORIG simply a backup of the original one, guessing it's identical to x.compiler.au3About differences I can't explain that, perhaps my stored 1.5.4 is the very first one which have been modified 'later' (but always 1.5.4). Or I took mine from an older version, I cannot remember.In any case they look very similar ('exe' output and 'production' version just better specified, only difference is compression mode) and both working: I have just successfully tested "from WPP site" codeRe: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23Hi, sorry for the delayed reply, been preoccupied with other stuff.I tested your supplied AutoIt again. This time I first tested a compile with your (x-compile ORIG.au3) source, but this gave me error's regarding Java and then after clicking all windows I got an exe without icon again.Then I tested your AutoIt with a downloaded source and I got no errors and an exe containing the wPP icon. So far so good.Next, I tried compiling again, but I changed all references to wPP and X-Launcher to the AppName as well as changing the icon in the graphics folder...SUCCESS!!! Everything worked, now for a quick test to see if this newly created Launcher does the job!AARRGGHH!! I cut/pasted the launcher to the app folder, icon fine, renamed Launcher to AppName.exe lose icon! Starts app fine though. Rename back to original name, icon appears. In fact, ANY name shows compiled icon except the actual AppName.exe?! Somehow, it seems, windows has cached the icons for exe's.EDIT: AHA! I did a search for Win10 icon cache and came up with this. Basically Windows 10 has an IconCache.db file in AppData/Local, delete this file to force windows to rebuild the icon cache, problem sorted!!! I hope!So I assume I cannot use any further updates to AutoIt then due to these errors? I always keep apps up to date, does it matter with AutoIt? Is there a chance of bugs using older versions?Thanks so much for your help and patience, you've been greatRe: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00Nuvolarisl23 ha scritto ...EDIT: AHA! I did a search for Win10 icon cache and came up with this. Basically Windows 10 has an IconCache.db file in AppData/Local, delete this file to force windows to rebuild the icon cache, problem sorted!!! I hope! Yeah, this should be the trick, soon or later I will fix it too but I'm quite lazy and all in all my test was very conservative sl23 ha scritto ...So I assume I cannot use any further updates to AutoIt then due to these errors? I always keep apps up to date, does it matter with AutoIt? Is there a chance of bugs using older versions? You may try to upgrade step-by-step, I mean, starting from my version and using a working configuration you may change (1) x.compiler.au3 settings, (2) SciTe inside, then (3) AutoIt, or vice versa starting from the latest AutoIt instead.sl23 ha scritto ...Thanks so much for your help and patience, you've been great It was a pleasureRe: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23So, I could just use RH instead then? Seems a bit overkill using AutoIt just to change icon and text!Nuvolari ha scritto ...soon or later I will fix it tooAre you a developer for wPP or X-Launcher by any chance?Re: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00Nuvolarisl23 ha scritto ...So, I could just use RH instead then? Seems a bit overkill using AutoIt just to change icon and text! Hmm... I think RH may have some kind of incompatibility with the latest Windows OS, I would overkill! sl23 ha scritto ...Are you a developer for wPP or X-Launcher by any chance? No, I'm not. I was talking about my IconCache.db which is only 'slightly' buggedRe: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00sl23Nuvolari ha scritto ...sl23 ha scritto ...So, I could just use RH instead then? Seems a bit overkill using AutoIt just to change icon and text! Hmm... I think RH may have some kind of incompatibility with the latest Windows OS, I would overkill! sl23 ha scritto ...Are you a developer for wPP or X-Launcher by any chance? No, I'm not. I was talking about my IconCache.db which is only 'slightly' bugged Ah, ok, I'll stick with AutoIt then!Thanks again for your invaluable helpRe: Changing X-Launcher icons
http://www.winpenpack.com/main/e107_plugins/forum/forum_viewtopic.php?60903
2024-03-29T07:05:28+01:00Nuvolarisl23 ha scritto ...Thanks again for your invaluable help