Topic: Moving "Programs" folder for CD programs  (Read 926 times)

0 Members and 1 Guest are viewing this topic.

Moving "Programs" folder for CD programs
« on: November 19, 2017, 04:20:46 PM »

bob.omb

  • Chef
  • ***
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 321
Is this easily possible, to add a subfolder for better compatibility with multi-boot usb drives? e.g. Instead of -  Programs\  - it would be -  aio\Programs

Also can PeCMDext.ini be moved into the same aio\


Re: Moving "Programs" folder for CD programs
« Reply #1 on: December 31, 2017, 12:30:46 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7781
Hi bob.omb

check
Builds\"CdDrive - X: - Y:" plugin.

Let us know how things works. (not tested for a long while now)

Tip:
First test without subfolder:
ex: Programs -> ProgramsAIO

PS:
You can bump topics if you think they are forgotten after some long time (ex: about a month , like current topic  :thumbsup:) .

bump topic = simply write "bump" and post  :wink:


:turtle:

Re: Moving "Programs" folder for CD programs
« Reply #2 on: December 31, 2017, 07:01:14 PM »

bob.omb

  • Chef
  • ***
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 321
Did not work with most Apps I made with PCPacked. 

However the JavaRE plugin I made works and is redirected correctly. (I have to look at what I did here I'll update you as soon as I know the difference between my PCPacked plugins and the JavaRE plugin...) -->JavaRE http://theoven.org/index.php?topic=2321.0

(Note: This doesn't include the reg keys associated with Java, figuring this out will help me make universal reg keys for plugins if possible which i am looking forward to moving from being able to make plugins "work" to being able to make plugins "correctly")

Example of Redirections that DID and DID NOT work:

Clamwin DOES NOT
BootIce DOES NOT


7Zip DOES
.NET DOES
JavaRE DOES

ila_rendered
Click image to focus..
ila_rendered
« Last Edit: December 31, 2017, 07:19:03 PM by bob.omb »

Re: Moving "Programs" folder for CD programs
« Reply #3 on: January 01, 2018, 03:55:41 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7781
Hi bob.omb

I will test Clamwin and BootIce and see how things goes.

*
I guess you select "Run From CD" on these plugins ?

:turtle:

Re: Moving "Programs" folder for CD programs
« Reply #4 on: January 01, 2018, 03:57:43 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7781
(Note: This doesn't include the reg keys associated with Java, figuring this out will help me make universal reg keys for plugins if possible which i am looking forward to moving from being able to make plugins "work" to being able to make plugins "correctly")

do you mean association or ?

:turtle:


Re: Moving "Programs" folder for CD programs
« Reply #5 on: January 01, 2018, 08:36:14 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7781
Hi bob.omb

For now use "Run From Normal" on BootICE, I guess it will work now ?

I hope this fixes.



Story Behind:
It is about Normal (Default) behaviour of project settings.
SE Normal (Default) behaviour:
SE -> Apps -> Default -> "Run From CD"

At the time "CdDrive - X: - Y:" updated to give the option to rename "Programs"
 It seems it is forgotten to update "Run From CD" on Macro Library since Default Behaviour of SE is "Run From CD"
  ( That is the reason "Run From CD" mostly %99.9 not used by end users)


I need more big time to check and update
"CdDrive - X: - Y:"
"Macro Library"
to support "Run From CD" on changed "Programs" folder name.


I hope "Run From Normal" make things work on your side ?

:turtle:

Re: Moving "Programs" folder for CD programs
« Reply #6 on: January 04, 2018, 01:16:50 PM »

bob.omb

  • Chef
  • ***
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 321
Its not working yet and I will invest time into this (playing with MB3 so I need a solid build for now, but soon) but to other builders....

I have a weird side effect, shortcut icons are no longer working even after changing things back.  Shortcuts are clickable but the icon does not show and when the icon button is pressed in the properties window it says the path is invalid? even though the shortcut works... its strange.. 

Maybe plugincache stores some of the changes and effects the build? Not sure but restoring my builder from a backup to conserve time for the short term.  Will revisit with more tests soon.. Until then proceed with caution testing this option...


**New thread opened...for other issue..
« Last Edit: January 05, 2018, 06:31:33 PM by bob.omb »

Re: Moving "Programs" folder for CD programs
« Reply #7 on: January 05, 2018, 06:33:46 PM »

bob.omb

  • Chef
  • ***
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 321
do you mean association or ?

:turtle:

No i meant %PE_Programs%\%ProgramFolder% instead of Y:\Programs\JavaRE7r80\bin\javacpl.exe for plugin registry keys... to break hardcode and make correctly..

Re: Moving "Programs" folder for CD programs
« Reply #8 on: January 05, 2018, 09:20:30 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7781
Hi bob.omb,

you need some experience :

there are some registry that you have to write with 0x1 -> where you can not use %PE_Programs%\%ProgramFolder%
and there are some registry that you can convert to 0x2 -> where you can use %PE_Programs%\%ProgramFolder%

file associations are good examples.
ps:
Check 7z plugin file association.
and compare with your host registry
You will notice they are converted to 0x2
reason behind:
Windows accepts 0x2 on file associations.

but things not easy as converting 0x1 to 0x2 and write %PE_Programs%\%ProgramFolder%
sometimes it have to be 0x1 with hardcoded path

For such cases, there is
RegAddBoot,
syntax (check inside plugins)
It is similar to RegWrite, but it creates registry after boot (before shell - after Y: assigned)

with RegAddBoot you can use %PE_Programs%\%ProgramFolder% to create 0x1 registry
...

check existing plugins on projects, It is easy but requires some practice.

*
After you figure out :
About java:
If you can convert to 0x2 and java plugin works fine, than all ok
if something fails test lines with RegAddBoot
in the end you will get a plugin having all written with variables like %PE_Programs%\%ProgramFolder%

ex:
there is old java plugin on server
ex:
I guess Chrome plugin by 2aCD also had similar tricks
etc.

:turtle:

 

Powered by EzPortal