So you mean I have to deal with the uninstall phase myself? (including registry 
write and read, and the delete of the virtual directory?)

But when I use the private property, all of these can be done automatically...

Thanks
ChenMao
________________________________
From: Bob Arnson [mailto:[EMAIL PROTECTED]
Sent: Monday, November 20, 2006 5:43 AM
To: Mao Chen (ATC)
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] about public property

Mao Chen (ATC) wrote:
I guess it is because the public property is not recorded in the install 
database. So in unintallation phase, we don't know the virtual directory.
Am I right? And how to make this happen?

Store the property in the registry then use RegistrySearch to retrieve it 
during uninstallation.



--

sig://boB

http://bobs.org



________________________________
From: Mao Chen (ATC)
Sent: Saturday, November 18, 2006 11:29 PM
To: 'wix-users@lists.sourceforge.net'
Subject: about public property

Currently I am making an installer for our project.
In the installer, I need to setup a new virtual directory.

I create a public property to record the user input, and link it an edit 
control.
Then set the Alias of the WebVirtualDir element with this property.

Here is the problem:
The installation phase is all right, but during uninstallation, the virtual 
directory cannot be deleted.
I guess it is because the public property is not recorded in the install 
database. So in unintallation phase, we don't know the virtual directory.
Am I right? And how to make this happen?

Here is my wxs file code:

<Dialog Id="CustomizeDlg" Width="370" Height="270" Title="[ProductName] 
[Setup]" NoMinimize="yes" TrackDiskSpace="yes">
<Control Id="VirtualDir" Type="Edit" X="80" Y="195" Width="215" Height="15" 
Property="DEFAULTVDIRNAME" Text="{80}" />
...
</Dialog>

<Property Id="DEFAULTVDIRNAME" Value="[ProductName]"/>

<WebSite Id="DefaultWebSite" Description="Default Web Site">
<WebAddress Id="AllUnassigned" IP="*" Port="80" />
</WebSite>

<Directory Id='TARGETDIR' Name='SourceDir'>
<Component Id="WebVirtualDirComponent" Guid="?????">
<WebVirtualDir Id="VirtualDir" Directory="DEFAULTVDIR" 
Alias="[DEFAULTVDIRNAME]" WebSite="DefaultWebSite">
<WebApplication Id="Application" Name="[DEFAULTVDIRNAME]" />
</WebVirtualDir>
</Component>
</Directory>


Thanks
ChenMao



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to