Create registry key-value using installed xml file - Advanced Installer Community
memoryblade
Posts: 3
Joined: Thu Apr 24, 2014 8:01 am

Create registry key-value using installed xml file

Hello there, I'm getting a problem here.
I have an xml file, and I'm using it during the install time to get arguments to create registry key-value pairs.
It is possible, right?
I use the xml search to get the arguments. And my problem is when I set the file path to [WindowsVolume]Config.xml, the test search gives me right result. But when I set it to my app dir, like [data_Dir]Config.xml, it returns blank.
And for sure, when I actually install the app, it's still blank.
Can anyone help?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Create registry key-value using installed xml file

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Can you please try to implement the workaround exposed in the "Problem with Search XML: backup some installed file tags" thread and let us know if this works?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
memoryblade
Posts: 3
Joined: Thu Apr 24, 2014 8:01 am

Re: Create registry key-value using installed xml file

Daniel wrote:Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Can you please try to implement the workaround exposed in the "Problem with Search XML: backup some installed file tags" thread and let us know if this works?

All the best,
Daniel
Thanks for your time. I had tried the solution in the "Problem with Search XML: backup some installed file tags", but it did't help.
By "InstallUISequence", I suppose what you were meaning is "InstallExecuteSequence". Cause the sequence of AI_XmlLocator in InstallUISequence is 1292, higher than CostFinalize, the sequence of which is 1000. Well, it still did't do the magic.
memoryblade
Posts: 3
Joined: Thu Apr 24, 2014 8:01 am

Re: Create registry key-value using installed xml file

I found this in the install log file.

Code: Select all

MSI (s) (70:78) [17:05:13:568]: Doing action: AI_XmlLocator
操作 17:05:13: AI_XmlLocator。Executing XML locators
操作开始 17:05:13: AI_XmlLocator。
MSI (s) (70:78) [17:05:13:569]: Skipping action due to msidbCustomActionTypeFirstSequence option.
操作结束 17:05:13: AI_XmlLocator。返回值 0。
What does this mean?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Create registry key-value using installed xml file

Hello,

I'm not sure why you are encountering 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?
MSI (s) (70:78) [17:05:13:569]: Skipping action due to msidbCustomActionTypeFirstSequence option.
Our "AI_XmlLocator" action has by default the "msidbCustomActionTypeFirstSequence" option enabled. The "msidbCustomActionTypeFirstSequence" option is set when a custom action is configured to run run only in Dialogs Stage for a full UI installation and only in Install Execution Stage for a silent install. This is equivalent with our "Skip action in Install Execution Stage if executed in Dialogs Stage" UI option from "Custom Actions" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”