iomike
08-02-2005, 05:42 AM
As a newbie to SF7 forgive me if this simple question has been answered before. I have no problem building my installation but I want to give the user the option of viewing one of two .pdf files after installation. I have added 2 radio buttons to the "After Installation" screen and inserted the following code into the "On Next" actions: -
fAppFolder = SessionVar.Expand("%AppFolder%")
nSelControl = SessionVar.Expand("%RadioSelection%")
if nSelControl == CTRL_RADIO_BUTTON_01 then
File.Open(fAppFolder.."\\File1.pdf", "", SW_SHOWNORMAL)
elseif nSelControl == CTRL_RADIO_BUTTON_02 then
File.Open(fAppFolder.."\\File2.pdf", "", SW_SHOWNORMAL)
end
Irrespective of which button is selected neither of the "if" statements is ever true and neither file is opened. I have tried tracing the code but even if nSelControl is the same value as one of the buttons the file is still not opened, any ideas?
fAppFolder = SessionVar.Expand("%AppFolder%")
nSelControl = SessionVar.Expand("%RadioSelection%")
if nSelControl == CTRL_RADIO_BUTTON_01 then
File.Open(fAppFolder.."\\File1.pdf", "", SW_SHOWNORMAL)
elseif nSelControl == CTRL_RADIO_BUTTON_02 then
File.Open(fAppFolder.."\\File2.pdf", "", SW_SHOWNORMAL)
end
Irrespective of which button is selected neither of the "if" statements is ever true and neither file is opened. I have tried tracing the code but even if nSelControl is the same value as one of the buttons the file is still not opened, any ideas?