CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    I'm making setup program for my program, I was wondering if you could help.....

    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


  2. #2
    Join Date
    Feb 2000
    Location
    garden grove, california
    Posts
    64

    Re: I'm making setup program for my program, I was wondering if you could help.....

    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/wi...ll/crin332.zip


  3. #3
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: I'm making setup program for my program, I was wondering if you could help.....

    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 .......


  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: I'm making setup program for my program, I was wondering if you could help.....

    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.


  5. #5
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: I'm making setup program for my program, I was wondering if you could help.....

    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

  6. #6
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: I'm making setup program for my program, I was wondering if you could help.....

    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.


  7. #7
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: I'm making setup program for my program, I was wondering if you could help.....

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured