tomas.maruska
Posts: 38
Joined: Fri Jul 19, 2013 11:49 am

Showing property text in ExitDialog

Hello,

I have serious problem to show text property in ExitDialog.

1. I have property 'DATABASE_BACKUP_PATH' defined in Install Parameters panel, and its default value is 'N/A'.
2. This property is changed by custom action during upgrade.
3. I want to show value of this property in exit dialog, but no success - I still see 'N/A' value.

Please find attached installation log, some screenshots of project settings and screen shot of exit dialog after installation, even when proprty was set.

I'm using AI v 11.6.3

Can you tell me what am I doing wrong?

Best regards,

Tomas Maruska
Attachments
screenshots.zip
(296.35 KiB) Downloaded 423 times
C4_14.0.463.2768_setup.log.zip
(179.17 KiB) Downloaded 471 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Showing property text in ExitDialog

Hi Tomas,

You can try to enable "Set persistent property" option from the Edit Property Dialog.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tomas.maruska
Posts: 38
Joined: Fri Jul 19, 2013 11:49 am

Re: Showing property text in ExitDialog

Hi Mihai,

Thanks for reply, but it does not work in my case. Regarding to log, it just writes this property into registry.

Please, find attached new log.

Regards,

Tomas Maruska
Attachments
C4_14.0.464.2769_setup.log.zip
(177.52 KiB) Downloaded 419 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Showing property text in ExitDialog

Dear Tomas,

It means that you are setting the property during Install Execution Stage. It's a Windows Installer limitation that property values cannot pass from Install Execution Stage to Wizard Dialogs Stage.
The workaround you have is to set the property through a custom action scheduled in the Wizard Dialogs Stage.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tomas.maruska
Posts: 38
Joined: Fri Jul 19, 2013 11:49 am

Re: Showing property text in ExitDialog

Hello Mihai,

Thanks for reply.

I've tried to pass value by my own, but I failed when I was unable to run custom action right before ExitDialog appears. It does not have Init Events tab as other dialog has.

Is there any way to to execute cutom action before ExitDialog to pass my variable into it?

Regards,

Tomas Maruska
MrBrendan
Posts: 6
Joined: Tue Mar 17, 2015 9:49 pm

Re: Showing property text in ExitDialog

If you can't solve your issue via which phase you are gathering the value, the only other way is to store it in a registry key during install, and recall it later when needed.

I don't know if AdvancedInstaller has the same as Installshield, but you can also google "CustomActionData" property and the ability to pass values from unsupported phases to later in the installer. (This is kind of hacky and i'm not sure it still works. But it's an old workaround.)

Return to “Common Problems”