Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2005
    Posts
    7

    How To Secure One Package Among Others?

    What I mean is If you have more then one package in your project but you want only one of those file packs to be secure by password how would you go by doing so? I want to limit A special few to the features guarded by this password and have everybody else have the standard install ,but also have the chose to select the passworded package if they have A password issued by me.



    In-Short:

    This package will be in the package select dialog but if user select it they will need the password to Install the contents of that package. And if they dont they cant select that package.



    Thankyou For you guys time. Hope I get A Reply Real soon.... Sorry for any spelling errors. was in a rush hehe =p

  2. #2
    Join Date
    Mar 2005
    Posts
    7
    =[ no reply's

  3. #3
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    SKy,

    What you could do is run a script "On Next" that will first check for the state of that special package, then ask the user for a password if it is checked. If their password does not check out then deselect that package through code. Here is some sample code to get you started:

    result = DlgSelectPackages.GetCategoryProperties(CTRL_SELEC T_PACKAGE_TREE, CTRL_CATEGORY_001);
    if result.State == CB_CHECKED then
    Pword = Dialog.PasswordInput("Enter Data", "Your answer:", MB_ICONQUESTION);
    -- do the password validation here
    -- do the password validation here
    -- do the password validation here
    if Valid == false then
    tProperties = {State=CB_UNCHECKED}
    DlgSelectPackages.SetCategoryProperties(CTRL_SELEC T_PACKAGE_TREE, CTRL_CATEGORY_001, tProperties);
    end
    end

    Adam Kapilik

  4. #4
    Join Date
    Mar 2005
    Posts
    7
    thankyou

  5. #5
    Join Date
    Jul 2005
    Posts
    1

    What if ...

    What if CTRL_SELECT_PACKAGE_TREE is nil ? I don't want to set a password but I want to set a sessionVar, but for some reason

    temp = DlgSelectPackages.GetCategoryProperties(CTRL_SELEC T_PACKAGE_TREE, CTRL_CATEGORY_003);

    returns a nil. I checked and found out CTRL_SELECT_PACKAGE_TREE is nil.

    (i'm doing all this in the 'On Next' page of 'Select Package' screen)

    cheers
    MA

  6. #6
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    From the help file:

    If the current screen does not contain the control, this action will fail. If this action fails, nil is returned. You can use Application.GetLastError to determine whether this action failed, and why.

    So are you sure that the control that you are specifying is valid?

    Adam Kapilik

Similar Threads

  1. Secure FTP
    By TJ_Tigger in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 08-19-2008, 04:46 PM
  2. Replies: 0
    Last Post: 06-22-2003, 06:47 AM
  3. Package Selection - Unable to create Hierarchy
    By praveen_v in forum Setup Factory 6.0
    Replies: 0
    Last Post: 11-20-2002, 11:25 AM
  4. SUF 6.0.0.0 bug: package variable state no recognized
    By pit in forum Setup Factory 5.0
    Replies: 1
    Last Post: 11-22-2001, 11:43 PM
  5. Install Type and Package Conditional
    By nancyp in forum Setup Factory 5.0
    Replies: 0
    Last Post: 06-05-2001, 03:31 PM

Posting Permissions

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