There isn't a custom action type that sets a condition. In fact custom
actions and conditions aren't directly related. ControlEvent Table entries
and Sequence Table entries have conditions. DoAction ControlEvents can
reference the custom action.
The condition is merely the evaluation of an expression that typically
contains a property. You would need to write a custom action that checked
for the existence of your virtual directory and set a property with the
result. You could then use that property in a condition for your other
custom action.
But if you are using WiX's built in IIS extension, the vdir shouldn't be
getting created during a failed install. The rollback should remove it
automatically. Are you using this?
From: "Chaitanya"
Sent: Saturday, September 21, 2013 5:30 AM
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] Set a Condition in custom action
Hi,
Iam setting a custom action for creating IIS virtual
Directories.when i install the MSI the IIS virtual directory is creating
Fine no issue.
In, custom action i gave a condition called "NOT Installed and NOT
PATCH" when i give this condition the custom action will run only the
time when it Installs nor UN-install nor repair/remove.
But,If the installation is failed it is creating the virtual directory
when I try to install it again i have to delete the IIS virtual
directory and have to proceed the Installation.
Is there any condition to check the Virtual directory,If the virtual
directory is present the installation have to skip or else it has to
create.
Thanks & Regards,
Chaitanya.
--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
--
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users