rock
Posts: 2
Joined: Mon Oct 12, 2009 4:35 pm

Registry Search Substring

Is there anyway to get a substring of a registry search? For instance, I'm looking up a value that returns "C:\Program Files\My Program\Tools" and I want to trim off the "\Tools" part of the path before the files are installed. Is this possible?

Thanks,

Chris
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Registry Search Substring

Hello and welcome to Advanced Installer Forums,

I am afraid there is no direct support for achieving this. You will have to use a Custom Action to trim the path, then pass it back to the installer through a property. You can consult MSDN on writing custom action scripts to better understand how to pass data back and forth between the installer and your script.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”