Results 1 to 4 of 4

Thread: P&D: Force installation to a certain directory? *Resolved.*

  1. #1

    Thread Starter
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330

    P&D: Force installation to a certain directory? *Resolved.*

    Hi,
    Is there a way to not allow the user to change the directory where the program will be installed?

    Editing the Setup.Lst file maybe?

    Thanks,
    Al.
    Last edited by Al Smith; Jan 21st, 2003 at 01:19 PM.
    A computer is a tool, not a toy.

  2. #2
    Addicted Member DJ_Catboy's Avatar
    Join Date
    Jan 2003
    Location
    Suffolk, UK
    Posts
    159
    Hi,

    There is a way to do this - it is called "Ditch the awful package and deployment wizard"!!!!

    If you go to the msdn.microsoft.com site you should be able to search for and download the "Windows Installer" creator. This creates .MSI files which are automatically processed by a service that runs under windows - there are so many advantages to using this too
    1) full control over the location - it even creates registry entries for you at install time - cool!
    2) Reduces the overall size of your distributed files - there is no stored screens, etc...
    3) You can deploy a single file - makes things so easy!

    I have created windows installer packages and deployed them to WinNT 4 and W2K - havent tried XP although I am sure it will work!

    Check it out..

    DJ Catboy

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    I haven't had occasdion to look at the VB6 setup program code, but back when I was using VB5 I modified the VB code behind Setup1.exe to warn a user if they changed the installation directory to something other than the default. I did that by modifying the code in frmPath.cmdOK_Click. You could do something similar and force the choice back to the default, or you could simply disable the txtPath textbox.

  4. #4

    Thread Starter
    Hyperactive Member Al Smith's Avatar
    Join Date
    May 1999
    Location
    Marcellus, MI. USA
    Posts
    330
    Thanks. I found in setup1.frm in the Form_Load event a place to force the installation in the default directory listed in Setup.Lst.

    I'm also going to explore the Windows Installer idea.

    Thanks again.
    Al.
    A computer is a tool, not a toy.

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