hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

SpawnWaitDialog

Hello,
how can i use a SpawnWaitDialog correctly?

I Have a variable named WAIT = 0.

Then it looks in the "Published Events"-Tab:

SpawnWaitDoalog removeDialog AI_INSTALL AND (WAIT = 0)
DoAction configureDatabase AI_INSTALL
[WAIT] 0 AI_INSTALL

What is my mistake here?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SpawnWaitDialog

Hi,

This event shows the dialog specified in the Argument field if its condition is FALSE. The dialog is displayed as long as the event's condition remains FALSE and is removed as soon as the condition becomes TRUE.

Please also note that the events order is top-bottom in the list, so every property used in a condition should be set before the event with that condition.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

Re: SpawnWaitDialog

Okay now it works and the wait dialog appears, but!
this --> "DoAction configureDatabase AI_INSTALL" is not running.
It only runs if i close the waitDialog manually.
:(
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SpawnWaitDialog

Hi,

As I said in my previous post, the events order in the list( top - bottom ), is the order in which they will be executed. If you want the "DoAction" event to always execute, you should place it above the "SpawnWaitDialog" event.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

Re: SpawnWaitDialog

Okay, but then i place it above, the SpawnWaitDialog not appears.
Where should i set the property for the SpawnWaitDialog?

Or, can you write me en example here?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SpawnWaitDialog

Hi,

Can you please send us the .AIP (project) to support at advancedinstaller dot com so we can investigate it? Please also attach a detailed explanation of what you are trying to achieve along with a reference to this thread.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hallolu
Posts: 22
Joined: Mon Dec 06, 2010 8:03 am

Re: SpawnWaitDialog

Hi,

sry but I haven't the project here :(
I'll try to explain you and if it's not enough, I would send it next week.
At first.. I want to execute 3 “DoAction”’s one after one.
For the execution time I want to have a “waitDialog” with the simple label: “Please wait”

In the “Install Parameters” on the “Product Information”-Tab I have the following Property:

Code: Select all

[Name]	[Value]
WAIT		0
Now I have in a Dialog named “RemoveDialog” and the “Next”-Button have the following “Published Events”:

Code: Select all

[EVENT]			[ARGUMENT]			         [Condition]
DoAction			removeOracle			      AI_INSTALL AND (TEXT_PROP = “YES”)
DoAction         removeClient 		        AI_INSTALL AND (TEXT_PROP = “YES”)
DoAction			UninstallPreviousVersions  AI_INSTALL
SpawnWaitDialog  waitRemove		        	WAIT = 1
[WAIT]		     1					        	AI_INSTALL

The Argument for the SpawnDialog “waitRemove” is false and the “DoAction”’s are placed above the “SpawnWaitDialog”-event.
If I start this, the SpawnWaitdialog does not appear but the DoAction’s are executing.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: SpawnWaitDialog

Hi,

The recommended approach in your case, if you want to spawn a wait dialog while your custom actions get executed is to set the public property "WAIT=1"( TRUE condition for your SpawnWaitDialog event ) from your custom actions and not from the event list. This way you can move the "SpawnWaitDialog" last and the "DoAction" events above it. Also, the custom actions should have an asynchronous execution. This would be the exact use scenario described by Microsoft in this article.

However, as you may find after testing and searching the internet, this scenario doesn't always work as expected. Advanced Installer is built on Windows Installer technology so I'm afraid there is nothing we can do to improve this event's usability.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”