@Uwe Install program for mod harbour

@Uwe Install program for mod harbour

Postby Otto » Fri Sep 27, 2019 6:47 pm

Lieber Uwe,
ich möchte mich heute mit einer Bitte an dich wenden.
Vielleicht kannst du uns "Fivewinnern" einen professionellen Installer für mod Harbour machen.
Derzeit sieht das ein wenig simpel aus.
Mit lieben Grüßen
Otto

Image
Download link:
https://mybergland.com/fwforum/install_xampp_and_modharbour.exe

Hier ist der source Code.


Code: Select all  Expand view

#include "FiveWin.ch"

REQUEST DBFCDX
REQUEST DBFFPT

static oWnd

//----------------------------------------------------------------------------//

function Main()
   local I := 0
   local odlg
   local aLinks := {}
   local cText := ""
   //----------------------------------------------------------------------------//

   cText += "Allow Apache through Windows Firewall?"+ CRLF
   cText += ""+ CRLF
   cText += "->Go to Search  of windows."+ CRLF
   cText += "->Search 'firewall'"+ CRLF
   cText += "->open the firewall"+ CRLF
   cText += "->select Advanced settings."+ CRLF
   cText += "->go to Inbound Rules."+ CRLF
   cText += "->click on New Rule."+ CRLF
   cText += "->select Program"+ CRLF
   cText += "->press next"+ CRLF

   cText += "->This program path: Browse for httpd.exe"+ CRLF
   cText += "  (usually here: c:\xampp\apache\bin"+ CRLF
   cText += "->Allow the connection Next"+ CRLF
   cText += "->Select 'Allow all - Domain/Private/Public'"+ CRLF
   cText += "->on last page add rule name 'Apache HTTP'"+ CRLF

   if lIsDir( "c:\mod_harbour" ) = .f.
      lMKDir( "c:\mod_harbour" )
   endif

   aadd( aLinks, { "Visual Studio C++ Redistributable 2017 x86",  "https: //aka.ms/vs/15/release/vc_redist.x86.exe", "Download the file and run the exe immediately" } )
   aadd( aLinks, { "Visual Studio C++ Redistributable 2017 x64",  "https: //aka.ms/vs/15/release/vc_redist.x64.exe", "Download the file and run the exe immediately"  } )
   aadd( aLinks, { "XAMPP",                                       "https: //sourceforge.net/projects/xampp/files/XAMPP%20Windows/7.3.8/xampp-windows-x64-7.3.8-2-VC15-installer", "Download the file and run the exe immediately"  } )
   aadd( aLinks, { "Allow Apache through Windows Firewall","noLink", cText } )
   aadd( aLinks, { "mod harbour ZIP file",                        "https: //github.com/FiveTechSoft/mod_harbour/archive/master.zip", "Download the file and unpack to c:\mod_harbour"  } )
   aadd( aLinks, { "Setup mod harbour with bat-file",             "https: //winhotel.space/modharbourdoc/setupmodharbour.bat", "Download the bat-file and run the bat-file immediately"  } )
   aadd( aLinks, { "Setup Apache for mod harbour",                "https: //winhotel.space/modharbourdoc/modharb.exe" , "Download the file and run the modharb.exe immediately" } )

   DEFINE DIALOG oDlg FROM 1, 10 TO 36, 60 ;
      TITLE "Install XAMPP and mod harbour"

   FOR I := 1 to len( aLinks )
      buttonLinks(oDlg, I, aLinks)

   NEXT


   ACTIVATE DIALOG oDlg
return nil
//----------------------------------------------------------------------------//

function buttonLinks(oDlg, I, aLinks)
   local oBtn

   if aLinks[ I,2] = "noLink"
      @ 1 + 30 * I,10 ;
         BUTTON oBtn ;
         PROMPT aLinks[ I,1] ;
         SIZE 150, 25 ;
         OF oDlg ;
         PIXEL ;
         ACTION ( msginfo( aLinks[ I,3] ), oBtn:disable() )
   else
      @ 1 + 30 * I,10 ;
         BUTTON oBtn ;
         PROMPT aLinks[ I,1] ;
         SIZE 150, 25 ;
         OF oDlg ;
         PIXEL ;
         ACTION ( msginfo( aLinks[ I,3] ),ShellExecute( oDlg, 'Open', aLinks[ I,2] ), oBtn:disable() )
   endif
return nil
//----------------------------------------------------------------------------//


 
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6003
Joined: Fri Oct 07, 2005 7:07 pm

Re: @Uwe Install program for mod harbour

Postby ukoenig » Sat Sep 28, 2019 7:03 pm

Otto,

no problem,

what is the optics do You like

maybe a window like that with round corners and border
stays on top and can have any color and bordersize ( with transparent level )
The border shown on any position, Buttons can have a 3D-look ( using special images )

Image

regards
Uwe :D
Last edited by ukoenig on Sun Sep 29, 2019 10:37 am, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: @Uwe Install program for mod harbour

Postby Otto » Sat Sep 28, 2019 8:31 pm

Dear Uwe,
thank you for helping.
Can you please have a look at the modharbour.org web page. Maybe you can take these colors.
Let us ask Antonio to send you the logo.
Thank you and best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6003
Joined: Fri Oct 07, 2005 7:07 pm

Re: @Uwe Install program for mod harbour

Postby ukoenig » Sun Sep 29, 2019 7:47 am

Dear Otto,

Can you please have a look at the modharbour.org web page. Maybe you can take these colors.
Let us ask Antonio to send you the logo.


it gaves me the idea to create a new installer-tool with a config-section.
using a buttonstyle or checkboxes like the FWH-installer.
Inside the config-section there will be a option to choose the style and colors.
( I couldn't find something useful about the colors )
As well there will be something of the new meter-controls included.

I Added a sysmenu ( the design-button will be removed inside the customer-release )
There is still space next to the harbour-image for a progress-wheel

This is just a test adding some objects to see how it looks.
The size can be adjusted to add some comments.
It is easy now to create any kind of installer like You can see.

Image

Image

Image

best regards
Uwe :D
Last edited by ukoenig on Mon Sep 30, 2019 11:40 am, edited 2 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: @Uwe Install program for mod harbour

Postby ukoenig » Mon Sep 30, 2019 10:58 am

Dear Otto,

is there a global Info-text I could show with the HELP-symbol ?

Image

All links are working :!:

The installer is on top as well inside the internet-browser
NO download on Pos. 4
I still have to include a progress-wheel
Because the selected button will be disabled,
I will add a button < undo > to start the download again in case of any problem.

Image

best regards
Uwe :?:
Last edited by ukoenig on Mon Sep 30, 2019 1:08 pm, edited 3 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: @Uwe Install program for mod harbour

Postby cnavarro » Mon Sep 30, 2019 11:29 am

Great Uwe, congratulations
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6500
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: @Uwe Install program for mod harbour

Postby Otto » Mon Sep 30, 2019 11:51 am

Dear Uwe,

great work. Really professional and good looking.

In the meantime Antonio made it possible that mod harbour is also running on WINDOWS IIS.

Here is the link and the install documentation. We should make your installer dual - for IIS and for APACHE.

viewtopic.php?f=45&t=37820

I will setup some VS then we can test the installaion.

I will provide you with the credentials. Is RDP for you OK?

Thank you from me and I think also in the name of the Fivewin - community.
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6003
Joined: Fri Oct 07, 2005 7:07 pm

Re: @Uwe Install program for mod harbour

Postby ukoenig » Mon Sep 30, 2019 12:13 pm

Dear Otto,

as soon I'm starting something, I'm getting more and more ideas :roll:

We should make your installer dual - for IIS and for APACHE.


I added a switch to the toolbar ( share ) on top
Undo added ( button enable ) in case of download-problems to try again
The installer can be minimized to the taskbar during working on a download.

What is about the global help-info I asked for
what text do You like to show :?:

Image

changed to IIS
Works :shock:

The subtitle can be changed as well < installs IIS > and < installs APACHE >

I can use the same blue as main-color from the website but maybe better to have a little contrast.

Image

I'm glad I can help.

best regards
Uwe :D
Last edited by ukoenig on Tue Oct 01, 2019 9:00 am, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: @Uwe Install program for mod harbour

Postby Otto » Mon Sep 30, 2019 6:30 pm

Hello Uwe,
thank you so much.
I am setting up 2 VS with WINDOWS 2019 Server - I had to download an English version as my version only allowed German as language.
Tomorrow I will attach the servers to the internet.
Then we can test the new installation program.

I write you when I am ready.
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6003
Joined: Fri Oct 07, 2005 7:07 pm

Re: @Uwe Install program for mod harbour

Postby ukoenig » Tue Oct 01, 2019 9:02 am

Otto,

now we can select from a listbox any install / download we need
( not only 2 options ) with a double-click on the share-symbol.
After a selection the title and inner section of the installer will be complete repainted.

Image

regards
Uwe :D
Last edited by ukoenig on Wed Oct 02, 2019 8:11 am, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: @Uwe Install program for mod harbour

Postby Iris Gesser » Tue Oct 01, 2019 3:19 pm

Hi Uwe,

this looks really great. Congratulations!

Is it possible to test the installer?

Kind regards
Iris
User avatar
Iris Gesser
 
Posts: 37
Joined: Fri Apr 22, 2016 10:19 pm

Re: @Uwe Install program for mod harbour

Postby ukoenig » Tue Oct 01, 2019 4:15 pm

Iris,

no problem
All defined downloads are tested and are working.

DOWNLOAD

http://www.pflegeplus.com/DOWNLOADS/Install1.zip

with the new submenu < share > we can add more useful downloads or installs.
Because the tool stays on top You can download everything at once just change
the download-selection like from APACHE to IIS.
In case of a not working download You can activate the deactivated button again.
There is a small reloader included. Changing the download-page
the program will be closed and autostarted with the new repainted page ( selection )
The selected page and screen-position is saved to a INI and will be shown on restart.

I'm still working on the setup to change colors and other settings.
For the moment the dialog is still empty

The help-button is still unused.
We can add a submenu to collect different useful infos.

best regards
Uwe :lol:
Last edited by ukoenig on Thu Oct 03, 2019 5:09 pm, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: @Uwe Install program for mod harbour

Postby Iris Gesser » Tue Oct 01, 2019 8:59 pm

WOW, Uwe, this tool is so strong.
I have just set up Mod_Harbour on my PC at home. Thanks to you it took me not more than 15 min!
Just great!
XAMPP was no problem at all...
I have only clicked on the links and the installation was done...
Can you tell me, what the firewall-settings are for?

Kind regards
Iris
User avatar
Iris Gesser
 
Posts: 37
Joined: Fri Apr 22, 2016 10:19 pm

Re: @Uwe Install program for mod harbour

Postby Antonio Linares » Wed Oct 02, 2019 6:28 am

Wow !!!

Great work Uwe !!!

Just one observation:
We should not have together mod_harbour and FWH in the same install app. As mod_harbour is free and FWH is commercial.

Users may think that both products are related and they are not.

Besides that, hats off for your superb work ;-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41302
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: @Uwe Install program for mod harbour

Postby ukoenig » Wed Oct 02, 2019 8:13 am

Antonio,

separated. :idea:
I added 2 new group-buttons
Fivewin-installs can be selected with a extra button now.

Thanks to Otto he gave me the idea to start with the tool. :D

Iris,
Can you tell me, what the firewall-settings are for?

I didn't look in detail at the downloads for the moment.

To include any new downloads I need :
1. a description for the buttontext
2. the link
3. a text for the button-tooltip


with the toolbutton we can download useful tools
like pixelformer, gimp ... or any other programs ( will be added in the next release )

The possible capacity can be extended changing the windowsize.
Another solution is shown with the setup-button
that connects a second window to the main-screen.
capacity :
3 main-buttons
each button includes a menue with 8 buttons
each button shows a submenue with 7 buttons
total = 56 installs each button * 3 = 168 possible installs or downloads

resizing the width of the mainwindow more group-buttons can be defined

I could adjust the height to the defined download-buttons ( 7 )
but I think it looks much better using a fixed size
otherwise moving the window doesn*t make sense if it is to big.

I will add a release-number next to the fivewin-logo

Image

regards
Uwe :D
Last edited by ukoenig on Thu Oct 03, 2019 5:07 pm, edited 18 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 15 guests