|
#1
|
|||
|
|||
|
Problem: Comparing CRC value
Good morning!
I have a little problem.... Have a textfile with a CRC value in it AND my installer gets the CRC value of the installer himself. Want to compare those value's with each other, but one is numberic and the other "characters". How can i convert one of those value's to compare them correctly? Brian |
|
#2
|
||||
|
||||
|
They should work properly with normal comparison (==). The Lua engine is pretty smart about runtime type conversion.
|
|
#3
|
|||
|
|||
|
Doesn't work here :(
The dialog box returns same value's, so normaly he don't go in the if loop "if (strCRCPreInstaller ~= strCRCCheckPreInstaller) then" You c the problem????? <code> strCRCPreInstaller = File.GetCRC(_SourceFolder.."\\UserPreInst"..strApp Ver..".exe"); -- CRC waarde uit file lezen tableCRCCheckPreInstaller = TextFile.ReadToTable(_SourceFolder.."\\UserPreInst "..strAppVer..".txt"); -- Tekstfile inlezen in een table strCRCCheckPreInstaller = tableCRCCheckPreInstaller[1]; -- Regel 1 in variabele zetten if (strCRCPreInstaller ~= strCRCCheckPreInstaller) then result = Dialog.Message("Debug", strCRCPreInstaller..".\n"..strCRCCheckPreInstaller ..".", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1); result = Dialog.Message("Waarschuwing", "CRC doesnt match", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1); Application.Exit(PreInstInvalidCRCCheck); end </code> Last edited by brianlesker; 10-18-2004 at 09:34 AM. |
|
#4
|
||||
|
||||
|
Take a look at the "String.ToNumber" action. That should allow you to compare the two numbers.
Hope that helps. Darryl |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Video Problem | ScottDuncan | AutoPlay Media Studio 5.0 | 0 | 07-10-2004 02:38 PM |
| PROBLEM: Setup Starts and then Crashes | Support | Setup Factory 5.0 | 0 | 10-15-2002 04:02 PM |
| PROBLEM: Setup Requests Disk 2 in a Single File Setup | Support | Setup Factory 6.0 Knowledge Base | 0 | 10-09-2002 03:04 PM |
| INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0 | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-03-2002 09:38 AM |
All times are GMT -6. The time now is 07:12 AM.








Linear Mode

