Jump to content











Photo
* * * * * 1 votes

nativeEx_Win7


  • Please log in to reply
216 replies to this topic

#26 Virtual-R

Virtual-R

    Frequent Member

  • Advanced user
  • 145 posts
  • Location:Stockholm, Sweden
  •  
    Sweden

Posted 01 December 2009 - 02:25 PM

I am trying the suggestion that Dera gave at the moment, and will soon post back the results.

Meanwhile, here is the log (before Deras suggestion) on a non-working plugin:

Attached Files

  • Attached File  log.html   39.25KB   837 downloads


#27 Virtual-R

Virtual-R

    Frequent Member

  • Advanced user
  • 145 posts
  • Location:Stockholm, Sweden
  •  
    Sweden

Posted 01 December 2009 - 02:37 PM

Dera is absolutely right!

When adding RunFromRam,True under process all of my plugins starts to show up correctly and works in the startmenu!!!

Thank you EVERYBODY that answerd my question.

Hmm, this is a bug, right. ? Wonder if it's possible to fix it somehow.

#28 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 01 December 2009 - 02:54 PM

Hmm, this is a bug, right. ? Wonder if it's possible to fix it somehow.


@Peter

please check preloader of jonf here , maybe it helps (maybe not... you know I do not know pe2/3 stuff well)

#29 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 01 December 2009 - 04:38 PM

The issue can be fixed by adding the ShortcutEx.Script to the build.
It duplicates some nativeEx_barebone shortcut functionality into this project.
The script can be downloaded by WinBuilder's download center.

This script causes during boot time a solution of the environment variables, and a proof / correction of the shortcuts.

I tested with the Win7RescuePE app SumatraPDF, and it works with "Run From RAM" checked AND unchecked.

Two issues:
  • I had to debug the script and change

    If,%pCheckBox1%,Equal,True,Add_Shortcut,Desktop
    If,%pCheckBox2%,Equal,True,Add_Shortcut,StartMenu,%pTextBox1%
    If,%pCheckBox3%,Equal,True,Add_Shortcut,QuickLaunch

    To

    If,%pCheckBox3%,Equal,True,Add_Shortcut,Desktop
    If,%pCheckBox2%,Equal,True,Add_Shortcut,StartMenu,%pTextBox1%
    If,%pCheckBox4%,Equal,True,Add_Shortcut,QuickLaunch

  • Generally the PE has no Quicklaunch bar, therefore there nothing can appear. But that is an issue of the Win7RescuePE project.
Another issue (also not by nativeEx_Win7): All Shortcuts have as Tooltip "Joshuas Shortcut Builder"

In the near future I'm going to build the established (XP World) nativeEx shortcut mechanism into this project.

Peter

#30 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 01 December 2009 - 09:43 PM

anyone has success with ShortcutEx.Script?
i have no luck neither with shortcuts neither with %cddrive%

#31 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 01 December 2009 - 09:53 PM

I don't know what has been changed but I get an error and can't finalize my build
(Shell & Config) Run - Failed to find section [german] in file: [%BaseDir%\Projects\nativeEx_Win7\locale.script]
I have the file locale.Link in my nativeEx_Win7-dir that points to the file in the Win7RescuePE-dir...

#32 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 02 December 2009 - 08:46 AM

I don't know what has been changed but I get an error and can't finalize my build

(Shell & Config) Run - Failed to find section [german] in file: [%BaseDir%\Projects\nativeEx_Win7\locale.script]
I have the file locale.Link in my nativeEx_Win7-dir that points to the file in the Win7RescuePE-dir...

Sorry, one unchanged Variable ...

Download script.project again.

Peter

#33 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 02 December 2009 - 09:45 AM

i think '\Microsoft\Windows\CurrentVersion\RunOnceEx' doesn't work in Win7RescuePE

#34 Virtual-R

Virtual-R

    Frequent Member

  • Advanced user
  • 145 posts
  • Location:Stockholm, Sweden
  •  
    Sweden

Posted 02 December 2009 - 09:58 AM

Dera, for me, ShortCutsEx also did not fix the problem. Still only when adding RunFromRam,True I can get all of the plugins to work correctly.

#35 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 02 December 2009 - 10:06 AM

i think '\Microsoft\Windows\CurrentVersion\RunOnceEx' doesn't work in Win7RescuePE

See here:
http://support.micro...n...mp;x=12&y=4

Applies also to win7

Peter

#36 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 02 December 2009 - 10:16 AM

ok, the shortcuts do not work for me neither

#37 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 02 December 2009 - 10:22 AM

I try to find out why they work for me.

Peter

#38 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 02 December 2009 - 10:46 AM

See here:
http://support.micro...n...mp;x=12&y=4

Applies also to win7

Peter

i cannot see 'Win7RescuePE' WinBuilder Project is mentioned at the 'APPLIES TO' section

p.s.
but seriously
i have that feeling somehow the 'RunOnceEx' currently does not work in 7PE or WIN7PE projects (neither in VistaPE)

#39 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 02 December 2009 - 01:51 PM

I try to find out why they work for me.

Peter

There was another bug in the script where I tested with. :clap:

RunfromRAM,%pCheckBox4%

should be

RunfromRAM,%pCheckBox1%

After fixing:
In case of "Run From RAM" unchecked, The shortcut does not work, even with ResShort.Script.

I try to find a solution.

Peter

#40 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 03 December 2009 - 04:55 PM

Working now! :clap:

Please download ShortcutsEx.Script and test.

What is done:
The new program fixShort.exe is started by WinPEShl.ini entry.
  • TXTAddLine,%TargetDir%\windows\system32\winpeshl.ini,"fixShort.exe#$c CDDrive:Win7PE.cfg",PLACE,2
    • detects the boot CD drive (maybe also USB) by searching for the key file Win7PE.cfg
    • Inserts the drive letter as %CDDrive% into the environment
    • Edits Win7PE.cfg and replaces %CDDrive% by the drive letter
  • TXTAddLine,%TargetDir%\windows\system32\winpeshl.ini,"shortcuts.exe#$c #$q-f #$pSystemDrive#$p\Win7PE.cfg#$q",PLACE,3
    • Builds the shortcuts following Win7PE.cfg
Peter

#41 patsch

patsch

    Silver Member

  • Advanced user
  • 785 posts
  •  
    Germany

Posted 03 December 2009 - 05:18 PM

first try: works like a charm. Great work psc! :clap:

#42 Virtual-R

Virtual-R

    Frequent Member

  • Advanced user
  • 145 posts
  • Location:Stockholm, Sweden
  •  
    Sweden

Posted 04 December 2009 - 08:45 AM

First try for me: Works with about 90% of all the programs that didn't show up before, GREAT work!

I will investigate why some of my programs still doesnt work, and get back to you. (Those programs also worked before, so either some commands still are not supported, or my plugins are badly written)

Thanks ALOT Peter, GREAT WORK!

#43 Virtual-R

Virtual-R

    Frequent Member

  • Advanced user
  • 145 posts
  • Location:Stockholm, Sweden
  •  
    Sweden

Posted 04 December 2009 - 08:59 AM

Only 2 programs doesn't show up now, they both have the same shortcut-codes.
The lines that are interesting from those scripts are the following:

[codebox] [main] Title=Documentation for Raid Reconstructor Description=Complete manual for Raid Reconstructor Selected=True Level=5 Version=1 [variables] %ProgramTitle%=Raid Reconstructor %ProgramEXE%=RRD.pdf %ProgramFolder%=Documentation\RRD [Process] Unpack run,%ScriptFile%,ShortCuts [ShortCuts] Add_Shortcut,StartMenu,Documentation,"%PE_Programs%\Accessories\SumatraPDF\SumatraPDF.exe",,," %PE_Programs%\%ProgramFolder%\%ProgramEXE%" [EncodedFolders] Folder [/codebox] Win7PE.cfg shows: [codebox] Documentation|Raid Reconstructor|%CDDrive%\Programs\Accessories\SumatraPDF\SumatraPDF.exe|| %CDDrive%\Programs\Documentation\RRD\RRD.pdf [/codebox]
I can confirm that all the programs are in the right folders too.
Also, they work if I build without nativeex.
Any ideas? Shall I change those lines in any way?

#44 dera

dera

    Gold Member

  • .script developer
  • 1335 posts
  •  
    Hungary

Posted 04 December 2009 - 09:58 AM

Full Syntax="//Add_Shortcut,Type,StartMenuFolder,(path\)FileName,Title,Work Folder,Parameters,(path\)IconFile#$cIconIndex,StartMode=(1,2,3),ToolTipText(only LiveXP)"

are you sure about the syntax of your 'Add_Shortcut' script line is correct?

and don't use spaces between the Quote mark and the Percentagle mark

#45 Virtual-R

Virtual-R

    Frequent Member

  • Advanced user
  • 145 posts
  • Location:Stockholm, Sweden
  •  
    Sweden

Posted 04 December 2009 - 10:08 AM

My Fault totally! Maybe I missed a " in a line.

Wrong line:

[ShortCuts]
Add_Shortcut,StartMenu,Documentation,"%PE_Programs%\Accessories\SumatraPDF\SumatraPDF.exe",,," %PE_Programs%\%ProgramFolder%\%ProgramEXE%"

Correct line:

[ShortCuts]
Add_Shortcut,StartMenu,Documentation,"%PE_Programs%\Accessories\SumatraPDF\SumatraPDF.exe",,," "%PE_Programs%\%ProgramFolder%\%ProgramEXE%"

I missed " after %PE_Programs.

Sorry for bothering you!!!

Everything works PERFECT now, thank you everybody!

#46 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 04 December 2009 - 10:11 AM

I'm not sure.
Now you have 5 quotes, tht is unpaired.

I asssume the bad boy is the space behind quote #3 (see dera's post above).

Peter

#47 Virtual-R

Virtual-R

    Frequent Member

  • Advanced user
  • 145 posts
  • Location:Stockholm, Sweden
  •  
    Sweden

Posted 04 December 2009 - 10:14 AM

The weird thing is, that it works now!

I will now try without the RunFromRam-parameter, and if it does'nt work, I will kill the space

#48 Virtual-R

Virtual-R

    Frequent Member

  • Advanced user
  • 145 posts
  • Location:Stockholm, Sweden
  •  
    Sweden

Posted 04 December 2009 - 10:38 AM

@Peter: You were right and I was wrong. I removed both the extra quote and the space, and now it works comepletly

So, the correct line (and this time I mean it) that works looks like this:

[ShortCuts]
Add_Shortcut,StartMenu,Documentation,"%PE_Programs%\Accessories\SumatraPDF\SumatraPDF.exe",,,"%PE_Programs%\%ProgramFolder%\%ProgramEXE%"

You guys are heros! Thanks for all your help! This project really makes building a snap since it takes far shorter time to build with.

#49 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 04 December 2009 - 03:18 PM

@Peter

You know I try to write app scripts as compatible as i can, since i notice you did not complain about the quotes at

So, the correct line (and this time I mean it) that works looks like this:

[ShortCuts]
Add_Shortcut,StartMenu,Documentation,"%PE_Programs%\Accessories\SumatraPDF\SumatraPDF.exe",,,"%PE_Programs%\%ProgramFolder%\%ProgramEXE%"


Peter, Should'nt it be better not using quotes
Add_Shortcut,StartMenu,Documentation,%PE_Programs%\Accessories\SumatraPDF\SumatraPDF.exe,,,%PE_Programs%\%ProgramFolder%\%ProgramEXE%
or is PE2/3 builds needs quotes for shortcut creation ??

#50 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 04 December 2009 - 03:25 PM

You are right.

BTW: Whenever I change a script and see unnecessary quotes, I remove them.

Peter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users