Topic: Few more questions  (Read 4442 times)

Few more questions
« on: January 27, 2016, 08:58:10 PM »

Nikky

  • Chef
  • ***
  • Location: Croatia
  • Date Registered: Jan 2016
  • Posts: 131
Here are a few more questions:

Where has the latest documentation for Winbuilder82 used in Win7PE SE project ?

For now, I use the:
http://wb.paraglidernc.com/Help/
http://ludovici.winbuilder.net/Tools/Help/scripts/script_syntax.html
http://code.google.com/archive/p/winbuilder/wikis
Look / deduce how they other scripts written ...


The main part of the script for one program I solved relatively quickly,
I wanted to make to the script interface to display (detect) the program name and version as it comes in several editions.
That part is not necessary more as an extra feature  :wink:

The first problem was what WB engine has support only for Fileversion and it does not work correctly, at least in my case, returns extra .0 at the end.
AutoIt see and return correctly all "fields", so I made a small FileInfo app in it which gives info thru ini file.
I use this way because ini's are ok supported in WB engine.
When all it's done FileInfo app will be available for community  :smile:

The problem that bothers me is that the TextLabel does not remember changes,
I see in the log thats corresponding variable (%pTextLabelXY%) is changed, but after script end (returns to normal GUI) no changes.
Earlier, I saw that this is can achieved with ScriptInterface,Write, ... > look paraglider's commonapi_ScriptInterface-Write

At other several places says the same: ScriptInterface,Write,"Some text,%ScriptFile%,pTextLabelXY,Position,InterFace

This sintax is wrong!

In whole project I find one example ScriptInterface,Write but it's for CheckBox.



In the meantime, while I wrote this post, I accidentally hit correct sintax:

ScriptInterface,Write,Value,%ScriptFile%,InterFace,pTextLabelXY,%Var%
or
ScriptInterface,Write,Value,%ScriptFile%,InterFace,pTextLabelXY,"Some text" 

Finally  :lol:

There remains the problem of the correct syntax for other cases and ScriptInterface,State (mainly to hide / show) some interface component.


Another useful information, a new version of INNOUNP ver. 0.45 on sourceforge page,
supports Inno Setup versions 2.0.7 through 5.5.7.

Alternatively, you can use free tool Havysoft InnoExtractor, actual version v 5.2.2.187,
it's some kind GUI front end of INNOUNP, it has the ability to pull out more details and components from install package.

That's all  :smile:
 

Re: Few more questions
« Reply #1 on: January 27, 2016, 09:02:25 PM »

Nikky

  • Chef
  • ***
  • Location: Croatia
  • Date Registered: Jan 2016
  • Posts: 131
You can merge with previous thema > http://theoven.org/index.php?topic=1612.0

Re: Few more questions
« Reply #2 on: January 28, 2016, 10:16:03 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi Nikky,

documents you will find out of TheOven.org are useful but quite old.
useful since we could not find time to document wb engine syntax.
example:
Earlier, I saw that this is can achieved with ScriptInterface,Write, ... > look paraglider's commonapi_ScriptInterface-Write
there is no commonapi anymore.

"Macro Library" command documentation is available and updated regularly
http://theoven.org/index.php?board=14.0

This sintax is wrong!

ScriptInterface depricated and will be removed permanently,
 use ChangeInterface (all same except syntax name)

In whole project I find one example ScriptInterface,Write but it's for CheckBox.
It should already been updated on servers.
If not let us know.

+
also, check how wb core syntax used inside projects, wb is bug full engine, things do not work as written in tutorials,
use them the way we use inside plugins, and if we never use a wb syntax assume there is a good reason behind and never use.

Another useful information, a new version of INNOUNP ver. 0.45 on sourceforge page,
supports Inno Setup versions 2.0.7 through 5.5.7.
Thanks, updated relevant plugin on servers.

Tip:
We use
Utils\PC Innounp (Plugin creator Innounp)
to create plugins based on innounp setup.exe

The first problem was what WB engine has support only for Fileversion and it does not work correctly, at least in my case, returns extra .0 at the end.
no surprise. wb coded quite badly (bad programming skills) and needs various workarounds to get it work.
let us know which file you get version from.

See You
:turtle:
« Last Edit: January 28, 2016, 03:46:12 PM by Lancelot »

Re: Few more questions
« Reply #3 on: January 31, 2016, 05:37:47 PM »

Nikky

  • Chef
  • ***
  • Location: Croatia
  • Date Registered: Jan 2016
  • Posts: 131
there is no commonapi anymore
No direct link but Google find:
http://wb.paraglidernc.com/Help/commonapi/ScriptInterface-Write.html
http://wb.paraglidernc.com/Help/commonapi/ScriptInterface-State.html

let us know which file you get version from.

It's aida64.exe

I think I have all predicted and verified, is ready for the public.
As you previously suggested'll open the new topic in Plugins.

Re: Few more questions
« Reply #4 on: January 31, 2016, 06:55:09 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
« Last Edit: January 31, 2016, 06:55:29 PM by Lancelot »

Re: Few more questions
« Reply #5 on: February 08, 2016, 07:09:53 PM »

Nikky

  • Chef
  • ***
  • Location: Croatia
  • Date Registered: Jan 2016
  • Posts: 131
There is no point to opening a new topic ...

Somewhere I saw info that Virtual WiFi service is needed for WiFi > correct.
But, at least in Win7PE SE project original script have / make error.
It's old oscar plugin from 2011, below is corrected script.
A little while ago I made a new bulid, tested and now work correctly.

It should be corrected on dl. server, another task on the todo list for Lancelot  :grin:

Other info is related to Kyhi's (AppY\HD Task\EasyBCD) plugin,
it was stated that Requires .NET Framework 4.5 Full for EasyBCD 2.3,
from Comonents, .Net I have chosen the "DotNet 2.0 only" and EasyBCD is starting correctly.
Tomorrow I have to fix a laptop with W8 and BCD error, it will confirm is v2 enough.

Here's what is written in EasyBCD.exe.config
Code: [Select]
<?xml version="1.0"?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
    <supportedRuntime version="v2.0.50727"/>
  </startup>
  <runtime>
    <NetFx40_LegacySecurityPolicy enabled="true"/>
  </runtime>
</configuration>
And after this information seems to be enough v2.0.50727.


Re: Few more questions
« Reply #6 on: February 08, 2016, 08:26:01 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
It should be corrected on dl. server, another task on the todo list for Lancelot  :grin:
which plugin, what to do ?   :thumbsup:

better post KYHI plugins to its own support topic  :great:
http://theoven.org/index.php?topic=1413.msg19338#msg19338
I just quoted your post there.

Re: Few more questions
« Reply #7 on: February 08, 2016, 08:28:42 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
I believe this is about "network plugin" of Win7PESE , I just informed Chris  :great:

Re: Few more questions
« Reply #8 on: February 08, 2016, 08:51:16 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi Nikky,

now I understand where you get bad habit using projecttemp as source_folder on your other plugin, you misunderstand oscar plugin.

oscar plugin extracts existing files to a temp folder called "source_folder", than filecopy to pe from there  :thumbsup: :thumbsup:
routine is same on %99 of plugins where all files provided by plugin.  :thumbsup:

you used source_folder to provide license on a temp folder !! , which is quite wrong since temp folder deleted at each project run.. (license file lost....)

anyway, only informing.   :wink:

:turtle:

Re: Few more questions
« Reply #9 on: February 08, 2016, 09:37:16 PM »

Nikky

  • Chef
  • ***
  • Location: Croatia
  • Date Registered: Jan 2016
  • Posts: 131
All you figured wrong,
I atach corrected plugin,
here is "original"
Code: [Select]
[Main]
Title=vwifibus service
Selected=true
Download_Level=0
Level=3
Author=oscar
Version=1
Date=08-Jan-2011

[Process]
Run,%ScriptFile%,SourceDisksFiles
Run,%ScriptFile%,AddReg

[SourceDisksFiles]
Echo,"Copying files.."
FileCopy,"%ScriptDir%\files\*.sys","%target_sys%\drivers"
FileCopy,"%ScriptDir%\files\*.inf","%target_win%\inf"
FileCopy,"%ScriptDir%\files\vwifibus.sys","%target_win%\inf"

[AddReg]
RegHiveLoad,Tmp_System,%RegSystem%
RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\services\vwifibus,DisplayName,"@#$pSystemRoot#$p\System32\drivers\vwifibus.sys#$c-257"
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\services\vwifibus,ErrorControl,0x00000000
RegWrite,HKLM,0x2,"Tmp_System\ControlSet001\services\vwifibus,ImagePath,"\SystemRoot\System32\drivers\vwifibus.sys"
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\services\vwifibus,Start,0x00000003
RegWrite,HKLM,0x4,Tmp_System\ControlSet001\services\vwifibus,Type,0x00000001
RegWrite,HKLM,0x1,"Tmp_System\ControlSet001\services\vwifibus,Description,"@#$pSystemRoot#$p\System32\drivers\vwifibus.sys#$c-258"
RegHiveUnLoad,Tmp_System,%RegSystem%

[EncodedFolders]
files
...
witch produce FileCopy error because files didn't extract at all  :sad:

Re: Few more questions
« Reply #10 on: February 08, 2016, 10:35:20 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Hi Nikky,

I just added the Virtual WiFi Bus Driver in PENetwork plugin (the network is defined here in Win7pese)
It should be good but no time to test it right now and my Qualcomm Atheros adapter don't need it.
in Win8,10SE the Virtual WiFi Bus Driver was already added but not in Win7.
I am a little surprised not to have some Wifi related requests before !!! It seems that "all" the latest Intel wireless drivers need.
Thank to you and Oscar :thumbsup:

* penetwork.7z (3515.72 kB - downloaded 108 times.)
« Last Edit: February 08, 2016, 10:39:11 PM by ChrisR »

Re: Few more questions
« Reply #11 on: February 09, 2016, 09:46:11 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
All you figured wrong,
I atach corrected plugin,
here is "original"
yes I figure out wrong. :embarrassed:

original plugin presents bad habits from bartpe plugins which is usual for a bartpe user :wink: at least still not providing files at projecttemp.  :cool:

one way or another, it is sad plugins out of servers cause unwanted habits (even to ones who never use bartpe) during new plugin development :thumbsup:

at least numbers decrease significantly in time...  :thumbsup: :thumbsup:
 well life goes... :turtle:

 

Powered by EzPortal