Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 26

Thread: Password Issue

  1. #1
    Join Date
    Jan 2006
    Location
    Oviedo, FL
    Posts
    50

    Password Issue

    Guys

    I am still having issues with this password thing I want to be prompted upon checking packages boxes (seperate passwords) here is a screen shot, any advice will be helpfull.


  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    You will have to catch the package selection change in the "On Ctrl Message" event for the "Select Packages" screen. Then you will need to use the action SetupData.IsValidSerialNumber() along with a Dialog.PasswordInput() action.

    I hope this points you in the right direction

    Adam Kapilik

  3. #3
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    Another option may be to have multiple serial input boxes on a verify serial screen...you can add extra input boxes to capture any additional license codes at the same time (each with a specific label), instead of having to use popup dialogs (pet peeve).

    You could then check the serials entered and the packages selected to see if they match on the next event of the package screen and provide feedback if things don't add up.
    Last edited by bnkrazy; 01-19-2006 at 09:46 PM.

  4. #4
    Join Date
    Jan 2006
    Location
    Oviedo, FL
    Posts
    50
    Quote Originally Posted by bnkrazy
    Another option may be to have multiple serial input boxes on a verify serial screen...you can add extra input boxes to capture any additional license codes at the same time (each with a specific label), instead of having to use popup dialogs (pet peeve).

    You could then check the serials entered and the packages selected to see if they match on the next event of the package screen and provide feedback if things don't add up.
    I will give that a try<

  5. #5
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    I was a bit pressed for time before, let me know if you get hung up and I will provide more detail.

  6. #6
    Join Date
    Jan 2006
    Location
    Oviedo, FL
    Posts
    50
    Quote Originally Posted by bnkrazy
    I was a bit pressed for time before, let me know if you get hung up and I will provide more detail.

    Ok going back to this again,

    this is the current code on the CTRL message screen propertys for the selection packages.

    All I need is when the user checks the box to add them a serial/password or Lic in order for the option to be installable....

    I will keep posted as i keep testing!!!
    Code:
    if(e_CtrlID == CTRL_SELECT_PACKAGE_TREE) then
    	-- the control message is from the select packages tree...
    
    	-- if the current selection changed (i.e. a different package was selected),
    	-- update the description field
    	if(e_MsgID == MSGID_ONSELCHANGED) then
    
    		-- get the selected item's description
    		local strText = e_Details.Description;
    		
    		-- if the selected item is a package, add its size to the description
    		if(e_Details.Type == 1) then
    			strText = strText.."\n( "..String.GetFormattedSize(e_Details.Size).." )";
    		end
    		
    		-- update the description field
    		DlgStaticText.SetProperties(CTRL_STATICTEXT_BODY, {Text=strText});
    	end
    
    
    	-- if an item's state changed (i.e. a package was turned on or off),
    	-- update the 'Total space required:' message
    	if(e_MsgID == MSGID_ONSTATECHANGED) then
    
    		-- calculate the amount of space required for the installation
    		_SpaceRequired = SetupData.CalculateRequiredSpace();
    		
    		-- set %SpaceRequired% to a string with an appropriate unit of measurement (e.g. "0 bytes")
    		SessionVar.Set("%SpaceRequired%", String.GetFormattedSize(_SpaceRequired) );
    
    		-- from _SUF70_Global_Functions.lua:
    		-- update the 'Total space required:' message (expands any session variables in it)
    		g_UpdateStaticTextCtrl(CTRL_STATICTEXT_SPACEREQUIRED, "IDS_CTRL_STATICTEXT_SPACEREQUIRED");
    	end
    end

  7. #7
    Join Date
    Jan 2006
    Location
    Oviedo, FL
    Posts
    50
    I just thought about this one....

    would it be more simple to enter one "licence" number and depending what licence number you have enterd, that will give a diffrent "package" amount option.

    Either way, I just need a way to licence or passowrd diffrent pacakages.

    thanks
    Cal

  8. #8
    Join Date
    Jan 2006
    Location
    Oviedo, FL
    Posts
    50
    Quote Originally Posted by katanapilot
    I just thought about this one....

    would it be more simple to enter one "licence" number and depending what licence number you have enterd, that will give a diffrent "package" amount option.

    Either way, I just need a way to licence or passowrd diffrent pacakages.

    thanks
    Cal
    Any one....

  9. #9
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    Sorry, been busy again...

    I started working on a installer shell today to address this issue as I will need this functionality sooner or later...I will try and finish it up tomorrow and post it here.

  10. #10
    Join Date
    Jan 2006
    Location
    Oviedo, FL
    Posts
    50
    Quote Originally Posted by bnkrazy
    Sorry, been busy again...

    I started working on a installer shell today to address this issue as I will need this functionality sooner or later...I will try and finish it up tomorrow and post it here.

    Thanks

    Really apreciate it

  11. #11
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    Well, I am 99.999% done, and hit a roadblock. There is a small bug in the update procedure of the Select Packages screen that IR is aware of (http://www.indigorose.com/forums/sho...4558#post74558) that should be fixed soon...I will zip up what I have and post it in a bit (with more detail of the problem) to get you started at least.

  12. #12
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    Here is the SF7 package that shows a simple way to verify a core serial and addon serials... The points of interest are the Serials lists, Verify Serial Number screen On Next event and the Select Package screen Preload event.

    This method hinges on a core serial list and additional addon serial lists. The addon serial lists include a default serial of 000 to allow users to not install that addon. If a user enters a valid (non zero) serial, then the script on the Select Packages screen (Preload) will enable the package that corresponds to that addon serial list.

    Since there is a bug that prevents the Select Packages Screen from updating properly, this method should also be effective on a checkbox screen as well, although I have not had time to test that yet.
    Attached Files

  13. #13
    Join Date
    Jan 2006
    Location
    Oviedo, FL
    Posts
    50
    WOW, that was quick, time to play!!!

    I will let u know

  14. #14
    Join Date
    Jan 2006
    Location
    Oviedo, FL
    Posts
    50
    Quote Originally Posted by bnkrazy
    Here is the SF7 package that shows a simple way to verify a core serial and addon serials... The points of interest are the Serials lists, Verify Serial Number screen On Next event and the Select Package screen Preload event.

    This method hinges on a core serial list and additional addon serial lists. The addon serial lists include a default serial of 000 to allow users to not install that addon. If a user enters a valid (non zero) serial, then the script on the Select Packages screen (Preload) will enable the package that corresponds to that addon serial list.

    Since there is a bug that prevents the Select Packages Screen from updating properly, this method should also be effective on a checkbox screen as well, although I have not had time to test that yet.

    OK I got the concept here, and we are 90% there...
    what if they did not have an add on serial, cant it continue with out installing the add on (with out prompts)?

    KP-

  15. #15
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    If they leave the 000 serial in for the addon, it should continue on and set the package associated with that addon to not be installed. The code is in select package screen preload event.

    I was doing some testing while trying to get around the display refresh issue and may have left the Addon package changeable by the user...it should be set in the Select Package screen to not be installed and to not be changeable by the end user.

    I will take a look at it over the weekend and see if that is the case, also I will look at using a checkbox screen until the select packages screen is fixed.

    Actually, I believe the installer will actually go ahead and install the packages, it is just a refresh issue o the Select Packages screen that prevents it from showing that it will install. It may be easier/quicker to simply not show any addons in the select package screen and have a summary page instead that lists what is being installed...just get rid of the SP screen all together.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Password Protect.
    By EmacK in forum AutoPlay Media Studio 6.0
    Replies: 9
    Last Post: 11-14-2005, 12:55 PM
  2. Adding Password Protection
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 03:25 PM
  3. Reoccurring password
    By Bruce in forum AutoPlay Media Studio 4.0
    Replies: 6
    Last Post: 06-04-2003, 04:09 PM
  4. Password
    By Bruce in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 05-31-2003, 05:52 PM
  5. HOWTO: Add Password Protection to Your Application
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 03:39 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