Meanwhile, here is the log (before Deras suggestion) on a non-working plugin:
nativeEx_Win7
#26
Posted 01 December 2009 - 02:25 PM
Meanwhile, here is the log (before Deras suggestion) on a non-working plugin:
#27
Posted 01 December 2009 - 02:37 PM
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.
#29
Posted 01 December 2009 - 04:38 PM
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
ToIf,%pCheckBox1%,Equal,True,Add_Shortcut,Desktop
If,%pCheckBox2%,Equal,True,Add_Shortcut,StartMenu,%pTextBox1%
If,%pCheckBox3%,Equal,True,Add_Shortcut,QuickLaunch
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.
In the near future I'm going to build the established (XP World) nativeEx shortcut mechanism into this project.
Peter
#30
Posted 01 December 2009 - 09:43 PM
i have no luck neither with shortcuts neither with %cddrive%
#31
Posted 01 December 2009 - 09:53 PM
(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
Posted 02 December 2009 - 08:46 AM
Sorry, one unchanged Variable ...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...
Download script.project again.
Peter
#33
Posted 02 December 2009 - 09:45 AM
#34
Posted 02 December 2009 - 09:58 AM
#35
Posted 02 December 2009 - 10:06 AM
See here:i think '\Microsoft\Windows\CurrentVersion\RunOnceEx' doesn't work in Win7RescuePE
http://support.micro...n...mp;x=12&y=4
Applies also to win7
Peter
#36
Posted 02 December 2009 - 10:16 AM
#37
Posted 02 December 2009 - 10:22 AM
Peter
#38
Posted 02 December 2009 - 10:46 AM
i cannot see 'Win7RescuePE' WinBuilder Project is mentioned at the 'APPLIES TO' sectionSee here:
http://support.micro...n...mp;x=12&y=4
Applies also to win7
Peter
p.s.
but seriously
i have that feeling somehow the 'RunOnceEx' currently does not work in 7PE or WIN7PE projects (neither in VistaPE)
#39
Posted 02 December 2009 - 01:51 PM
There was another bug in the script where I tested with.I try to find out why they work for me.
Peter
should beRunfromRAM,%pCheckBox4%
After fixing:RunfromRAM,%pCheckBox1%
In case of "Run From RAM" unchecked, The shortcut does not work, even with ResShort.Script.
I try to find a solution.
Peter
#40
Posted 03 December 2009 - 04:55 PM
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
#41
Posted 03 December 2009 - 05:18 PM
#42
Posted 04 December 2009 - 08:45 AM
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
Posted 04 December 2009 - 08:59 AM
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
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
Posted 04 December 2009 - 10:08 AM
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
Posted 04 December 2009 - 10:11 AM
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
Posted 04 December 2009 - 10:14 AM
I will now try without the RunFromRam-parameter, and if it does'nt work, I will kill the space
#48
Posted 04 December 2009 - 10:38 AM
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
Posted 04 December 2009 - 03:18 PM
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
Posted 04 December 2009 - 03:25 PM
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