PB EasySetup - Setup maker for your program

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

PB EasySetup - Setup maker for your program

Post by Thorsten1867 »

EasySetup
- small installer (installer & uninstaller: <90KB)
- multilanguage (translation tool for your own language)
- licence/info file as TXT or RTF
- user splashscreen possible (130*300 Pixel)
- call project at start (commandline)
- StartMenu-entries possible (help, homepage, additional executable, uninstaller)
- preview function for licence, info file and bitmap
- licence and info file editable (preview window)
- path variables for program directory possible (see menu - help)
- userdefinded links (Desktop, Startmenu, Autostart, URL)
- installation of single files in special folders possible (%Autostart%, %Fonts%, .....)
- userdefined registry entries possible
- possibility to start a program (before/while/after installation)
- possibility to execute a script (JScript/VBScript) during installation / uninstallation
- Association of a file extension with the program
- splitted setup (installer+archive) for big installations possible
- InternetUpdater (compare files/partial download)
- Additional programs (with sources):
  • CheckPC.exe (check hardware/OS)
    CheckAdmin.exe (check admin rights)
    CheckSerNr.exe (input/check serial number)
    CallURL.exe (call URL/homepage)
    DemoVersion.exe (check days for demo versions)
    Expired.exe (check expiration date)
    PlayMusic.exe (play wav during installation)
    Run2Update.exe (call Exe in the program directory)
    ShowHTML.exe (show HTML-file)
    ShowReadme.exe (show rtf/txt file)
    StartAddSetup.exe (start additional setup program)
- manuals: English, German, Dutch

available languages:
- German, English, Spanish, Dutch, Russian, French, Swedish, Chinese, Portuguese, Italian (program & installer)
- Norwegian, Sloevenian (installer only)

Download EasySetup

Image
Last edited by Thorsten1867 on Sun Feb 03, 2008 6:37 pm, edited 77 times in total.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
thefool
Always Here
Always Here
Posts: 5881
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

You should add support for english in the first installation. I think this scares some users away that only german is supported :)

Also you switch too much from different banners. First you got one in the left side, then one at top and back at the left side!


Okay to the setup maker; you should let people minimize it.

And if my exe doesnt have an icon, i cant close the "Icons" window that pop up when i click the "Icon" button in "Files and directory" part!

Also, perhaps you should remove the "Easy setup - Copyright blablabla" in the top of the installers..! (And write something like "Product title v. x" where the x is the version number!)


For the uninstaller; you should remove the ", too" part in the check box. And it didnt remove my directory!

Other than that, it looks pretty good!
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

thefool wrote:You should add support for english in the first installation. I think this scares some users away that only german is supported :)
There was a bug in the language selection window. Normaly the user language is automaticly selected, if exists.
thefool wrote:Okay to the setup maker; you should let people minimize it.
Done!
thefool wrote:And if my exe doesnt have an icon, i cant close the "Icons" window that pop up when i click the "Icon" button in "Files and directory" part!
Use [X] button to close.
thefool wrote:For the uninstaller; you should remove the ", too" part in the check box. And it didnt remove my directory!
A friend corrected the errors in the english translation. :)
The directory is a windows problem. It allows not to delete the directory, that include the uninstaller executable.
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
thefool
Always Here
Always Here
Posts: 5881
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Thorsten1867 wrote:
thefool wrote:And if my exe doesnt have an icon, i cant close the "Icons" window that pop up when i click the "Icon" button in "Files and directory" part!
Use [X] button to close.
Don't ask me how; i managed to open it one an exe without an icon. And it would not close on the x! tried today, and it works fine. Don't know what went wrong!
thefool wrote:For the uninstaller; you should remove the ", too" part in the check box. And it didnt remove my directory!
The directory is a windows problem. It allows not to delete the directory, that include the uninstaller executable.
Nope, you can easily delete it :)
just requires a little programming. Search this forum, and see its possible :)

edit: did the search:
http://www.purebasic.fr/english/viewtopic.php?t=4836
thefool
Always Here
Always Here
Posts: 5881
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

A way to do it:

Simply let your uninstaller write the this file: delitself.bat
:begin
if exist uninstall.exe goto trydelete
del delitself.bat
exit
:trydelete
del uninstall.exe
launch it hidden and END your program afterwards.
this batch file will loop till uninstall.exe is removed, and when it is it will remove itself and exit.

(remember, the batchfiles name shall be delitself.bat unless you change the del delitself.bat of course. Try it :D)
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

Good idea! I needed a long time until it works correct.
The problems were:
- Batch file must placed in directorys in accordance with DOS rules
- RunProgram() works not correct with parameters => ShellExecute_()
- Directory must changed before deleting program directory ("cd \") :?

Code: Select all

; SelfDestruct for Uninstaller (PB V4)
; idea: Rings & Wayne Diamond & NoahPhense
; modified: Thorsten Hoeppner (Thorsten1867)
;
Procedure SelfDestruct(ProgDir$="") 
  exe$ = ProgramFilename()
  bat$ = Left(exe$,1)+":\~~uninst.bat"
  If CreateFile(0, bat$) 
    WriteStringN(0, "cd \")
    WriteStringN(0, ":DeleteFile")
    WriteStringN(0, "del "+exe$) ; program executable
    WriteStringN(0, "if exist "+exe$+" goto DeleteFile")
    If ProgDir$
      WriteStringN(0, "rd "+ProgDir$) ; program directory
    EndIf
    WriteStringN(0, "del "+bat$) ; temporary batch file
    WriteStringN(0, "exit") 
    CloseFile(0)
    ShellExecute_(0,"open",bat$,0,0,#SW_HIDE)
  EndIf 
EndProcedure
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

> - - Batch file must placed in directorys in accordance with DOS rules

Code: Select all

Procedure SelfDestruct(ProgDir$="")
  exe$ = ProgramFilename()
  bat$ = Left(exe$,1)+":\~~uninst.bat"
  If CreateFile(0, bat$)
    WriteStringN(0, "cd \")
    WriteStringN(0, ":DeleteFile")
    WriteStringN(0, "del " + #DQUOTE$ + exe$ + #DQUOTE$ ) ; program executable
    WriteStringN(0, "if exist " + #DQUOTE$ + exe$ + #DQUOTE$ + " Goto DeleteFile")
    If ProgDir$
      WriteStringN(0, "rd " + #DQUOTE$ + ProgDir$ + #DQUOTE$) ; program directory
    EndIf
    WriteStringN(0, "del "+bat$) ; temporary batch file
    WriteStringN(0, "exit")
    CloseFile(0)
    ShellExecute_(0,"open",bat$,0,0,#SW_HIDE)
  EndIf
EndProcedure
not tested :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

New Version 0.1.6:
- Installer: Bug in language selection requester removed
- Uninstaller: Empty program directory will now be deleted :D
- EasySetup: Empty subdirectories in programm directory will be managed correct now
- EasySetup: Automatic saving of changes if projectname exists
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

It's not very elegant with so many different font sizes and the buttons looks very small. And when I click to the left of the back button, C:\Programfiler\Opera 7 opens in an explorer window. :shock:

And I can click "finish" before the installation has started (on the screen with click install to start installation).

Edit: It doesn't delete the start menu entries and the desktop shortcut.
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

Trond wrote:It's not very elegant with so many different font sizes and the buttons looks very small.
What do you meen? EasySetup, Installer or Uninstaller
I'm working on a better desing of EasySetup (Panels).
Trond wrote:And when I click to the left of the back button, C:\Programfiler\Opera 7 opens in an explorer window. :shock:

There should be the homepage, if it exists. I will correct it.
Trond wrote:And I can click "finish" before the installation has started (on the screen with click install to start installation).

Translation error. I will change it to "Exit"
Trond wrote:Edit: It doesn't delete the start menu entries and the desktop shortcut.
I can't reproduce it. Can you send me your "uninstall.dat"
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Thorsten1867 wrote:
Trond wrote:It's not very elegant with so many different font sizes and the buttons looks very small.
What do you meen? EasySetup, Installer or Uninstaller
I'm working on a better desing of EasySetup (Panels).
In the installer, on the white pages the font is larger. On the upper panel on the grey page the font seems to be smaller. The "install" button has bold text. The checkbox for deletion of user files on uninstall has red text. The text in the dialog isn't the default font.
Thorsten1867 wrote:
Trond wrote:And when I click to the left of the back button, C:\Programfiler\Opera 7 opens in an explorer window. :shock:

There should be the homepage, if it exists. I will correct it.
But shouldn't there be text to click or something?
Thorsten1867 wrote:
Trond wrote:Edit: It doesn't delete the start menu entries and the desktop shortcut.
I can't reproduce it. Can you send me your "uninstall.dat"
Sure, here:[Settings]
ProgName = EasySetup
Language = deutsch.lng#7|english.lng#9|
ProgDir=C:\Programfiler\EasySetup\
ProgExe=EasySetup.exe
StartMenu=C:\Documents and Settings\Trond\Start-meny\Programmer\EasySetup\
DesktopIcon=C:\Documents and Settings\Trond\Skrivebord\EasySetup.lnk
[deutsch]
Titel = Program '$ProgName' deinstallieren
Msg = Entferne folgendes Programm von ihrem Computer:
Prog = $ProgName
DelAll = Lösche alle(!) Dateien im Verzeichnis (incl. Benutzerdateien).
Error = Deinstallation des Programmes nicht möglich.
OK = OK
Cancel = Abbrechen
Ready = Fertig
[english]
Titel = Uninstall Program '$ProgName'
Msg = Delete program from your computer:
Prog = $ProgName
DelAll = Delete all(!) files in the directory (including user files).
Error = Uninstall process not possible.
OK = OK
Cancel = Cancel
Ready = Ready
[Files]
F001 = Bitmaps\EasySetup.tga
F002 = Bitmaps\Splash.tga
F003 = EasySetup.exe
F004 = EasySetup.ini
F005 = Install.exe
F006 = Language\deutsch.ins
F007 = Language\deutsch.lng
F008 = Language\english.ins
F009 = Language\english.lng
F010 = Uninstall.exe
[Dirs]
D001 = Bitmaps\
D002 = Language\
D003 = Project\
D004 = Setup\
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

New Version 0.1.7
- EasySetup: Bug 'IconSelect window could not be closed' corrected
- Uninstaller: Bug 'Desktop icon and startmenu entries not deleted' corrected
- Installer: wrong fonttyps changed
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
thefool
Always Here
Always Here
Posts: 5881
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

The shortcuts seems not to get deleted here either now.!
Other than that, it looks better :)
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

Post by Thorsten1867 »

New version 0.2.0 (18.6.06):
- new design (panels)
- preview function for licence, info file and bitmap
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
thefool
Always Here
Always Here
Posts: 5881
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Better; but the buttons at bottom isnt in english.
Post Reply