We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

SaLa
Posts: 6
Joined: Thu Jul 10, 2014 11:39 am

How to set Search Page Path at runtime

Hello there

Currently I migrate a WISE-Setup for my company.
One Task is that I read an INI-File, which is mostly placed next to the MSI and contains some paths I need for my application.
So I created a custom action which check a property called DGCONFIGSOURCEDIR, if the property value is set to "SOURCEDIR" it will be replaced with the value of the property SOURCEDIR.
I placed the action in Wizard Dialog Stage right before the searches action group as it is described here: http://www.advancedinstaller.com/user-g ... conds.html (ScreenX\ScreenY)
Until here everything works properly, the path is replaced in the right way and the INI-File is placed in the right location.

After that I made some Search-Entries (under Search-Page) to retrieve Values from my INI-File.
To test it I first used [SOURCEDIR] as location and it worked well.
Since I changed the location to [DGCONFIGSOURCEDIR] the installer won't find any values.
And I can't figure out why it's not working.
Do any of you guys know, what I do wrong?

best regards
SaLa
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to set Search Page Path at runtime

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

I'm not sure why you encounter this behavior. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to set Search Page Path at runtime

Hi,

I looked over the files you sent and it seems that your "SetDGCONFIGFILEDIR" custom action was placed in sequence after the "AI_AiIniLocator" custom action which performs the INI searches, thus the [DGCONFIGSOURCEDIR] property is not set when the searches are performed.

To order them correctly, you can go in the Table Editor page, "InstallUISequence" table and manually swap their "Sequence" values.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SaLa
Posts: 6
Joined: Thu Jul 10, 2014 11:39 am

Re: How to set Search Page Path at runtime

Hi Eusebiu

I changed the sequence number of these two table-entries you told me and it works now as expected.
Thank you for your fast and professional help!

Best regards
Sandro
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to set Search Page Path at runtime

You're welcome Sandro. I'm glad you got this working.

Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”