Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37

Thread: add a password to the install & expiry date

  1. #1

    Default add a password to the install & expiry date

    [Friday, April 22, 2005 2:41 AM]

    I am really struggling with the new interface and trying to find the
    settings that were so readily avaialable in SB4.

    1. I filled in the spot to create a password encrypted install but it
    won't prompt for the password during the setup. The help file says this:

    · Password Encrypted — Choose the target operating system of your
    application. Depending on this setting, SetupBuilder will either create
    a 32-bit, 16-bit or Internet-based setup program.

    Now I am really confused!

    2. My other most frequent option was setting the expiry date for the
    install package to a specific date. It seems that has moved to a script
    function and requires a calculation of some sort. Any chance that could
    be moved back to a spin button on the project properties for the simple
    minded like myself?

    TIA

    Parker

  2. #2

    Default Re: add a password to the install & expiry date

    [Friday, April 22, 2005 6:50 AM]

    Hi Parker,

    >1. I filled in the spot to create a password encrypted install but it
    >won't prompt for the password during the setup. The help file says this:
    >
    > · Password Encrypted — Choose the target operating system of your
    >application. Depending on this setting, SetupBuilder will either create
    >a 32-bit, 16-bit or Internet-based setup program.
    >
    >Now I am really confused!

    1. Go to the "Generator" tab of the "General Information" window.
    Check the "Password Encrypted Install" and then click the "Change
    Password..." button to set the password.

    2. From the main menu, select "View | User Interface | Dialogs"
    Right click on the "Loop Wizard" and select "Add" This will bring up
    the "Define Wizard Dialog" window and prompt for "Dialog Type" Select
    "Password" Use the Up/Down buttons to position the dialog box
    properly, I put it right after the Welcome dialog.

    The second step is needed in order to add the dialog that actually
    prompts for the password. If the dialog isn't there, the install
    doesn't prompt for the password.

    >2. My other most frequent option was setting the expiry date for the
    >install package to a specific date. It seems that has moved to a script
    >function and requires a calculation of some sort. Any chance that could
    >be moved back to a spin button on the project properties for the simple
    >minded like myself?

    I find no information on how to do this in SB5. The only thing that
    is in the help is in the "Generate Serial Numbers" topic:

    "SetupBuilder includes a variety of features designed to help you
    manage access to your software, including serial number lists and
    date-based expiration."

    I can't find any reference to it in the program...

    Best regards,

    Arnór Baldvinsson
    Icetips Software
    San Antonio, Texas, USA

  3. #3

    Default Re: add a password to the install & expiry date

    [Friday, April 22, 2005 7:31 AM]

    >>2. My other most frequent option was setting the expiry date for the
    >>install package to a specific date. It seems that has moved to a script
    >>function and requires a calculation of some sort. Any chance that could
    >>be moved back to a spin button on the project properties for the simple
    >>minded like myself?
    >
    >I find no information on how to do this in SB5. The only thing that
    >is in the help is in the "Generate Serial Numbers" topic:

    I was thinking about that, too. I've never done it, but the idea of an
    install that expires and prompts the user to go download the latest release
    is interesting.

    Ok, it's trivial in script. Using GetSystemInfo(Current Date) and a
    comparison with a hard coded future date is all it takes.

    The attached install prevents installation after 01-Jan-2005. Change the hard
    coded date and the user never knows the difference.

    --
    Best regards,

    Mark

  4. #4

    Default Re: add a password to the install & expiry date

    [Friday, April 22, 2005 9:24 AM]

    Hi Arnór,

    There is a "Validate Serial Number 1.sb5" demo script located in the
    \Examples folder

    Friedrich

    --
    Friedrich Linder
    CEO, Lindersoft
    www.lindersoft.com
    1.954.252.3910

  5. #5

    Default Re: add a password to the install & expiry date

    [Saturday, April 23, 2005 12:56 AM]

    Arnor:

    Thanks for this but?
    > 1. Go to the "Generator" tab of the "General Information" window.
    > Check the "Password Encrypted Install" and then click the "Change
    > Password..." button to set the password.
    >

    Did this, keyed it in twice as required.

    > 2. From the main menu, select "View | User Interface | Dialogs"
    > Right click on the "Loop Wizard" and select "Add" This will bring up
    > the "Define Wizard Dialog" window and prompt for "Dialog Type" Select
    > "Password" Use the Up/Down buttons to position the dialog box
    > properly, I put it right after the Welcome dialog.
    >

    Under the View Menu I don't have a User Interface option but I found the
    dialogs area and added the password prompt. Not sure if we have
    different versions or not but I am using the Developer Edition v5.0.113

    > The second step is needed in order to add the dialog that actually
    > prompts for the password. If the dialog isn't there, the install
    > doesn't prompt for the password.
    >
    >

    It now asks me for the password but I can key anything I like in there
    and it will proceed with the install!!!

    >>2. My other most frequent option was setting the expiry date for the
    >>install package to a specific date. It seems that has moved to a script
    >>function and requires a calculation of some sort. Any chance that could
    >>be moved back to a spin button on the project properties for the simple
    >>minded like myself?
    >
    >
    > I find no information on how to do this in SB5. The only thing that
    > is in the help is in the "Generate Serial Numbers" topic:
    >
    There are examples of scripts for this, I guess I had better buckle down
    and study both of them!!!

    Thanks you again for the helping hand, much appreciated.

    Regards

    Parker

  6. #6

    Default Re: add a password to the install & expiry date

    [Friday, April 22, 2005 9:24 AM]

    Parker,

    You can find sample scripts for both situations in the \Examples folder ;-)

    1. Dialog Demo 2.sb5
    2. Expiration Date Checking Demo.sb5

    Does this help?

    --
    Friedrich Linder
    CEO, Lindersoft
    www.lindersoft.com
    1.954.252.3910

  7. #7

    Default Re: add a password to the install & expiry date

    [Saturday, April 23, 2005 12:59 AM]

    Friedrich:

    I'll have to look at these samples closely. Arnor had given me the steps
    to make the password prompt happen but the install allowed me to key
    anything in there and the install worked. I must have missed something.

    I'll check the samples. At the risk of repeating myself however I must
    say the old way of acomplishing these two tasks was simplicity itself!

    Thanks

    Parker

  8. #8

    Default Re: add a password to the install & expiry date

    [Saturday, April 23, 2005 1:37 PM]

    Parker,

    > I'll check the samples. At the risk of repeating myself however I must say
    > the old way of acomplishing these two tasks was simplicity itself!

    The problem is that SB5 now supports more than 500 functions. Adding the
    above tasks to the IDE (and displaying more information in the "General
    Information screen") would make the IDE far too complex (see "Run Statement,
    and some Whining" thread).

    You can add password protection with only 6 lines of SetupScript code and
    expiration date checking with only 10 lines of code. The SB5 compiler does
    all the dirty work for you (handles the Windows events, etc. etc.).

    BTW, there is no need to add any line of code to support the built-in
    "Serial Number" feature (e.g. create 10,000 serial numbers and SB5 handles
    serial number verification).

    Hope the above makes sense.

    Friedrich

    --
    Friedrich Linder
    CEO, Lindersoft
    www.lindersoft.com
    1.954.252.3910

  9. #9

    Default Re: add a password to the install & expiry date

    [Saturday, April 23, 2005 1:24 AM]

    Friedrich:

    Just took a quick look at this. It looks like I have to include a couple
    lines of script to actually check for the specific password, is that
    correct? It would seem that providing the password in the prompts on the
    appropriate tabs does not automagically generate the script for me? Am I
    missing something?

    Regards

    Parker

  10. #10

    Default Re: add a password to the install & expiry date

    [Saturday, April 23, 2005 1:27 PM]

    Parker,

    "Password encrypted" only means the compiler encrypts the installer data
    stream. It does not ask for a password.

    To ask for a password, you only have to display a Password dialog and add
    the following 6 lines to your Wizard Loop structure:

    Define Wizard Dialog: PASSWORD (Password)

    Loop Wizard
    If %_SB_DIALOGID% Equals "$PASSWORDDIALOG$" Then
    If %_SB_PASSWORD% Not Equals "test" Then
    Message Box "Wrong Password - Try again" -- "Wrong Password"
    Cycle Loop
    End
    End
    End

    That's it You can now decide what to do with your password. For
    example, if it is "SecretCodeToInstallProfessional" then install the
    Professional Edition of your software. Or "SecretCodeToInstallStandard" to
    install the Standard Edition, etc., etc.

    Does this help?

    Friedrich

    --
    Friedrich Linder
    CEO, Lindersoft
    www.lindersoft.com
    1.954.252.3910

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Password controlled install
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 7
    Last Post: 05-11-2006, 05:00 AM
  2. Can I set an expiry date for the EXE?
    By griffo in forum SetupBuilder 'How Do I' Questions
    Replies: 3
    Last Post: 02-22-2006, 10:18 AM
  3. SetupBuilder 5 - setting an install password
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 8
    Last Post: 01-10-2006, 05:58 AM
  4. Cannot open and compress service file - error
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 6
    Last Post: 12-06-2005, 04:40 AM
  5. Install Date and Version information
    By Arnor in forum SetupBuilder
    Replies: 7
    Last Post: 12-06-2004, 09:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •