user defined property edit value - Advanced Installer Community
pki123
Posts: 1
Joined: Mon Apr 11, 2016 10:03 pm

user defined property edit value

Hey

Im doing a search to get the raw value of the installed version of .NET. I then use this value in a path for a new registry key. But it's not working after the product is installed because the value raw value im getting is containing the character: # how can i remove this form my user defined property and just get the integer value?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: user defined property edit value

Hello and welcome to Advanced Installer forums,

You will have to create a custom action that will parse the property value and remove the # character. By they way, you can take advantage of the existing functionality in Advanced Installer.

Please note that the setup will set the AI_DETECTED_DOTNET_VERSION property with the detected value of .Net Framework on the machine if you enable the .Net Framework launch condition from the Software Launch Conditions Tab. e.g. you can set the minimum version to the lowest version of .Net Framework (Net Framework 2.0).

The sample project is attached to this thread, so if you are interested to take a look directly at my project, you are more than welcome to download the ZIP file.

Best regards,
Dan
Attachments
Sample Detect .Net Framework version.aip.zip
(3 KiB) Downloaded 194 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”