Results 1 to 4 of 4

Thread: Prevent the user changing the install location filepath

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2008
    Location
    Essex, UK
    Posts
    149

    Prevent the user changing the install location filepath

    Is there a way to prevent the user from changing the install location filepath? in setup and deployment. I have seen this done before on many other software installers and cant seem to re-create this on mine. There doesnt appear to be a option to switch this feature off. I have searched google and forums and cant find any help on how to do this.

    Thanks for any help anyone can give in advance
    Development Enviroment: Visual Studio 2008, VB.NET

    Recommend Winspector, far better then SPY++
    http://www.windows-spy.com/

  2. #2
    Lively Member
    Join Date
    Sep 2009
    Location
    United States
    Posts
    83

    Re: Prevent the user changing the install location filepath

    Most people don't use premade installers, they make their own installer if they are a big company, and they code that into the installer. If you want to use VB.Net to do this then you can do this
    Code:
    If my.computer.filesystem.DirectoryExists("Dir Here") then

  3. #3
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Prevent the user changing the install location filepath

    VB5 had a "Setup Wizard" and VB6 had a "Package and Deployment Wizard." I assume you are referring to one of those.

    I'm not really sure why you'd want to do this. Users need to be able to change the install location for a number of reasons. Even if you create a Windows Installer package and suppress the the install location in that (an easy task) users can override the location by setting a value for the INSTALLDIR property.

    Maybe if you described the problem this causes people may suggest another solution that works for you.

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Prevent the user changing the install location filepath

    The P&D Wizard is a VB6 program that you can modify however you want and one of those modifications could be the hard-coding of the installation path, but why do you need to do that?

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