Topic: Aida64  (Read 182 times)

0 Members and 1 Guest are viewing this topic.

Aida64
« on: November 26, 2017, 08:16:48 PM »

APT

  • Chef
  • ***
  • Date Registered: Nov 2012
  • Posts: 122
Hi Lancelot

was looking at one of your plugins as you suggested -Aida64
http://yomi.cwcodes.net/Yomi/AppY/System%20Tools/HW%20Info/AIDA64%20Extreme.Script
and taking my life in my hands here :grin:
can i suggest anyone wishing to combine all three versions with minimal effort could use code below or something similar

Code: [Select]
[Variables]
%ProgramTitle%=AIDA64
%ProgramEXE%=aida64.exe
%ProgramFolder%=AIDA64
%SetupFile%=%SetupFilex86%
%SetupFilex86%=%ProgVer%
%SetupFilex64%=%ProgVer%
%FileContainer%=%ScriptDir%\AIDA64_File.Script
%ProgramSourceFiles%=AIDA64_ProvideFile
%ProvideFiles%=%GlobalTemplates%\%ProgramSourceFiles%
%FileWeb%=%FileWeb_x86%
%FileWeb_x86%=http://download.aida64.com/%ProgVer%
%ProgVer%=%ProvideFile_TextBox%

check the latest version on the homepage link ie aida64engineer595.zip, aida64extreme595.zip etc
and typing that into the 'ProvideFile_TextBox' , it will download that specific version, and using the appropriate pkey, gives you a quick way of using the update of any version with minimal of input and only one plugin
I'm sure you would give a more elegant solution if you'd wished to make a generic version
but it works for me :thumbsup:

Re: Aida64
« Reply #1 on: November 27, 2017, 12:30:35 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7499
Hi APT,

only changing %FileWeb% is enough to follow your idea  :thumbsup:

v3 of all 4 plugins on servers.

Tip:
Before download,
Use yellow "Compare" button on plugin (top-right) to see changes I made

*
Test further to see all works fine.....
ps: See when there is Provided File, %SetupFile% ignored by plugin.  :wink:

*
No elegant solution, weblink for apps varies a lot following developer.
Aida64 is well-organized application example which makes plugin writing very easy.

*
As written on other topic:
http://theoven.org/index.php?topic=2281.msg24749#msg24749
Utils\PC Packed (download latest)
1) .....aida64business595.zip
2) aida64.exe
"Options" button
At top change "Normal" to "MultiArch - SameExe - DifferentFolder"
At top leave it "Normal"
Enable "Add 'Provide File' Option"
Enable "Add Download Button"
3) Goooo

-->
Rest is changing plugin name , title etc. add weblink (fileweb)
 and further improvments (ex: changing FileWeb with %ProvideFile_TextBox% )

compare with "AIDA64 Business" plugin on server, you will figure out rest easily.

==>
 using ready template makes plugin writing 10x faster,
 so developer have more time to focus on how relevant Application work inside PE

That is the reason Utils\PC Packed written.  :wink:

***
Long Live APT  :lol:

:turtle:
« Last Edit: November 27, 2017, 01:04:59 AM by Lancelot »

Re: Aida64
« Reply #2 on: November 27, 2017, 01:19:33 PM »

APT

  • Chef
  • ***
  • Date Registered: Nov 2012
  • Posts: 122
Hi Lancelot
Thanks for the feedback - I do try and take it all onboard :thumbsup:
Can i just clarify my understanding of why
Code: [Select]
%SetupFilexXX%=%ProvideFile_TextBox%
are not required, I understand when there is a Provided File, %SetupFile% ignored by plugin
until you get to the potential File Container  section in
Code: [Select]
[Extract]
Else,Begin
  ExtractFile,%FileContainer%,Folder,%SetupFile%,%ProjectTemp%\TempExtractFolder\%ProgramFolder%
  ShellExecute,Hide,%Tools%\7z.exe,"x #$q%ProjectTemp%\TempExtractFolder\%ProgramFolder%\%SetupFile%#$q -y -o#$q%ProjectTemp%\TempExtractFolder\%ProgramFolder%\%ProgramFolder%#$q"

I can't see how it would extract if %SetupFile% name doesn't match in that part of [Extract]  - I'm very happy to be corrected

Re: Aida64
« Reply #3 on: November 27, 2017, 02:23:31 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7499
Hi APT,

%SetupFilexXX% should be updated when FileContainer also updated.

Since Aida64 plugin do not have FileContainer plugin on server, it is not required.

Following Aida64 example, SetupFile also indicates plugin first written for aida64......592.zip

Later versions may not work in future....

-->
It is that way designed with PC Packed to ease things.

-->
Think that you provide Aida64 plugin with FileContainer plugin together.

You create plugin with aida64extreme595.zip

+
people who get both plugins will get Plugin work out of box.  :thumbsup:

+
After sometime Aida64 updated, but you do not have time to update FileContainer
End user can update using ProvideFile_TextBox where FileContainer still have old version.  :thumbsup:

When you update FileContainer, you update setupfile too...  :thumbsup:

+
Or you work on a plugin that is not redistributable (Commercial)
You create plugin same way (without download option),
 in the end you do not share FileContainer, and plugin itsself is small enough to attach forum.

FileContainer still will help you on your home development since things will work out of box  :wink:

+
Or you like to create plugin for big sized application.
You create plugin same way, in the end you do not share FileContainer, and plugin itsself is small enough to attach forum.

FileContainer still will help you on your home development since things will work out of box  :wink:


+
Sometimes application changes, new version have new requirements or new setup file.

%SetupFile% there to indicate what plugin first written for.
( Remember Partition Guru version changes ... )


...


*****
Shortly:
"Provide File" option is designed very cleverly with Utils\PC Packed to fit a set of possible conditions we experienced through all these years.

Aida64 is a nice simple example to demonstrate,
 since Utils\PC Packed creates Aida64 plugin having Provide File and Download option very easy work out of box.

Aida64 superiorities:
Aida64 do not have dependencies or registry or a writable environment. -> application works out of box.
Aida64 weblink is very stable and well organized.


Just practice Utils\PC Packed with Aida64 and compare with plugins on server.  :wink:
You will figure out in some short time....

:turtle:

 

Powered by EzPortal