AIP-TIP? To reset a Property to empty use braces. - 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!

AnneTheAgile
Posts: 61
Joined: Wed Jun 08, 2011 9:53 pm

AIP-TIP? To reset a Property to empty use braces.

Yesterday from googling your wonderful docs/forums[1], I seemed to have discovered a very helpful tip.

I like to initialize all my property variables in the product page because then it's clear which ones I newly added. However, that was a problem with things like Checkbox properties. In the UI, a checkbox becomes unchecked only if its corresponding property is empty/unset. So to use a checkbox property say, ACHECK, it could not appear in the product properties initialization page... until I found elsewhere that I can write:

ACHECK = {}

and those curly braces cause the same as having an empty, unset property! Am I right about this?

[1] In google, searching with prefix site:advancedinstaller.com finds all AIP's information uniquely, unlike unfortunately items in Jetbrains such as Teamcity, alas.
[2]Refs
http://www.advancedinstaller.com/forums ... f=2&t=8773
Re: Set Text Box empty on Check Box checked
by cosmin » Tue Mar 17, 2009 7:25 am
CODE: SELECT ALL
[EDIT1] {} AI_INSTALL AND EDIT1 AND CHECK

http://www.advancedinstaller.com/user-g ... eters.html

http://www.advancedinstaller.com/forums ... =2&t=11142
Re: How to set default value for checkbox control
by capeuk » Thu Jun 17, 2010 12:25 pm
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: AIP-TIP? To reset a Property to empty use braces.

Hello,

In order to achieve what you want you can take a look on our Default a "Properties" to empty thread.

Let us know if this helped.

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

Return to “Common Problems”