Jump to content

Adding Password to folder containing a program


Recommended Posts

You appear to be asking for separate things:

1. Stop client from modifying the installation folder

2. Stop client from copying files from the installation folder

3. Stop client from using program without a password

1 and 2 are folder/file permission related, and you really shouldn't be modifying security on these folders, otherwise how would the client uninstall the software.

3 can be done although its kind of simplistic see below:

Local $sInputBox
While 1
    $sInputBox = InputBox("Registration", "Please enter the password", "***********", "*", 400, 140)
        If @error = 1 Then Exit
    If $sInputBox = "P@ssw0rd" Then ExitLoop
    Sleep(100)
WEnd

MsgBox(32, "Registration Complete", "Password Correct")

 

Link to comment
Share on other sites

54 minutes ago, Subz said:

You appear to be asking for separate things:

1. Stop client from modifying the installation folder

2. Stop client from copying files from the installation folder

3. Stop client from using program without a password

1 and 2 are folder/file permission related, and you really shouldn't be modifying security on these folders, otherwise how would the client uninstall the software.

3 can be done although its kind of simplistic see below:

Local $sInputBox
While 1
    $sInputBox = InputBox("Registration", "Please enter the password", "***********", "*", 400, 140)
        If @error = 1 Then Exit
    If $sInputBox = "P@ssw0rd" Then ExitLoop
    Sleep(100)
WEnd

MsgBox(32, "Registration Complete", "Password Correct")

 

To simplify my request, i have a program that can be installed silently, i tried to make the program portable and i added password to it but i faced some issue with the software, some features didn't work, so i left it silent but it can be modified and used by the clients, so that is why i asked for folder lock.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...