Results 1 to 9 of 9

Thread: Setup File Which Also Loads Subdirectories [RESOLVED] (with thanks)

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    6

    Resolved Setup File Which Also Loads Subdirectories [RESOLVED] (with thanks)

    Hi!
    I wish to make a setup file for my program prepared with vb. Actually I have already done it.
    But I have something missing:
    I have my help files, image files and music files in different subdirectories, which should stay under the directory where my application will be installed. This is my first time using "Package and Deployment Wizard" and I do not know how to add my subdirectories to the package, such that the setup program prepared also loads those subdirectories automatically during installation.
    I would appreciate your helps highly, and give thanks ahead.
    OS
    Thanks a lot
    Last edited by vbsirelvb; Feb 9th, 2005 at 03:21 AM.

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Setup File Which Also Loads Subdirectories

    its very simple, when you are making your setup package, and you get to the installation locations screen, just change the path accordingly... see image below

    by default it puts your files in apppath. I appended \data to the end of it.. and the readme.txt will install to a data folder
    Attached Images Attached Images  

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    6

    Question Re: Setup File Which Also Loads Subdirectories

    Quote Originally Posted by kleinma
    its very simple, when you are making your setup package, and you get to the installation locations screen, just change the path accordingly... see image below

    by default it puts your files in apppath. I appended \data to the end of it.. and the readme.txt will install to a data folder
    Ok. It worked, and I thank you very much.
    But still a minor problem! I had to rename the folder names from "$(apppahth)" to "$(apppahth)\muzik" one by one. I had about 150 files on that directory which had taken a lot of time. Was there a way to do it in one go?

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Setup File Which Also Loads Subdirectories

    welcome to the wonderful world of the HORRIBLE PDW... I don't know what Microsoft was thinking (probably thinking that any programmer who buys VS will also buy a real installer) when they wrote the PDW, but its got to be the worst program for distrubuting your apps... I personally use INNO, its awesome once you get the hang of it.. (also unlike PDW it can package your program into 1 file if you want, instead of a minimium of 4)

    all is not lost though... what you can do is instead of changing it in there (where I showed you above), leave it as apppath, and then once your setup is all compiled and done, open the setup.lst file it created in notepad, and you can edit the file paths in there, you could highlight all the files you want in a certain directory, and do a find replace on the apppath to make it apppath\mydirectory. Know what I am saying?

    of course you would have to do this everytime you recompiled your setup.. versus doing it in the PDW, where it will save those settings...

    anyways... like I said you may want to try INNO, I am working on creating a sample INNO script for installing a VB6 application, and I will be posting it in our forum for application distribution (our forum all about installing the software you write) so people can get a good look at how easy INNO is to use for a VB6 app...

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Setup File Which Also Loads Subdirectories

    kleinma,

    I was just curious... ********** creates a script for a VB install. Is there anything special that you are adding? I would like to see your script.

  6. #6
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Setup File Which Also Loads Subdirectories [RESOLVED] (with thanks)

    I write them from scratch Randem... honestly I don't use your product because of this reason...

    I do a lot of manual formatting of things, and I use a lot of pascal scripting. I also use the ISPP, which is totally awesome for using the same script but altering the data in it...

    I just like having that type of control over my install scripts... probably why I do a lot of HTML manually still... probably most people are not like this anymore (newer programmers anyway)

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Setup File Which Also Loads Subdirectories [RESOLVED] (with thanks)

    kleinma,

    I was just wondering about the sample script. I wanted to know what was going into your scripts, possibly to add new features to ********** if they are general enough.

  8. #8
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Setup File Which Also Loads Subdirectories [RESOLVED] (with thanks)

    ok I will get it done as soon as I have a chance.. one thing I do (which maybe you do as well) is that I include the VB6SP6 self installing runtime file.. instead of including the runtimes as seperate files..

    also you can run it with silent params, and you can specify a text for INNO like "Installing VB runtimes..." while its running it in the [RUN] section.. looks a little more professional

    does your program make use of ISPP at all?

  9. #9
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Setup File Which Also Loads Subdirectories [RESOLVED] (with thanks)

    kleinma,

    No, ISPP isn't used yet. I attempted using the MS rVB untime installation for but it doesn't work in silent mode on 9x systems, so I don't use it.

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