Simple 'Automatic' Installer

Share your advanced PureBasic knowledge/code with the community.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

It is updated once more. The interface now has a wizard style interface, which is more in line with what users expect,
and it uses a .png for the header bitmap instead of a .jpg.

BTW, the demo app shows Fred hiring his new secretary. :) Use the d/l link above.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

Edit: 20060420: The installer is enhanced, and rewritten for PB4B10:
Edit: 20060506: A misplaced REM left uninst.bat after an unistallation.

Here's the source:

Code: Select all

removed 
Last edited by utopiomania on Sun Feb 04, 2007 10:21 pm, edited 7 times in total.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

IMPORTANT: Corrected a problem with CreateDirectory() beeing able to create directory entries
with trailing spaces. The source is updated.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

Updated, handles uninstalls much better. After an uninstall, the user can now handle 'All elements could not be removed'
much better than if using other installers. :P

I'll put up a better d/l -able demo soon.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

WOW! :shock: Thanks utopiomania. This is cool.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Looks cool
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

Thanks, Inf0Byt3 and dracflamloc :) Since it's a bit tricky to test or try out right away I'll
put up a demo install for download soon, and post the source in this thread as I change it.

Please feel free to post any problems you might have with it.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

The installer is now rewritten for PB 4.0 Beta 2, and some fixes has been done to it.

The source listing above is updated and you can download a self extracting demo
here.

Just install/uninstall the dummy app to see how the installer works.

The installer demo was created by dropping install.exe, install.png, install.ico and
a licence into the folder of the program that is to be distributed.

After that the the files was packaged into a self extracting exe using the free M$
IEXpress utility.

Since the installer behaves pretty much like any other 'Instant' product (just add
water/an installer), I couldn't resist renaming it to: 'Insta-Installer' :)
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

The installer and UI is enhanced, and rewritten for PB4B10. The source is posted above, and a demo
can be downloaded here.

It's tested on XP, SP2 without any problems, but if you find any, I would appreciate feedback.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Wow - very nice and professional.

A great addition to the toolbox.

Many thanks.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

You're welcome! :)
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

For the ones of you that can't compile PB4 files :oops: , or wandered through here on your way from pyxia or
a similar language, you can grab the installer here.

Just rename 'uninst.exe' to 'install.exe' and include it with your program to check it out. :)
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Nice, utopiomania. Thanks for sharing.
@}--`--,-- A rose by any other name ..
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

Thanks for testing. :)
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

This tool is just wonderful.

Any way besides "utopiomania", to give credit on the "about" page of programs for which I use this as the installer?

cheers
Post Reply