Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-26 Thread Elfe Xu

Hi, anyone can help me on this? Would you please check if the attached sample
code works, or if I've made any mistake?
I doubt if I should also insert records to Directory table, but it seems to
me is the wrong direction. Since remove entire folder is a common
requirement for uninstall, I would like to here if there are easier
approaches.

Thanks,
-Elfe


Elfe Xu wrote:
> 
> 
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/file/n5334233/WixPlayground.zip
> WixPlayground.zip 
> 
> I wrote a small prototype as attached.
> 
> Please compile it, run the msi to install it, go to the install location
> folder, execute the CreateFolderAndFiles.cmd, the run uninstall.
> 
> In my machine, it shows 2727 error (DirProperty does not exists in
> Directory table), and abort.
> To unintall the product, I have to manually remove the RemoveFolderTest
> root folder, then uninstall again.
> 
> Rob, would you please help to check if it can work on your machine?
> 
> Thanks,
> -Elfe
> 

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirProperty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5340450.html
Sent from the wix-users mailing list archive at Nabble.com.

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-26 Thread Elfe Xu

Hi Pally, 
Sorry if the first example is misleading, but the data created by the
product is not related with any user (actually the product is several
services, and web services, and some of the sub folder need be shared and
allow other machines in LAN to read and write). Would you please give me the
link of Microsoft platform guideline that introduce the usage of
CommonAppData, so I can check if I should use that folder?

But more important, why do you think moving data to that folder would solve
my problem? Is there any difference?

Thanks,
-Elfe



Pally Sandher wrote:
> 
> If you read my reply you'll see I never mentioned "user accounts"
> anywhere. My questions was "Why are you storing user specific data under
> the installation directory instead of somewhere like My Documents or
> CommonAppData as per Microsoft's platform guidelines?".
> 
> Palbinder Sandher 
> Software Deployment & IT Administrator
> T: +44 (0) 141 945 8500 
> F: +44 (0) 141 945 8501 
> 

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirProperty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5340441.html
Sent from the wix-users mailing list archive at Nabble.com.

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-24 Thread Elfe Xu

http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/file/n5334233/WixPlayground.zip
WixPlayground.zip 

I wrote a small prototype as attached.

Please compile it, run the msi to install it, go to the install location
folder, execute the CreateFolderAndFiles.cmd, the run uninstall.

In my machine, it shows 2727 error (DirProperty does not exists in Directory
table), and abort.
To unintall the product, I have to manually remove the RemoveFolderTest root
folder, then uninstall again.

Rob, would you please help to check if it can work on your machine?

Thanks,
-Elfe
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirProperty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5334233.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-23 Thread Pally Sandher
If you read my reply you'll see I never mentioned "user accounts"
anywhere. My questions was "Why are you storing user specific data under
the installation directory instead of somewhere like My Documents or
CommonAppData as per Microsoft's platform guidelines?".

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 **
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: Elfe Xu [mailto:elf...@microsoft.com] 
Sent: 23 July 2010 04:34
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] The DirProperty in RemoveFile table must be a
property name in Directory table?


The folder hierarchy is just a example. My application has nothing to do
with user accounts.

Thanks for the suggestion of using wix-contrib. At first I read the code
and thought it was easy for me to translate it to a C# version CA. 
Anyway, I add version.lib to the projects, and get wix-contrib build
successfuly. However, when I use it in my project, it seems does not
work (still due to the version issue).

In my code, I have
 xmlns:contri="http://wixtoolset.org/wixcontrib/2008";

And for the folders I want to delete completely, 
  

  
  


The log is:
Action 11:29:04: RemoveFoldersEx. 
Action start 11:29:04: RemoveFoldersEx.
RemoveFoldersEx:  Error 0x80070715: Failed to get file version of custom
action dll CustomAction RemoveFoldersEx returned actual error code 1603
but will be translated to success due to continue marking Action ended
11:29:04: RemoveFoldersEx. Return value 1.

Any idea about the failure?

Thanks,
-Elfe


--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirPro
perty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5
317922p5328217.html
Sent from the wix-users mailing list archive at Nabble.com.


--
This SF.net email is sponsored by Sprint What will you do first with
EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-23 Thread Elfe Xu

In the log, the paths are perfect:

MSI (s) (A8!60) [14:10:30:747]: PROPERTY CHANGE: Adding
_dirCB80BB8E7C4DF6458FEC42C79CD3833C_0 property. Its value is 'C:\Program
Files\Foo\bar\abc\'. 
MSI (s) (A8!60) [14:10:30:762]: PROPERTY CHANGE: Adding
_dirCB80BB8E7C4DF6458FEC42C79CD3833C_1 property. Its value is 'C:\Program
Files\Foo\bar\Logs\'. 
MSI (s) (A8!60) [14:10:30:762]: PROPERTY CHANGE: Adding
_dirCB80BB8E7C4DF6458FEC42C79CD3833C_2 property. Its value is 'C:\Program
Files\Foo\bar\'. 

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirProperty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5328710.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-23 Thread Blair
I probably didn't read the messages in the right order (sometimes they come
out-of-order and I don't always succeed in matching up the timestamps to get
them right).

The following is for the benefit of the community (I'm sure you've read
this): the docs say about DirProperty:

Name of a property whose value is assumed to resolve to the full path to the
folder of the file to be removed. The property can be the name of a
directory in the Directory table, a property set by the AppSearch table, or
any other property that represents a full path.

This is a complete shot in the dark: Does the property containing the path
contain any weird navigations like embedded "\..\" sequences or anything? It
does start with ":\" and end in a "\", correct? It doesn't
have "/" in it, right?

-Original Message-
From: Elfe Xu [mailto:elf...@microsoft.com] 
Sent: Friday, July 23, 2010 12:20 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] The DirProperty in RemoveFile table must be a
property name in Directory table?


Thanks Blair. I've already have the version problem resolved by adding the
version resource. This time it's the 2727 fatal error again.

Because on my machine seems the if I add rows to RemoveFile with normal
property, the installer will fail because the DirProperty is not in
Directory table. However, Rob says he has use this approach successfully
before. So I wander if it's because the platform/WI version that cause the
different behavior.

Thanks,
-Elfe
-- 
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirPropert
y-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5
328630.html
Sent from the wix-users mailing list archive at Nabble.com.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-23 Thread Elfe Xu

Thanks Blair. I've already have the version problem resolved by adding the
version resource. This time it's the 2727 fatal error again.

Because on my machine seems the if I add rows to RemoveFile with normal
property, the installer will fail because the DirProperty is not in
Directory table. However, Rob says he has use this approach successfully
before. So I wander if it's because the platform/WI version that cause the
different behavior.

Thanks,
-Elfe
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirProperty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5328630.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-23 Thread Blair
The custom action DLL that ends up inside of the Binary table contains the
custom action's compiled code must have a Win32 VERSION resource. If you
look at that file in the Windows Shell, you can right-click the file then
select Properties and see a Details tab (in Win7 and I think Vista also,
I've already forgotten the name of the tab in XP) and you will see entries
like "Product version", "File version", "Copyright", and/or "File
description" (you may not see all of these, and you may see others besides,
but at least one of them would appear if the version resource is present).

-Original Message-
From: Elfe Xu [mailto:elf...@microsoft.com] 
Sent: Thursday, July 22, 2010 11:43 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] The DirProperty in RemoveFile table must be a
property name in Directory table?


Interesting. What is the Windoes Installer version it required?
I'm using Win7, the installer version of the product is 4.0 (), the Windows Installer version
on my machine is 5.0.7600.16385.

I've no idea why my code failed :(
-- 
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirPropert
y-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5
328531.html
Sent from the wix-users mailing list archive at Nabble.com.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-22 Thread Elfe Xu

Interesting. What is the Windoes Installer version it required?
I'm using Win7, the installer version of the product is 4.0 (), the Windows Installer version
on my machine is 5.0.7600.16385.

I've no idea why my code failed :(
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirProperty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5328531.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-22 Thread Rob Mensching
I shipped a couple CTPs of Live Mesh using that code. It worked for me then.

On Thu, Jul 22, 2010 at 11:16 PM, Elfe Xu  wrote:

>
> Thanks. After adding the version resource, add a  Id="RemoveFile"
> /> element, the RemoveFoldersEx action executed successfully.
>
> Action 14:10:30: RemoveFoldersEx.
> Action start 14:10:30: RemoveFoldersEx.
> MSI (s) (A8:24) [14:10:30:747]: Invoking remote custom action. DLL:
> C:\Windows\Installer\MSI8168.tmp, Entrypoint: RemoveFoldersEx
> MSI (s) (A8!60) [14:10:30:747]: PROPERTY CHANGE: Adding
> _dirCB80BB8E7C4DF6458FEC42C79CD3833C_0 property. Its value is 'C:\Program
> Files\Foo\bar\abc\'.
> MSI (s) (A8!60) [14:10:30:762]: PROPERTY CHANGE: Adding
> _dirCB80BB8E7C4DF6458FEC42C79CD3833C_1 property. Its value is 'C:\Program
> Files\Foo\bar\Logs\'.
> MSI (s) (A8!60) [14:10:30:762]: PROPERTY CHANGE: Adding
> _dirCB80BB8E7C4DF6458FEC42C79CD3833C_2 property. Its value is 'C:\Program
> Files\Foo\bar\'.
> Action ended 14:10:30: RemoveFoldersEx. Return value 1.
>
> Then, the installer hit the same fatal 2727 error, as I have by using my
> own
> c# CA:
>
> DEBUG: Error 2727:  The directory entry
> '_dirCB80BB8E7C4DF6458FEC42C79CD3833C_0' does not exist in the Directory
> table
> The installer has encountered an unexpected error installing this package.
> This may indicate a problem with this package. The error code is 2727. The
> arguments are: _dirCB80BB8E7C4DF6458FEC42C79CD3833C_0, ,
> MSI (s) (A8:5C) [14:14:36:492]: Product: System Center Atlanta -- The
> installer has encountered an unexpected error installing this package. This
> may indicate a problem with this package. The error code is 2727. The
> arguments are: _dirCB80BB8E7C4DF6458FEC42C79CD3833C_0, ,
>
> Does this approach really work?
>
>
>
> --
> View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirProperty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5328465.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
>
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-22 Thread Elfe Xu

Thanks. After adding the version resource, add a  element, the RemoveFoldersEx action executed successfully.

Action 14:10:30: RemoveFoldersEx. 
Action start 14:10:30: RemoveFoldersEx.
MSI (s) (A8:24) [14:10:30:747]: Invoking remote custom action. DLL:
C:\Windows\Installer\MSI8168.tmp, Entrypoint: RemoveFoldersEx
MSI (s) (A8!60) [14:10:30:747]: PROPERTY CHANGE: Adding
_dirCB80BB8E7C4DF6458FEC42C79CD3833C_0 property. Its value is 'C:\Program
Files\Foo\bar\abc\'.
MSI (s) (A8!60) [14:10:30:762]: PROPERTY CHANGE: Adding
_dirCB80BB8E7C4DF6458FEC42C79CD3833C_1 property. Its value is 'C:\Program
Files\Foo\bar\Logs\'.
MSI (s) (A8!60) [14:10:30:762]: PROPERTY CHANGE: Adding
_dirCB80BB8E7C4DF6458FEC42C79CD3833C_2 property. Its value is 'C:\Program
Files\Foo\bar\'.
Action ended 14:10:30: RemoveFoldersEx. Return value 1.

Then, the installer hit the same fatal 2727 error, as I have by using my own
c# CA:
 
DEBUG: Error 2727:  The directory entry
'_dirCB80BB8E7C4DF6458FEC42C79CD3833C_0' does not exist in the Directory
table
The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package. The error code is 2727. The
arguments are: _dirCB80BB8E7C4DF6458FEC42C79CD3833C_0, , 
MSI (s) (A8:5C) [14:14:36:492]: Product: System Center Atlanta -- The
installer has encountered an unexpected error installing this package. This
may indicate a problem with this package. The error code is 2727. The
arguments are: _dirCB80BB8E7C4DF6458FEC42C79CD3833C_0, , 

Does this approach really work?



-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirProperty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5328465.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-22 Thread Rob Mensching
Make sure the custom action has a version resource. Feel free to open issues
against the wix-contrib project so things get fixed there.

On Thu, Jul 22, 2010 at 8:34 PM, Elfe Xu  wrote:

>
> The folder hierarchy is just a example. My application has nothing to do
> with
> user accounts.
>
> Thanks for the suggestion of using wix-contrib. At first I read the code
> and
> thought it was easy for me to translate it to a C# version CA.
> Anyway, I add version.lib to the projects, and get wix-contrib build
> successfuly. However, when I use it in my project, it seems does not work
> (still due to the version issue).
>
> In my code, I have
>  xmlns:contri="http://wixtoolset.org/wixcontrib/2008";
>
> And for the folders I want to delete completely,
>  
> Guid="{B6E6C8AF-EC5D-4A0C-B718-0B6823632C92}" KeyPath="yes">
>  
>  
>
>
> The log is:
> Action 11:29:04: RemoveFoldersEx.
> Action start 11:29:04: RemoveFoldersEx.
> RemoveFoldersEx:  Error 0x80070715: Failed to get file version of custom
> action dll
> CustomAction RemoveFoldersEx returned actual error code 1603 but will be
> translated to success due to continue marking
> Action ended 11:29:04: RemoveFoldersEx. Return value 1.
>
> Any idea about the failure?
>
> Thanks,
> -Elfe
>
>
> --
> View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirProperty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5328217.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
>
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-22 Thread Elfe Xu

The folder hierarchy is just a example. My application has nothing to do with
user accounts.

Thanks for the suggestion of using wix-contrib. At first I read the code and
thought it was easy for me to translate it to a C# version CA. 
Anyway, I add version.lib to the projects, and get wix-contrib build
successfuly. However, when I use it in my project, it seems does not work
(still due to the version issue).

In my code, I have
 xmlns:contri="http://wixtoolset.org/wixcontrib/2008";

And for the folders I want to delete completely, 
  

  
  


The log is:
Action 11:29:04: RemoveFoldersEx. 
Action start 11:29:04: RemoveFoldersEx.
RemoveFoldersEx:  Error 0x80070715: Failed to get file version of custom
action dll
CustomAction RemoveFoldersEx returned actual error code 1603 but will be
translated to success due to continue marking
Action ended 11:29:04: RemoveFoldersEx. Return value 1.

Any idea about the failure?

Thanks,
-Elfe


-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirProperty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5328217.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-21 Thread Pally Sandher
Why don't you try & resolve your linking errors when trying to build
wix-contrib instead of trying to reinvent the wheel & failing?

Also why are you storing user specific data under the installation
directory instead of somewhere like My Documents or CommonAppData as per
Microsoft's platform guidelines?

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 **
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: Elfe Xu [mailto:elf...@microsoft.com] 
Sent: 21 July 2010 04:29
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] The DirProperty in RemoveFile table must be a
property name in Directory table?


I've changed the property name to all up cases, but still failed :(
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirPro
perty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5
317922p5319532.html
Sent from the wix-users mailing list archive at Nabble.com.


--
This SF.net email is sponsored by Sprint What will you do first with
EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-20 Thread Elfe Xu

I've changed the property name to all up cases, but still failed :(
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/The-DirProperty-in-RemoveFile-table-must-be-a-property-name-in-Directory-table-tp5317922p5319532.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] The DirProperty in RemoveFile table must be a property name in Directory table?

2010-07-20 Thread Elfe Xu
Hi,

I've wrote a RemoveWholeFolder custom action, to remove all files and sub 
folders.
Here is the code of addthe record to RemoveFile table.
private static void AddItemToRemoveFileTable(DirectoryInfo folder, 
string componentId, Session session, View view)
{
string fileRecordName = string.Format(CultureInfo.InvariantCulture, 
"tempRemoveFileRecord_{0}", folderCount);
string folderRecordName = 
string.Format(CultureInfo.InvariantCulture, "tempRemoveFolderRecord_{0}", 
folderCount);
string propertyName = string.Format(CultureInfo.InvariantCulture, 
"tempRemoveFolderPropertyName_{0}", folderCount);
folderCount++;

session[propertyName] = folder.FullName;

using (Record record = session.Database.CreateRecord(5))
{
record.SetString(1, fileRecordName);
record.SetString(2, componentId);
// Remove all files under the folder TODO: verify if file 
without extension could be deleted as well
record.SetString(3, "*.*");
record.SetString(4, propertyName);
// Install mode: remove on uninstall
record.SetInteger(5, 2);

view.InsertTemporary(record);
}

using (Record record = session.Database.CreateRecord(5))
{
record.SetString(1, folderRecordName);
record.SetString(2, componentId);
// remove the folder
record.SetString(3, null);
record.SetString(4, propertyName);
// Install mode: remove on uninstall
record.SetInteger(5, 2);

view.InsertTemporary(record);
}
}

private static int folderCount = 0;

The records are added into the RemoveFile table correctly. However, then the 
Windows Installer report a fatal error 2727

DEBUG: Error 2727:  The directory entry 'tempRemoveFolderPropertyName_0' does 
not exist in the Directory table
MSI (s) (E8:F4) [02:13:39:134]: Product: System Center Atlanta -- The installer 
has encountered an unexpected error installing this package. This may indicate 
a problem with this package. The error code is 2727. The arguments are: 
tempRemoveFolderPropertyName_0, ,

There is a property tempRemoveFolderPropertyName_0  but it's not in the 
Directory table.
Property(S): tempRemoveFolderPropertyName_0 = C:\Program Files\Microsoft 
Atlanta\GatewayData\abc
However, according to the document 
http://msdn.microsoft.com/en-us/library/aa371201(VS.85).aspx , the property is 
not required to be in Directory table.
DirProperty
Name of a property whose value is assumed to resolve to the full path to the 
folder of the file to be removed. The property can be the name of a directory 
in the Directory 
table, a 
property set by the AppSearch 
table, or any 
other property that represents a full path.

Any idea about why it would fail?

P.S. I checked the code in wix-contrib RemoveFolderEx, and find it's doing the 
same thing as I did.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users