Thanks David, I will try this and let you know

On 21-03-2014 19:48, David Watson wrote:
> You need to persist the VIRTUAL_DIR_VAL (store it in the registry) so the 
> uninstaller knows it has changed otherwise it will use the default values.
>
> http://robmensching.com/blog/posts/2010/5/2/the-wix-toolsets-remember-property-pattern
>
>
> -----Original Message-----
> From: Suvrajyoti Panda [mailto:suvrajyo...@contata.co.in]
> Sent: 21 March 2014 12:53
> To: General discussion about the WiX toolset.
> Subject: [WiX-users] Uninstall removing the default Virtual directory and not 
> the one user created
>
> Hi All,
>
> I am creating virtual directory through WIX installer. The installer
> allows user to change the name of the virtual directory through a custom
> UI dialogue. The default virtual directory is PFWServiceApplication. If
> the user changes this to say PFWServiceApplication_Test then the correct
> virtual directory is created and installation works fine. But the
> uninstall removes the default virtual directory. For instance i had
> created the default virtual directory PFWServiceApplication manually for
> testing and then used the installer to create the
> PFWServiceApplication_Test virtual directory. On uninstalling the
> PFWServiceApplication gets fully removed and the for
> PFWServiceApplication_Test only the node is left under the default
> website.  What i want is that on uninstall only that virtual directory
> that i installed through the installer should be removed. Below is my code.
>
> <Fragment>
>           <?include ConfigurationInitialize.wxi ?>
>
>           <!-- Install to default web site -->
>           <iis:WebSite Id="DefaultWebSite" Description='Default Web Site'>
>               <iis:WebAddress Id="AllUnassigned" Port="80" />
>           </iis:WebSite>
>
>           <DirectoryRef Id="MYWEBWEBSITE">
>               <!-- Configuring app pool -->
>               <Component Id="MyWebAppPoolCmp"
> Guid="{9413B3CA-4CF1-4E3C-8F13-4E48291A8E22}" KeyPath="yes" Permanent="no">
>                   <iis:WebAppPool Id="MyWebAppPool" Name="[WEB_APP_NAME]"
> ManagedRuntimeVersion="v4.0" ManagedPipelineMode="Integrated" />
>               </Component>
>
>               <!-- Configure virtual dir -->
>               <Component Id="MyWebVirtualDirCmp"
> Guid="{751DEB01-ECC1-48ff-869A-65BCEE9E0528}" KeyPath="yes" Permanent="no">
>                   <iis:WebVirtualDir Id="MyWebVirtualDir"
> Alias="[VIRTUAL_DIR_VAL]" Directory="MYWEBWEBSITE" WebSite="DefaultWebSite">
>                       <iis:WebDirProperties Id="MyWebVirtDirProperties"
> AnonymousAccess="yes" BasicAuthentication="yes"
> WindowsAuthentication="yes" />
>                       <iis:WebApplication Id="MyWebWebApplication"
> Name="[VIRTUAL_DIR_VAL]" WebAppPool="MyWebAppPool" />
>                   </iis:WebVirtualDir>
>               </Component>
>           </DirectoryRef>
>
>           <ComponentGroup Id="MyWebIssConfiguration">
>               <ComponentRef Id="MyWebVirtualDirCmp" />
>               <ComponentRef Id="MyWebAppPoolCmp" />
>           </ComponentGroup>
>
>       </Fragment>
>
> The include file ConfigurationInitialize.wxi has below code:
>     <Property Id="VIRTUAL_DIR_VAL" Value="PFWServiceApplication"
> Secure="yes"/>
>
>       <!-- +++++++++++++++++++ web app name properties initialize
> ++++++++++++++++++++ -->
>       <Property Id="WEB_APP_NAME" Value="PFWServiceApplication"
> Secure="yes"/>
>
> Please provide some help on this.
>
> Regards,
> Suvra Jyoti
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> SDL PLC confidential, all rights reserved.
> If you are not the intended recipient of this mail SDL requests and requires 
> that you delete it without acting upon or copying any of its contents, and we 
> further request that you advise us.
> SDL PLC is a public limited company registered in England and Wales.  
> Registered number: 02675207.
> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 
> 7DY, UK.
>
>
>
> This message has been scanned for malware by Websense. www.websense.com
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to