I can't begin to express how wrong it is to do this with a command. Is
there a reason you wouldn't write a custom action to dynamically add all
of these files to the RemoveFile table? At least then you would be
transactional if the new installer is aborted or fails in any way.

-----Original Message-----
From: Maxim Kopeyka [mailto:m...@xtendx.com] 
Sent: Wednesday, March 28, 2012 8:48 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to check directory exists on hard drive?

Hi All,

I'm trying to delete all stuff from previous installation of product, in

this case I have to delete directory. This works fine:

<CustomAction Id="SetPathToCmd" Property="cmd" 
Value="[SystemFolder]cmd.exe" />
<CustomAction Id="DeleteAirApp" Property="cmd" ExeCommand='/C IF EXIST 
"[APPLICATIONROOTDIRECTORY]" RD /S /Q "[APPLICATIONROOTDIRECTORY]"' />

However black window appears during this process so I have two questions

 1. Is it possible to hide this black window?
 2. How to verify directory exists or not?

    -- 
    Kind Regards,
    Maxim Kopeyka

------------------------------------------------------------------------
------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to