Page 1 of 23

PB EasySetup - Setup maker for your program

Posted: Wed Jun 14, 2006 3:54 pm
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

Posted: Thu Jun 15, 2006 11:32 pm
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!

Posted: Fri Jun 16, 2006 11:31 am
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.

Posted: Fri Jun 16, 2006 11:37 am
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

Posted: Fri Jun 16, 2006 11:42 am
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)

Posted: Fri Jun 16, 2006 8:06 pm
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

Posted: Fri Jun 16, 2006 8:22 pm
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:

Posted: Fri Jun 16, 2006 8:29 pm
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

Posted: Fri Jun 16, 2006 8:40 pm
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.

Posted: Fri Jun 16, 2006 9:01 pm
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"

Posted: Fri Jun 16, 2006 9:13 pm
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\

Posted: Fri Jun 16, 2006 11:26 pm
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

Posted: Sat Jun 17, 2006 12:20 am
by thefool
The shortcuts seems not to get deleted here either now.!
Other than that, it looks better :)

Posted: Sun Jun 18, 2006 7:00 pm
by Thorsten1867
New version 0.2.0 (18.6.06):
- new design (panels)
- preview function for licence, info file and bitmap

Posted: Sun Jun 18, 2006 10:35 pm
by thefool
Better; but the buttons at bottom isnt in english.