Making an installer in PB

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Justin.

PB exes are small, but if you use some installer the size can increase up to 10 times :)

Has anyone tried to make an installer in PB?

Thanks to Danilo now we can create shortcuts easily, i known how to write to registry, etc.. but how to add an entry to the add/remove program list?

how to make the unistaller?, and more important how can the unistaller delete itself?

maybe too many questions, but any help is appreciated.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> PB exes are small, but if you use some installer the size can increase up to 10 times :)

Surely one the apps at the link below will be small enough? If not,
I think someone here wrote an installer in PureBasic, but I can't
remember who/where at the moment...

http://www.google.com/search?q=freeware+setup


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Justin.

Thanks for the link. It seems that everything is handled by the .inf files, INF-Tool looks good but i could not tested well because the most important functions were cutted in the demo version..

So i think i will learn the inf syntax, i still don't know how to install a inf file from PB, there is a small free tool that installs any inf file (Infstaller), but it should be possible to do it directly from PB.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fweil.

Justin,

Check the following link to see what I am doing using Setup Generator. It is probably not the best but it is very simple to use and makes small packages.

http://www.nasca.fr/software/Scan_Servers_setup.exe

Setup generator is a freeware you should find easily. Otherwise I can provide you a copy of the installation file.

KRgrds

or any other package on http://www.nasca.fr/Download.htm

I use now to make a package with a shortcut placed on the desktop at first run.

...



Francois Weil
14, rue Douer
F64100 Bayonne
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Justin.

fweil, that program is very good, easy to use an produces small installers, the perfect tool for PB exes. Thanks ! :)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Julien Morel.

Hi,
The link is broken !,
Somebody have the file ?

-Thank-

Forum in French
http://www.forumpurebasic.fr.st
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Justin.

I think this is the homepage:

http://www.gentee.com/
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by ebs.

Justin,

Before buying anything, I suggest you check out Nullsoft's NSIS installer at http://www.nullsoft.com/free/nsis/. It's free, open-source, and creates small, full-featured install programs. If the name Nullsoft sounds familiar, it's because they developed NSIS as a way to distribute WinAmp.

I just used it for my latest project. The executable file being installed was about 29KB (after being compressed). The install program, which contains the executable, an .INI file, and an uninstall program, was only 75KB. This includes installing the files, creating a Start Menu group and shortcuts, and an uninstall program.

NSIS has lots of other features I didn't need for this project, including allowing the user to choose which components to install, displaying license or readme files, multiple languages, and a complete scripting language.

I probably sound like a commercial, but I think NSIS is a great installer, especially since it doesn't cost anything! The one downside I should mention is that it takes some time to understand the scripting language (it's not a GUI program like others). However, since you can program in PB, NSIS scripting commands shouldn't be a problem.

Eric
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Revolver.

I also use and recommend NSIS
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Justin.

Thanks but i prefer GUI based installers, it saves me a lot of time. i'm very happy with SGP, soon i'll buy Create Install even it's more expensive than PB. it has all the options you can expect from a commercial installer and it's very very easy to use.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Num3.

Personally i use this wonderfull installer that is FREEWARE (for commercial and non-comercial use) from QSC, called GP-Install

http://www.qsc.co.uk



--
Kind Regards
Rui Carvalho

Old programmers never die... They branch into a subroutine...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by LJ.

That's my favorite Num3. Have used many installers and for simplicity with GUI and to do easy basic installs, nothing too fancy, GP-Install is very good. Good compression also. I've tested the installations over 3 years on over 1,000 computers from Win95 to WinXP and everything works good except about 1% of the time, if the user changes the default directory locations and C: hard drive letter, some files are left out. I always tell clients to just except the default settings and then everything works fine.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by David Martin.

We use Inno Setup http://www.innosetup.com and ISTool http://www.istool.org they work great together.

David
Post Reply