Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Getting EndDialog to continue the installation

Updated: 25 May 2010 | 9 comments
CygnusX1's picture
0 0 Votes
Login to vote

I have a package that can not install with Outlook opened.  I display a dialog if Outlook is opened with a continue and exit buttons.  The dialog explains that the user should save work & exit out of Outlook. 
The events on the continue button are:
  DoAction, sequenced first, executes a script to check if Outlook is closed and setting property OUTLOOK_CHECK = 0 if it is
  EndDialog, sequenced second, with a condition of OUTLOOK_CHECK = 0 (also tried Not OUTLOOK_CHECK)

I placed a message box showing the property is indeed set ; but the dialog never "continues".  The installation only continues if I click the continue button a second time.
How can I get the installation to continue without clicking the continue button twice?

discussion Filed Under:

Comments

AngelD's picture
19
Nov
2009
0 Votes 0
Login to vote

I'm no expert in custom

I'm no expert in custom dialogs but try "removing" the property instead by setting the value to null (OUTLOOK_CHECK = "") and use a condition of NOT OUTLOOK_CHECK

CygnusX1's picture
19
Nov
2009
0 Votes 0
Login to vote

tried

That was my original state the property and condition.  Still have to click on Continue twice.

AngelD's picture
19
Nov
2009
0 Votes 0
Login to vote

If I recal; once the dialog

If I recal; once the dialog is launched it will not get updated so another dialog had to be invoked to do the next check...or something like that.
If you search for threads by "Bill MacEachern" you should find something regarding this.

CygnusX1's picture
19
Nov
2009
0 Votes 0
Login to vote

I have searched and did not

I have searched and did not find anything useful.  I have added the dialogs to the WiseDlgSequence with the same results.  Still searching on Mr. MacEachern threads.

EdT's picture
20
Nov
2009
0 Votes 0
Login to vote

Bill MacEachern's postings

Bill MacEachern's postings are most likely still in the old forum software, as not all of the content was migrated to Connect, and unfortunately he's no longer a regular poster.

I assume you are checking for Outlook running with some VBscript or WMI script.
My suggestion would be to handle the decision tree within this script rather than within a dialog.

In other words, your code checks for Outlook running, and advises the user to close Outlook then press continue, at which time you again check to see if Outlook is running or not, and sets a property value. Immediately after this custom action is a Type 19 Custom action which runs only if the property value shows that outlook is still running, terminating the install with an appropriate message.

Incidentally, should a client choose to perform a silent install, and Outlook is running, how will you handle this scenario?  If you need to prevent silent installs, now is the time to code for it.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

clown_college's picture
20
Nov
2009
0 Votes 0
Login to vote

Bill MacEachern's postings

Hi.  Can you tell me where the "old forums" are?  Can I look on wayback for Bill's posts??

thanks

EdT's picture
23
Nov
2009
0 Votes 0
Login to vote

Old forums no longer exist

Symantec Connect was a major project to bring together the previous Symantec forums, the previous Altiris forums and the previous Juice forums onto a single platform. Although some of the more recent content was migrated, I do not believe any of the archive content from the Altiris/Wise forums (ie stuff older than 180 days) made it across. The old platforms no longer exist, so there is nowhere else to search for Bill's postings.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

CygnusX1's picture
20
Nov
2009
0 Votes 0
Login to vote

This will be a pull

This will be a pull installation so the user will not have an option to run silently.  Unfortunately, the client does not want the application to quit but rather wait for Outlook to be closed. 
Sequencing:
1.  A script is executed to determine if Outlook is running
--- 2a. If Outlook is running display a dialog asking the user to save their work and close Outlook
--- 2b. Upon clicking Continue execute a script to check if Outlook is closed.  Return to the dialog if not.
3. Continue installation when Outlook is completely closed

Again, all works fine except the user needs to click Continue twice in step 2a.  It is like the EndDialog is not resolving the condition the first time even though it is being set correctly.

CygnusX1's picture
20
Nov
2009
0 Votes 0
Login to vote

I had to add a Set Property

I had to add a Set Property event to set OUTLOOK_CHECK to 0 to get the dialog to work correctly.