I also encountered the same problem . But I had to resort to the CA to delete the temporary subdirectories.

IMPORTANT NOTICE:
Email from Actions is confidential and may be legally privileged.  If it is not intended for you, please delete it immediately unread.  The internet cannot guarantee that this communication is free of viruses, interception or interference and anyone who communicates with us by email is taken to accept the risks in so doing.


发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 代表 Voranc Kutnik
发送时间: 2006年6月27 21:33
收件人: Frederik Carlier; [EMAIL PROTECTED]
抄送: [EMAIL PROTECTED]
主题: Re: [WiX-users] Remove folder while uninstalling application

 

Sorry for late reply...

Files are created under "Program Files".

Thing is that actually directories and files are created inside this problematic directory. So after some time my initial directory structure:
- dir1
  - dir1.1
  - dir1.2
     - dir1.2.1
  - dir1.3
  ...

looks like this (for example):
- dir1
  - dir1.1
  - dir1.2
     - dir1.2.1
         - tmpdir1
           - tempfile1.1
           - tempfile1.2

        - tmpdir2
           - tempfile2.1

  - dir1.3
  ...

The problem is that directory "dir1.2.1" include new directories and files inside them. I really don't know how to use element <RemoveFile> to delete directory "dir1.2.1" (while uninstall) with all its subdirectories and files. Is it possible to recursively delete directory structure while uninstall?

Thanks,
Voranc

On 6/26/06, Frederik Carlier <[EMAIL PROTECTED]> wrote:
>  
>  
>  
> Voranc,
>  
> First off, creating temp files in your program files folder is something you
> may want to reconsider. Since normal users don't have write access to the
> program files folder, you will force your users to run your application with
> administrator priviliges. This may create a security risk.
>  
> As an answer to your problem, you may be interested in the RemoveFile
> element, as documented here:
>  
> http://wix.sourceforge.net/manual-wix2/wix_xsd_removefile.htm
>  
> I hope that answers your question, if not, feel free to come back to this
> list.
>  
> Frederik.
>  
>
>  ________________________________
>  Van: [EMAIL PROTECTED] namens Voranc
> Kutnik
> Verzonden: ma 26/06/2006 11:03
> Aan: wix-users@lists.sourceforge.net
> Onderwerp: [WiX-users] Remove folder while uninstalling application
>
>  
>  
>
> Hello!
>
> My installation create some folders on disk. For instance:
>
> - dir1
>    - dir1.1
>    - dir1.2
>       - dir1.2.1
>    - dir1.3
>    ...
>
> While using my application some (temp files with random names) files
> are created in directory "dir1.2.1". The problem is that while
> uninstalling application  directory "dir1/dir1.2/dir1.2.1" with all
> files in it is not deleted (all other directories are deleted: dir1.1,
> dir1.3,...).
>
> How can I delete directory "dir1/dir1.2/dir1.2.1" and all files in it
> while uninstalling application?
>
> Thanks,
> Voranc
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>  


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to