Jump to content

Possible bug while using arrays


Recommended Posts

Hey All,

I think I may have found a bug while creating a multi-dimensional array.

Below is the code:

The problem occurs suddenly in the last array entry. Notice the first string ""HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\12345678910111111111"

calling Verify_Reg() gets the error "Missing right bracket ')' in expression.:"

Now take away about 4 characters from the string and run. Now it runs properly.

Am I missing something stupid? I have longer strings defined prior to this and they work fine.

My great thanks for wading through the array.

- Nip

-----------------------------------------------------

Verify_Reg()

Func Verify_Reg()

Dim $test

$test = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4F1E0C40-196C-4BE4-BC12-4295C935F1B4}\","InstallLocation")

Dim $regHell[38][3]= [["HKEY_CLASSES_ROOT\.idf","","InspireData.Database.File"], _

["HKEY_CLASSES_ROOT\InspireData.Database.File","","InspireData Data File"], _

["HKEY_CLASSES_ROOT\InspireData.Database.File\DefaultIcon","",$test & "inspiredata-database.ico,0"], _

["HKEY_CLASSES_ROOT\InspireData.Database.File\shell","",""], _

["HKEY_CLASSES_ROOT\InspireData.Database.File\shell\open","",""], _

["HKEY_CLASSES_ROOT\InspireData.Database.File\shell\open\command","","""" & $test & "inspiredata.exe"" ""%1"""], _

["HKEY_CLASSES_ROOT\InspireData.Database.File\shell\open\ddeexec","","[OpenFile(""%1"")]"], _

["HKEY_CLASSES_ROOT\InspireData.Database.File\shell\open\ddeexec\Application","","InspireData"], _

["HKEY_CLASSES_ROOT\InspireData.Database.File\shell\open\ddeexec\ifexec","","[]"], _

["HKEY_CLASSES_ROOT\InspireData.Database.File\shell\open\ddeexec\Topic","","InspireData"], _

["HKEY_CLASSES_ROOT\Installer\Features4C0E1F4C6914EB4CB2124599C531F4B","gdiplus_Files",""], _

["HKEY_CLASSES_ROOT\Installer\Features4C0E1F4C6914EB4CB2124599C531F4B","inspiredata_Files",""], _

["HKEY_CLASSES_ROOT\Installer\Features4C0E1F4C6914EB4CB2124599C531F4B","msvcr80_legacy_Files",""], _

["HKEY_CLASSES_ROOT\Installer\Features4C0E1F4C6914EB4CB2124599C531F4B","msvcr80_sxs_Files",""], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B","",""], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B","AdvertiseFlags","388"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B","Assignment","1"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B","AuthorizedLUAApp","0"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B","Clients",":"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B","InstanceType","0"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B","Language","1033"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B","PackageCode","2B336F12D6C76704F968E67FD5C93736"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B","ProductIcon","C:\WINDOWS\Installer\{4F1E0C40-196C-4BE4-BC12-4295C935F1B4}\ARPPRODUCTICON.exe"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B","ProductName","InspireData"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B","Version","16777217"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B\SourceList","LastUsedSource","n;1;C:\Documents and Settings\" & @UserName &"\Local Settings\Application Data\Downloaded Installations\{21F633B2-7C6D-4076-9F86-6EF75D9C7363}\"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B\SourceList","PackageName","InspireData.msi"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B\SourceList\Media","1","DISK1;1"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B\SourceList\Media","DiskPrompt","[1]"], _

["HKEY_CLASSES_ROOT\Installer\Products4C0E1F4C6914EB4CB2124599C531F4B\SourceList\Net","1","C:\Documents and Settings\" & @UserName & "\Local Settings\Application Data\Downloaded Installations\{21F633B2-7C6D-4076-9F86-6EF75D9C7363}\"], _

["HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InspireData.Database.File","","InspireData Data File"], _

["HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InspireData.Database.File\DefaultIcon","","C:\Program Files\InspireData\inspiredata-database.ico,0"], _

["HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InspireData.Database.File\shell\open\command","","""" & $test & "inspiredata.exe"" ""%1"""], _

["HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InspireData.Database.File\shell\open\ddeexec","","[OpenFile(""%1"")]"], _

["HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InspireData.Database.File\shell\open\ddeexec\Application","","InspireData"], _

["HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InspireData.Database.File\shell\open\ddeexec\ifexec","","[]"], _

["HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InspireData.Database.File\shell\open\ddeexec\Topic","","InspireData"], _

["HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\12345678910111111111","",""]]

EndFunc

Link to comment
Share on other sites

Am I missing something stupid? I have longer strings defined prior to this and they work fine

yes. The max. length of a line in AU3 is 4095 characters. See FAQ. Q15.

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Thanks Kurt,

My bad. I should have read the docs a little more closely.

Thanks again for taking the time to look at this.

- Nip

no problem. That's why there is a help/support forum.

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...