On the issue with the files not being removed, I would check a verbose
log file & see what the problem is. Install your product using "msiexec
/i <msiname> /l*vx <logname>" & install it to somewhere like
C:\TestMyApp or something (you could use "msiexec /i <msiname> /l*vx
<logname> /qb MYAPPFOLDER=C:\TestMyApp" to skip the UI). Then use
"msiexec /x <msiname> /l*vx <logname>" to uninstall it (again use /qb
switch to skip the UI if it saves you time). You shouldn't need a
RemoveFolder for any folders created during install that aren't user
specific.

To get input from the user you will need to either write a custom UI
dialog or use a custom action. I would recommend the former over the
latter as it will teach you about WiX/WiXUI and is the more 'elegant'
solution in my opinion. Basically author a Dialog which asks the user
your question and sets a property if the user answers yes to your
question. Then use this property as a condition on your database feature
for uninstall. See the WiXUI sources for perfect examples on how to
author your own dialogs etc.

Best of luck & don't be afraid to ask questions on this list no matter
how trivial you think they may be as we've all had moments where our
minds go blank until someone else points out what was right in front of
us all along.

Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer
 
 


-----Original Message-----
From: ron cooper [mailto:[email protected]] 
Sent: 13 April 2009 05:48
To: [email protected]
Subject: [WiX-users] UN-Install Issue...

Dear All,

Thank you for discussing different things. It helps a lot to people like
me in the learning stage.

I have come across a situation where installed files are not getting
deleted if I choose installation other than Program Files/MyApp.

Also how to get input from user if I wish my database file get deleted
only if user agree to delete it; means I want to generate alert / pop up
while uninstalling.


Here is my code :


<Directory
            Id="TARGETDIR"
            Name="SourceDir">

            <Directory
                         Id="ProgramFilesFolder"
                         Name="PFiles">

                        <Directory
                                    Id="*MYAPPFOLDER*"
                                    Name="MyApp">

                                   <Component
                                                Id="MyComponent"


......................................

......................................

......................................

......................................


                                               <RemoveFolder

Id="RemoveFLDR"

On="uninstall" />

                                    </Component>

                         </Directory>

           </Directory>

</Directory>

<Feature
             Id="MyAppFeature"
             Title="My application"
             Description="The complete package."
             Display="expand"
             Level="1"
             ConfigurableDirectory="*MYAPPFOLDER*">

            <ComponentRef
                          Id='MyComponent' />

</Feature>


Anyone have idea???

Thanks,
Ron
------------------------------------------------------------------------
------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to