velja
Posts: 45
Joined: Tue May 14, 2013 12:01 pm

Cant get condition to work, very simple

I added feature to the project and I want it to install based on property value.
Property name is HIDDEN it comes from command line and its value is 1 => Check log on the bottom.
However this condition always evaluates to true: HIDDEN<>"1" AND HIDDEN<>1
What am I missing here?

Few parts from log:
MSI (s) (78:38) [12:56:58:114]: Command Line: Hidden=1 AI_SETUPEXEPATH=C:\Users\velja\Documents\Visual Studio 2010\Projects\OutDisk_4\OutDisk.AddIn\AISetupProject\Setup Files\setup.exe SETUPEXEDIR=C:\Users\velja\Documents\Visual Studio 2010\Projects\OutDisk_4\OutDisk.AddIn\AISetupProject\Setup Files\ EXE_CMD_LINE=/exenoupdates /exelang 0 /noprereqs /qb Hidden=1 /L*V "C:\test\OD.log" CURRENTDIRECTORY=C:\Users\velja\Documents\Visual Studio 2010\Projects\OutDisk_4\OutDisk.AddIn\AISetupProject\Setup Files CLIENTUILEVEL=2 CLIENTPROCESSID=9608

MSI (s) (78:38) [12:56:58:117]: PROPERTY CHANGE: Adding HIDDEN property. Its value is '1'.
velja
Posts: 45
Joined: Tue May 14, 2013 12:01 pm

Re: Cant get condition to work, very simple

When I moved components to feature, components condition persisted from previous feature so it was different than condition of feature in which it resides.
I fixed that and it looks like working now.

I apologize for inconvenience.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Cant get condition to work, very simple

Hello,

I'm glad you got this working.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”