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!

istok20
Posts: 2
Joined: Wed Oct 19, 2016 6:02 pm

parse msi filename and write to ini

I need to extract a part of my msi's filename,

e.g. msi filename is 'myprogram_111_.msi' and I need to extract '111' somehow during the setup and save it to ini file as a value of specific param.

I know how to work with INIs, but how to get '111' to [myvariable] ??
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: parse msi filename and write to ini

Hello and welcome to our forums,

To achieve what you need you can use the "OriginalDatabase" property to access the full path (including the file name too) of your MSI setup. For instance, you can develop your own custom action which will parse the "OriginalDatabase" property, extract the desired info from the MSI name and save it into another property.

If you have any questions let us know.

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

Return to “Common Problems”