Installed features to parameters of custom action - 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!

tp0189
Posts: 19
Joined: Fri Dec 02, 2011 10:46 am

Installed features to parameters of custom action

Hi,

I have the need to send which features have been installed to a custom action via its command line parameters. I searched through the properties, in particular under 'Feature Installation' but I couldn't find what I was looking for.

So say I have two features A and B

I want to pass whether they are installed to my action e.g. action.exe [A]

Where [A] and evaluate to 1 if the feature has been installed.

Maybe there is an alternative to this method that I am not aware of, however this is how I used to achieve similar functionality with Visual Studio Setup projects.

Thanks for your help

Tom
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Installed features to parameters of custom action

Hi Tom,

You can try using the ADDLOCAL property. It contains a comma separated list of the installed features.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tp0189
Posts: 19
Joined: Fri Dec 02, 2011 10:46 am

Re: Installed features to parameters of custom action

Hi Cosmin,

Thanks very much, exactly what I was looking for.

Tom
tp0189
Posts: 19
Joined: Fri Dec 02, 2011 10:46 am

Re: Installed features to parameters of custom action

Actually, additionally...

Is there also a property for whether the start/desktop shortcuts were installed so that I can pass that to my application too ?

Thanks

Tom
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Installed features to parameters of custom action

Hi Tom,

I am unaware of such a property in Windows installer. If you need to detect if a file already exists in a certain location on the target machine, you can add a search for it from the Search page.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tp0189
Posts: 19
Joined: Fri Dec 02, 2011 10:46 am

Re: Installed features to parameters of custom action

Hi Mihai,

Thank you for the quick response. No worries, it's not a essential, I just wanted to check if there was such functionality. The search function looks like a decent alternative.

Many thanks for your help

Tom

Return to “Common Problems”