Hello all,
it seems that I found a bug in the ConfigureSmb custom action (an action
which manages file shares). My situation is the following:
1. Version 1 of my application creates a file share.
2. Version 2 of my application is a major upgrade to version 1. It
removes previous version (RemoveExistingProducts is scheduled right after
InstallInitialize) and then installs itself.
After major upgrade is done (it seems with no errors), the file share no
longer exists. The folder still present, but it's not shared.
I wrote 2 test wix projects to help you reproduce my situation (see
attachement).
Last point: I use WiX 5325 and observe this bug both under Windows Server
2003 and Windows MCE.
Ivan Gusev
P. S. My WXS files are listen below:
----------VERSION1.WXS----------
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<Product Id="BE490661-4E3A-4297-928E-94A7D9FCF5AB" Name="Your Product"
Language="1033" Version="1.0.0.0" Manufacturer="Your Company"
UpgradeCode="80EF85B0-4728-49c1-9BEC-1A9E9226BFB4">
<Package Id="????????-????-????-????-????????????"
Description="Description of your product" Comments="This will appear in the
file summary stream." InstallerVersion="200" Compressed="yes" />
<Media Id="1" Cabinet="Product.cab" EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLLOCATION" Name="MyAppDir" LongName="My
Application Directory">
<Directory Id="Transfer" Name="Transfer">
<Component Id="CCacheFolder"
Guid="1484290C-D866-4e41-8F2F-79EFF1C8A671" >
<User Id="myUserId" CreateUser="yes" FailIfExists="no"
Name="myUser" Password="myPassword" PasswordNeverExpires="yes"/>
<CreateFolder/>
<FileShare Id="TransferShare" Name="TransferShare"
Description="Some description.">
<Permission ChangePermission="yes" Read="yes" Delete="yes"
User="myUserId"/>
</FileShare>
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<Feature Id="ProductFeature" Title="Feature Title" Level="1">
<ComponentRef Id="CCacheFolder" />
</Feature>
</Product>
</Wix>
------VERSION2.WXS------------
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<Product Id="40C69626-4DD4-45d2-8891-95F4CCC86736" Name="Your Product"
Language="1033" Version="1.1.0.0" Manufacturer="Your Company"
UpgradeCode="80EF85B0-4728-49c1-9BEC-1A9E9226BFB4">
<Package Id="????????-????-????-????-????????????"
Description="Description of your product" Comments="This will appear in the
file summary stream." InstallerVersion="200" Compressed="yes" />
<Media Id="1" Cabinet="Product.cab" EmbedCab="yes" />
<Upgrade Id="80EF85B0-4728-49c1-9BEC-1A9E9226BFB4">
<UpgradeVersion Minimum="1.0.0" Maximum="1.0.0"
IncludeMinimum="yes" IncludeMaximum="yes"
Property="VER_1_0_FOUND"/>
</Upgrade>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLLOCATION" Name="MyAppDir" LongName="My
Application Directory">
<Directory Id="Transfer" Name="Transfer">
<Component Id="CCacheFolder"
Guid="1484290C-D866-4e41-8F2F-79EFF1C8A671" >
<User Id="myUserId" CreateUser="yes"
FailIfExists="no" Name="myUser" Password="myPassword"
PasswordNeverExpires="yes"/>
<CreateFolder/>
<FileShare Id="TransferShare"
Name="TransferShare" Description="Some description.">
<Permission ChangePermission="yes" Read="yes"
Delete="yes" User="myUserId"/>
</FileShare>
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<Feature Id="ProductFeatureImporter" Title="Feature Title"
Level="1">
<ComponentRef Id="CCacheFolder" />
</Feature>
<InstallExecuteSequence>
<FindRelatedProducts/>
<RemoveExistingProducts After="InstallInitialize"/>
</InstallExecuteSequence>
</Product>
</Wix>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users