eric_darling
09-24-2004, 01:50 PM
Quick LUA oriented question.
I tried figuring this one out on my own, but I can't seem to get this to work. I'm trying to have the installer check on the status of two checkboxes in my project. If they are checked, then the project should open external documents (one is plain txt and the other is pdf).
What am I doing wrong?
(this code appears in the screen's On Next event handler):
ReadMeResult = DlgCheckBox.GetProperties(CTRL_CHECK_BOX_01);
if ReadMeResult == "true" then
File.Open(SessionVar.Expand("%AppFolder%\\ReadMe.txt"), "", SW_SHOWNORMAL);
end
WhatsNewResult = DlgCheckBox.GetProperties(CTRL_CHECK_BOX_02);
if WhatsNewResult == "true" then
File.Open(SessionVar.Expand("%AppFolder%\\whats_new.pdf"), "", SW_SHOWNORMAL);
end
Screen.Next();
I tried figuring this one out on my own, but I can't seem to get this to work. I'm trying to have the installer check on the status of two checkboxes in my project. If they are checked, then the project should open external documents (one is plain txt and the other is pdf).
What am I doing wrong?
(this code appears in the screen's On Next event handler):
ReadMeResult = DlgCheckBox.GetProperties(CTRL_CHECK_BOX_01);
if ReadMeResult == "true" then
File.Open(SessionVar.Expand("%AppFolder%\\ReadMe.txt"), "", SW_SHOWNORMAL);
end
WhatsNewResult = DlgCheckBox.GetProperties(CTRL_CHECK_BOX_02);
if WhatsNewResult == "true" then
File.Open(SessionVar.Expand("%AppFolder%\\whats_new.pdf"), "", SW_SHOWNORMAL);
end
Screen.Next();