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.
![]()
Professional Software Development Tools
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.
![]()
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
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.
I will give that a try<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.![]()
Originally Posted by bnkrazy
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
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....Originally Posted by katanapilot
![]()
![]()
![]()
![]()
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.
Originally Posted by bnkrazy
Thanks
Really apreciate it
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.
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.
WOW, that was quick, time to play!!!
I will let u know
Originally Posted by bnkrazy
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-
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.