View Full Version : How can I... (SN)
gil_soffer1
12-07-2003, 03:47 PM
Hey,
How can I change in the "Verify Serial Number" screen, the needed SNs
for ex: If today is December 07 then I want the setup to continue running only if the Serial Number that the user entered is 07-12.
so how can I add a command line to the "Serial Numbers List"?
Thanks, Gil.
I saw a solution here: http://www.indigorose.com/forums/showthread.php?threadid=4491&highlight=serial+number
which I could use for an example but the attachment link is broken.
Thanks Again, Gil.
Darryl
12-08-2003, 09:21 AM
It appears that the other post's attachment was created using another product of ours, AutoPlay Media Studio and would just create a list, but that couldn't be added to the serial number list.
Currently in Setup Factory, the serial number list can only be generated at design time so it is encrypted inside of the installation executable. There is no way to dynamically add to that list so it can be used on the Verify Serial Number screen.
You could use an Edit Boxes screen to prompt the user for their serial number. If you need to simply prompt the user for some information and then validate that, for example against a value hard coded in the install, or read from the Registry or something like that, you could peform the validation on the After actions tab and conditionally show another screen.
Perhaps a little more information about what you are trying to accomplish may help.
gil_soffer1
12-08-2003, 07:11 PM
Im trying to make a setup for some files and I don't want the client to install it on another date..
I want him to buy the product in day X and only to install it on that day (and that no-one will have the ability to install it after that day).
So I added the Edit Boxes Screen and an IF command in the After Tab and it never does the commands in the after tab.. so I decided to use Serial number..
:(
Darryl
12-09-2003, 07:26 AM
Lets explore the problems you were having on the AFTER tab of the Edit Boxes screen.
As a test, enter an IF control structure with the condition:
%Editbox1% = "07-12"
In between the IF and END IF, add a Show Message Box action.
Once you see that works, you could have something like:
%Editbox1% <> "07-12"
Hope that helps.
gil_soffer1
12-09-2003, 09:44 AM
Thnks, I found my problem and things goes well but I just cant understand one thing:
I have created a DLL file and I'm using it before installation so he isn't at the %srcDir%, how can I then use it?
another thing is that when I'm using the DLL from it's FULLPATH (c:\Prog.....\bla.dll), It's functions doesn't retrieve me any information.
one last thing :D : Is there any chance to muliply #CURRENTDAY# with #CURRENTYEAR# for example, without making this string 9*2003:confused:
THANK U ALL VERY MUCH!!!
I am not sure about the dll but as for the multiplication problem:
1) Use a Variable -> Assign Value action
2) Put #CURRENTDAY# * #CURRENTYEAR# in the value field.
3) Make sure that you check the box that says "Evaluate as Expression"
The variable that you specified now holds the value of #CURRENTDAY# * #CURRENTYEAR#
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.