Re: [WiX-users] Set a Condition in custom action

2013-09-21 Thread Christopher Painter
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


[WiX-users] Uninstall removing user data

2013-09-21 Thread Christopher Painter
I'm having a senior moment with what seemed like a pretty simple and well 
established concept in windows installer: don't uninstall user data.

I created a very simple installer with a single component / file  ( 
test.txt ).  I tested with test.txt as the key file and with no key file ( 
directory).   In the test (on a clean VM of course )  I wanted to see if 
uninstall would leave the file behind after I had modified the file to 
contain user data.

Despite the creation data and modification date of the file being 
different,  MSI always uninstalled the file.

I'm a little puzzled as I didn't expect this.  Am I forgetting something?

--
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


[WiX-users] Set a Condition in custom action

2013-09-21 Thread Chaitanya
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