PDA

View Full Version : Order of install


Slobey
03-25-2005, 11:21 AM
Hi again,

I have a setup program that includes the option to install adobe reader. I also have a message that asks if the user wants to view the user guide. If the user picks the adobe package, then the reader is executed and reader is installed. If that package is not checked then the execution is skipped.

As it stands now, if the user picks the adobe package, the message to view the user guide seems to conflict with the installation of the reader. ( meaning the question pops up while the reader is being installed. This is what I have now, what I want to do is if the user picks the reader install that it installs the reader and then asks if he wants to view the user guide.


File.Open(SessionVar.Expand("%AppFolder%\\AdbeRdr70_enu_full.exe"), "", SW_SHOWNORMAL);

result = Dialog.Message("Read Me", "Would you like to view the user guide?", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
if result == IDYES then
File.Open(SessionVar.Expand("%AppFolder%\\V V Manhole Users Guide.pdf"), "", SW_SHOWNORMAL)
else
File.Open(SessionVar.Expand("%AppFolder%\\V V Manholes 1.0.exe"), "", SW_SHOWNORMAL)
end

What can I do?

Ted Sullivan
03-25-2005, 11:56 AM
Where are you putting that script? It should be on the last screen or the shutdown. Ideally though, you'd simply use a Checkbox screen at the end of the installer.

Slobey
03-25-2005, 12:28 PM
That is all in the shut down screen. Someone else mentioned using a checkbox. How would I do that?

Absynthe
03-25-2005, 02:01 PM
Replace File.Open with File.Run for the acrobat install and specify WaitForReturn and your popup box will not show until acrobat reader has finished installing.

Slobey
03-25-2005, 04:15 PM
Worked like a charm, thank you!