XML Search within a patch - Advanced Installer Community

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!

davidesharpe
Posts: 56
Joined: Fri Jul 01, 2011 4:56 am

XML Search within a patch

Does the XML Search get carried out on a patch ? if not can I make it ?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: XML Search within a patch

Hello,

By definition a patch captures the changes( within the patch rules ) from target to upgraded. If you include the XML search in the upgraded package, everything should work as expected.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
davidesharpe
Posts: 56
Joined: Fri Jul 01, 2011 4:56 am

Re: XML Search within a patch

In an extension to this , at 'search' time is the [APPDIR] property resolved ? as I'm trying to pull an XML value from a file that's installed in the previous version before patching. But it doesnt seem to be woring me, the XML search works fine on a hard coded 'c:\here\test.xml' location, but [APPDIR]test.xml doesnt work.
Is there property to use ? or way to do it ?

Also is there a way to leave a file behind after an uninstall ?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: XML Search within a patch

Hello,
In an extension to this , at 'search' time is the [APPDIR] property resolved ?
No, actually this is happening during the CostFinalize standard action.
Is there property to use ? or way to do it ?
For example, you can add another file search for that file and use the search name as a public property:
http://www.advancedinstaller.com/user-g ... rties.html
Also is there a way to leave a file behind after an uninstall ?
Yes, there is. Please follow this user guide article to find out how. To preserve resources between upgrades, you can also use the menu bar -> Wizards -> Resources -> Persistent User Data wizard.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”