Click to See Complete Forum and Search --> : I'm making setup program for my program, I was wondering if you could help.....


AndyK
February 14th, 2000, 05:57 PM
1) How to create Uninstall program, add it's shotcut to StartMenu, and also add it to "Add/Remove Programs" in Control Panel
2) How to create shortcut of my program and add it with shortcut of "unistall" into same Program Group in Start Menu

Thank You

The Matrix
February 14th, 2000, 07:38 PM
try either searching "setup" at download.com or go to this link to download a program that I think makes it into a installation program:
ftp://ftp.cdrom.com/pub/simtelnet/win95/install/crin332.zip

AndyK
February 14th, 2000, 10:50 PM
I don't need an Installer for my program, I am making ONE myself, and I need CODE or explanation on how to add unistall or shortcuts for MY setup program for my other programs, sorry, but I got load of those dumb shareware installers, plus, I'm having a bad day :(.......

Lothar Haensler
February 15th, 2000, 02:04 AM
IMHO the best starting point for creating a setup program is the one that comes with VB.
check out the setup1 directory in your VB folder (vb98\Wizards\pdwizard on my machine).
It contains the source code for setup1.
It has all the code for creating shortcuts, creating program groups and so on.

OTOH, I'd never ever start to write a setup program on my own, knowing that Win2K requires you to support the MS Installer Service interface for installing programs.

Chris Eastwood
February 15th, 2000, 02:58 AM
That's going to be a lot of work, sorry, a hell of a lot of work. You'll need code to :

1. Register all your OCX's / DLL's that your program requires
(even the Microsoft ones)

2. Check for the versions of the DLL's on the users system, then decide whether they need overwriting with the ones from your installation - this will require rebooting the computer and continuing your installation when it restarts.

3. Create Desktop / Startmenu shortcuts (there's code on CG to do this)

4. Find out how the install / uninstall stuff works with the registry (I've no idea, although I'm sure there's plenty (written in c/c++) on the MSDN - another great learning experience).

That's just the start !

Why don't you just use the standard PDW that comes with VB6 ? This will create all the code you need for install / uninstall and handle all of those system DLL problems / conflicts for you.

I think in the long run, you're going to get so frustrated with trying to create something that already exists, that you'll end up using PDW / Installshield anyway.


Chris Eastwood

CodeGuru - the website for developers
http://codeguru.developer.com/vb

AndyK
February 15th, 2000, 09:21 AM
Hey Chris, not a bad info, but setup that I'm making is just a simple self-extractor who will copy 10 files into appropriate dir and then it will add uninstall to add/remove and shortcuts (from uninstall and program itself) to StartMenu. That's it!!! It's not some universal crap, it's just strictly for my program and for me to learn the setup stuff....No DLLs or OCXs are with the program, just plain coded program. And installshield....are you crazy :0), I don't want to spend around $500 just for some stinky setup maker...
Actually I'm probably will make second program which I'll call unistall and when it runs it will delete all the files that are part of my original program, but thos freaking shortcuts to Start Menu...I'll check the CG, maybe I'll find some info on shortcuts.......hopefully, Thanks.

AndyK
February 15th, 2000, 09:25 AM
IMHO????
OTOH???
LOL Hmm, these are new ones!!!
Yeah I was looking into setup1.bas, setupres.bas and some other one that came with VB, kind of forgot about them since it was long time ago, hmmm but my installer program is like normal program, no super stuff, basically i'll call it a "copier" other then "installer" :), well thanks.