Results 1 to 14 of 14

Thread: Creating the Setup for the software

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Posts
    135

    Creating the Setup for the software

    I have developed an application and I have created the setup using Package and Deployment Wizard. This works fine for the application.

    I have a seperate exe which I want to be executed when the package is deployed i.e when the setup is installed at the clients end. I have included the exe in the setup but I am not able to run it.

    Is there any way I could tell Package and Deployment Wizard to run the particular exe ?

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697
    I'm fairly sure the P&D wizard doesn't give you the option you're after. You may want to look another setup program. ie. Inno

    HTH

  3. #3
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    Or can't you edit the source of the P&D Wizard? Not sure how though.

  4. #4

  5. #5
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    If it's written in VB, wouldn't it need the VB runtimes to install VB apps though?

  6. #6

  7. #7
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    Well yes. But if a person created a setup using P&D to install their app on a computer without the runtimes.... the installer wouldn't run because that it's self would need them right?

  8. #8
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    I just found my code. I made a number of changes to the VB5 Setup1.VBP project. One of the changes was to add the execution of an exe of mine (which programatically updated the user's existing database). Essentially all I did was to put the following line in the CopySection sub of basSetup1.

    nRC = Shell(gstrDestDir & "data\dbmaint.exe)

  9. #9
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Originally posted by TomGibbons
    Well yes. But if a person created a setup using P&D to install their app on a computer without the runtimes.... the installer wouldn't run because that it's self would need them right?
    I may not understand the point you are trying to make, but you can't install any VB app without the runtimes.

  10. #10
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    The installer automatically initializes the runtimes it requires hence the Loading File x of 8 or something, those files when the setup first starts are the runtimes required by the setup to function.

    And versions of Windows from 2000 up I think, has the basic runtimes already installed anyway.

  11. #11
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    Originally posted by MartinLiss
    I may not understand the point you are trying to make, but you can't install any VB app without the runtimes.
    That's not really what I was getting at. But nevermind

  12. #12
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    273
    Hi...

    The installer works like this (i think)

    The main program is made in C (something).. It extracts the vb runtimes and the "vb installer" (the one that does the hole work, the one that you can edit). And then the "vb installer" does it's work..
    Carl Odin

  13. #13
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141
    carlodin is on it. The installer has an exe that checks your machine for the vb runtime file. If they are there it just moves on. If not it installs them and then has you reboot so the system will register the files. This is why on an older OS you have to reboot the first time you try to install a VB6 app. and then restart the install.

  14. #14
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    Ahh Cool 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