rvellame
Posts: 18
Joined: Thu Jan 05, 2012 4:32 pm

File Removal Operation condition not workin

Hi all,

In my project, I've added a "File Removal" on the Files and Folders pane.

This removal was conditioned based upon a custom property. The property was added on "Install parameters" pane with default value "N" and changed based in a custom checkbox on the Wizard interface using external.MsiSetProperty witches sets it to "Y" when checked.

The problem is that the condition is completely ignored, and the file is always been removed, regardless to the value it is set to.

Any ideas?

Thanks in advance.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: File Removal Operation condition not workin

Hi,

Can you please tell us what version of Advanced Installer are you using? If your are not using the latest one, can you please try it?

Also, is the property public or private?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rvellame
Posts: 18
Joined: Thu Jan 05, 2012 4:32 pm

Re: File Removal Operation condition not workin

Hi,


I'm using 8.8.1 build 40989. Professional license type.

Is a private property when the checkbox "hide property" is checked? If it is, my property is PUBLIC, since I left it unchecked.

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

Re: File Removal Operation condition not workin

Hello,

The "Hide property" option prevents the property from being written into the log file. This may be used to prevent the installer from displaying passwords or other confidential information in the log file.
Here's the article that explains the difference between private and public properties.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rvellame
Posts: 18
Joined: Thu Jan 05, 2012 4:32 pm

Re: File Removal Operation condition not workin

Mihai,

The property is private. I imagine it should be public to make it work, right?

I'll change it's case and test the solution.

By the way, how can I (If possible) add arguments to the uninstall method (for example, to set a public property in the arguments) or the modify method?

Thanks a lot.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: File Removal Operation condition not workin

I imagine it should be public to make it work, right?
It is highly recommended because private properties cannot pass their values from UI to Execute sequence. Please try renaming the property and rebuild the package.
By the way, how can I (If possible) add arguments to the uninstall method (for example, to set a public property in the arguments) or the modify method?
To set a public property upon uninstall is very easy, just add a predefined custom action "Property Set with Formatted" under the Begin standard action, with the execution condition set to "REMOVE="ALL"".

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”