jassing
10-01-2009, 06:05 PM
Seriously...
here's the deal: I have a long time client that is reporting that my code is 'storing the results'. I cannot see a problem with the code. So, enter my post; find "the fault" and I'll pay you $100. (yes, United States dollars)
Here's the background.
If any of a "certain set" of files is missing from a specific folder, the install should report what file(s) are missing, and then refuse to continue.
My client reported that a file (SYS_FUN_03_SQLTABS_.003) was missing. He copied the file to the proper directory, and re-ran the install; but the install still reported the file as missing.
Here is the code from a listbox screen's "on preload"
local tFiles = {"Actions.003","AdMEN.003","Admin.003","AdREP.003","BioCHECK.003","Classes.003","DAL.003","Guardian.003","IMPORT.003","Join.003","LAPrint.003","Purpose.003","SchCkIN.003","SORHits.003","Students.003","SYS_FUN_02_SQLINP_.003","SYS_FUN_03_SQLTABS_.003" ,"Teachers.003","Vendor.003","Voluntrs.003"};
local x;
StatusDlg.Show();
StatusDlg.SetTitle(SessionVar.Expand("%ProductName%"))
StatusDlg.SetMessage("Please wait...")
StatusDlg.ShowProgressMeter(true);
StatusDlg.SetMeterRange(0,Table.Count(tFiles) )
for x=1,Table.Count(tFiles) do
local cFile = _ProgramFilesFolder.."\\SchCkIn\\"..tFiles[x];
StatusDlg.SetMeterPos(x);
StatusDlg.SetStatusText(tFiles[x])
if not File.DoesExist(cFile) then
DlgListBox.AddItem(CTRL_LIST_BOX, tFiles[x]);
end
end
StatusDlg.Hide();
if DlgListBox.GetCount(CTRL_LIST_BOX) < 1 then
Screen.Skip();
end
Any other errors, than a reason why it would report this file (and only this one file) as "still missing" will not win the $100 -- but will spank me into feeling pathetic and miserable.
-josh
PS: Only the 1st "fault finding" post will get the $ -- so don't just copy someone's answer thinking I'm gonna pay out over and over ;-)
here's the deal: I have a long time client that is reporting that my code is 'storing the results'. I cannot see a problem with the code. So, enter my post; find "the fault" and I'll pay you $100. (yes, United States dollars)
Here's the background.
If any of a "certain set" of files is missing from a specific folder, the install should report what file(s) are missing, and then refuse to continue.
My client reported that a file (SYS_FUN_03_SQLTABS_.003) was missing. He copied the file to the proper directory, and re-ran the install; but the install still reported the file as missing.
Here is the code from a listbox screen's "on preload"
local tFiles = {"Actions.003","AdMEN.003","Admin.003","AdREP.003","BioCHECK.003","Classes.003","DAL.003","Guardian.003","IMPORT.003","Join.003","LAPrint.003","Purpose.003","SchCkIN.003","SORHits.003","Students.003","SYS_FUN_02_SQLINP_.003","SYS_FUN_03_SQLTABS_.003" ,"Teachers.003","Vendor.003","Voluntrs.003"};
local x;
StatusDlg.Show();
StatusDlg.SetTitle(SessionVar.Expand("%ProductName%"))
StatusDlg.SetMessage("Please wait...")
StatusDlg.ShowProgressMeter(true);
StatusDlg.SetMeterRange(0,Table.Count(tFiles) )
for x=1,Table.Count(tFiles) do
local cFile = _ProgramFilesFolder.."\\SchCkIn\\"..tFiles[x];
StatusDlg.SetMeterPos(x);
StatusDlg.SetStatusText(tFiles[x])
if not File.DoesExist(cFile) then
DlgListBox.AddItem(CTRL_LIST_BOX, tFiles[x]);
end
end
StatusDlg.Hide();
if DlgListBox.GetCount(CTRL_LIST_BOX) < 1 then
Screen.Skip();
end
Any other errors, than a reason why it would report this file (and only this one file) as "still missing" will not win the $100 -- but will spank me into feeling pathetic and miserable.
-josh
PS: Only the 1st "fault finding" post will get the $ -- so don't just copy someone's answer thinking I'm gonna pay out over and over ;-)