Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
May 29, 2021, 06:16:20 AM
Home
Forum Rules
Active Topics
Login
Register
Project World
»
Win10XPE HomePage
(Moderator:
ChrisR
) »
shortcut icon problem
« previous
next »
Print
Pages: [
1
]
Topic: shortcut icon problem (Read 410 times)
shortcut icon problem
«
on:
February 05, 2020, 03:52:48 PM »
darthyoda
Apprentice
Date Registered: Jan 2019
Posts: 5
Hi, I'm not sure what I'm doing wrong.
I'm modifying the Paragon Disk Manager Suite 15 icon to change the shortcut for the main program. The plugin defaults to explauncher.exe as the main program, but it's just a menu for the different parts of the suite. explauncher.exe also has no icon. I prefer to use launcher.exe which goes into the main program. The exe also has no icon, but there's a launcher.ico in the same directory. I changed the %ProgramExe% variable to launcher.exe, and it creates a working shortcut for that. The problem is adding the icon to the shortcut.
I've moddified add_shortcuts to
Code:
[Select]
If,%Desktop_CheckBox%,Equal,True,AddShortcut,Desktop,,,,launcher.ico
If,%StartMenu_CheckBox%,Equal,True,AddShortcut,StartMenu,,,,%PE_Programs%\%ProgramFolder%\launcher.ico
to try 2 different ways of creating the icon. In the system32\pecmd.ini it's generating
Code:
[Select]
LINK %Programs%\HD Tasks\Paragon Hard Drive Manager 15 Suite,Y:\Programs\PHDM\launcher.exe,Y:\Programs\PHDM\launcher.ico
LINK %Desktop%\Paragon Hard Drive Manager 15 Suite,Y:\Programs\PHDM\launcher.exe,launcher.ico
But for the actual shortcuts in PE, it's putting the .ico as a parameter to the exe, not as the icon for the exe., so the desktop shortcut target reads as
Code:
[Select]
Y:\Programs\PHDM\launcher.exe launcher.ico
Re: shortcut icon problem
«
Reply #1 on:
February 05, 2020, 05:26:40 PM »
James
Grand Chef
Location: USA
Date Registered: Dec 2017
Posts: 2272
Code:
[Select]
AddShortcut,Desktop,,%PE_Programs%\%ProgramFolder%\%programExe%,Paragon Disk Manager,,%PE_Programs%\%ProgramFolder%\launcher.ico
AddShortcut,StartMenu,Paragon,%PE_Programs%\%ProgramFolder%\%programExe%,Paragon Disk Manager,,%PE_Programs%\%ProgramFolder%\launcher.ico
Re: shortcut icon problem
«
Reply #2 on:
February 05, 2020, 06:47:44 PM »
darthyoda
Apprentice
Date Registered: Jan 2019
Posts: 5
Thanks. I can't try the new iso till tonight, but I see in the pecmd.ini it's adding an extra comma before the ico path.
One weird side affect with the Paragon DM 15 suite, when I run launcher.exe from the iso in virtualbox, it cause the "cd" to be ejected in VirtualBox and quits running. But when I run it from a usb stick, the exe runs fine and the Disk Manager program loads up.
Re: shortcut icon problem
«
Reply #3 on:
February 05, 2020, 07:02:14 PM »
APT
Grand Chef
winpe enthusiast
Location: UK
Date Registered: Nov 2012
Posts: 1150
Hi
you could also try something similar to
http://theoven.org/index.php?topic=2488.msg35293#msg35293
Re: shortcut icon problem
«
Reply #4 on:
February 06, 2020, 12:59:22 PM »
sandy
Jr. Chef
Date Registered: Oct 2018
Posts: 49
Dont_Eject command line parameter works with some version
Re: shortcut icon problem
«
Reply #5 on:
February 06, 2020, 01:13:52 PM »
sandy
Jr. Chef
Date Registered: Oct 2018
Posts: 49
Code:
[Select]
AddShortcut,Desktop,,%PE_Programs%\%ProgramFolder%\%programExe%,Paragon Disk Manager,Dont_Eject,%PE_Programs%\%ProgramFolder%\launcher.ico
AddShortcut,StartMenu,Paragon,%PE_Programs%\%ProgramFolder%\%programExe%,Paragon Disk Manager,Dont_Eject,%PE_Programs%\%ProgramFolder%\launcher.ico
Re: shortcut icon problem
«
Reply #6 on:
February 06, 2020, 04:37:40 PM »
darthyoda
Apprentice
Date Registered: Jan 2019
Posts: 5
I haven't tried don't eject yet, but that definitely fixed the icon problem without editing the exe file.
Re: shortcut icon problem
«
Reply #7 on:
February 06, 2020, 11:13:41 PM »
Malok
Chef
Location: Canada
Date Registered: Aug 2016
Posts: 202
I don't remember how I discovered that but...
I went around this "eject" problem by creating my own launcher
What it does...
Delete MiniNT registry key.
Run Launcher.exe
Creates MiniNT key.
This works for me with since 2013, surely works with 15 too.
It needs to be in the same folder as the other launchers.
Or you can make your own easily.
It's a x86 executable, I use for my x86 and x64 builds.
Once working in your PE, Configure HDM as you like and save the settings.xml located in same directory.
Then add it back in you script to overwrite the original with ,NoWarn and tadam... Fully configured HDM every boot
If you use Your_Launcher.exe directly as %ProgramEXE% when Creating your plugin... the Shortcuts are all created properly with standard syntax.
Code:
[Select]
AddShortcut,Desktop
Addshortcut,Startmenu,%StartMenufolder_TextBox%
If you want to change the icon...
Code:
[Select]
AddShortcut,Desktop,,,,,icon.ico
Addshortcut,Startmenu,%StartMenufolder_TextBox%,,,,icon.ico
Icon at 6th comma...
I also added these files...
Code:
[Select]
[AddFiles]
\Windows\System32\lz32.dll
\Windows\System32\wnaspi32.dll
\Windows\System32\msvcp100.dll
\Windows\System32\msvcr100.dll
[AddFiles6432]
\Windows\SysWOW64\lz32.dll
\Windows\SysWOW64\wnaspi32.dll
\Windows\SysWOW64\msvcp100.dll
\Windows\SysWOW64\msvcr100.dll
It's been doing great since.
Thanks Sandy for The dont_eject option... will give it a try.
«
Last Edit: February 06, 2020, 11:14:57 PM by Malok
»
Re: shortcut icon problem
«
Reply #8 on:
February 07, 2020, 12:48:08 AM »
sandy
Jr. Chef
Date Registered: Oct 2018
Posts: 49
Yes if you delete MiniNT registry key first you should not need the dont_eject option. It will also stop it shutting down your PC when it exits.
Re: shortcut icon problem
«
Reply #9 on:
February 07, 2020, 03:57:11 PM »
Malok
Chef
Location: Canada
Date Registered: Aug 2016
Posts: 202
To create a launcher yourself
Create a Cmd file with the following
Code:
[Select]
@Echo off
cd /D "%~dp0"
reg delete HKLM\System\CurrentControlSet\Control\MiniNT /f
Start "HDM15" /WAIT Launcher.exe
reg add HKLM\System\CurrentControlSet\Control\MiniNT
Run the command file in HDM Directory. If it succeed...
Pack to executable with...
https://www.softpedia.com/get/System/File-Management/Batch-To-Exe-Converter.shtml
Select icon, use current directory, Make invisible for your arch...
Re: shortcut icon problem
«
Reply #10 on:
February 07, 2020, 04:10:24 PM »
APT
Grand Chef
winpe enthusiast
Location: UK
Date Registered: Nov 2012
Posts: 1150
Hi Malok
thanks for the info
I'll give it a try
regards APT
Re: shortcut icon problem
«
Reply #11 on:
February 07, 2020, 09:57:21 PM »
APT
Grand Chef
winpe enthusiast
Location: UK
Date Registered: Nov 2012
Posts: 1150
Hi Malok
Quote
I'll give it a try
thanks - works great - no more reboots on exiting prog
edit
add ver4 with these mods to original post below, with option to boot explauncher or launcher and miniNT reg mod.
http://theoven.org/index.php?topic=2607.msg28594#msg28594
thanks to Malok and sandy
«
Last Edit: February 09, 2020, 07:39:13 PM by APT
»
Print
Pages: [
1
]
« previous
next »
Project World
»
Win10XPE HomePage
(Moderator:
ChrisR
) »
shortcut icon problem
Powered by
EzPortal