Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

2011-10-05 Thread Brian Lemke
The scenario I am trying to handle is the cancel during uninstall.   If I were 
to just bomb the folder the rollback wouldn't work and it would delete the 
folder anyway.   I am going to try and see if I can pressure the team into 
using 3.6.  Don't know if it will be an issue or not.   Initially they said no 
but maybe I can get them to budge.

--Brian

-Original Message-
From: McCain, Jon [mailto:jon.mcc...@inin.com] 
Sent: Wednesday, October 05, 2011 8:10 AM
To: General discussion for Windows Installer XML toolset.
Cc: McCain, Jon
Subject: Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

I understand maintaining the customers data but isn't the goal here to remove 
it? Which I agree is against the rules normally but it would appear that is 
what is wanted... Did I miss something?

Jon



-Original Message-
From: Bob Arnson [mailto:b...@joyofsetup.com] 
Sent: Tuesday, October 04, 2011 10:23 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

On 04-Oct-11 15:29, McCain, Jon wrote:
> If that is the case then you shouldn't need to worry about being a good 
> install writer and just whack the folder or its subfolders that you don't 
> control with your install.

Of course you should. If there's a failure or other rollback, the user's data 
is gone.

--
sig://boB
http://joyofsetup.com/


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


This message (including any attachments) contains confidential and privileged 
information intended for a specific purpose, and is protected by law. If you 
are not the intended recipient, you must delete this message and any 
attachments. You are hereby notified that any disclosure, copying, or 
distribution of this message, or any attachments, or the taking of any action 
based on it, is strictly prohibited. Opinions, conclusions, and other 
information in this message that do not relate to the official business of API 
Healthcare Corporation (API Healthcare) shall be understood as neither given 
nor endorsed by API Healthcare.
API Healthcare Corporation
1550 Innovation Way
Hartford, WI 53027



--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

2011-10-05 Thread McCain, Jon
I understand maintaining the customers data but isn't the goal here to remove 
it? Which I agree is against the rules normally but it would appear that is 
what is wanted... Did I miss something?

Jon



-Original Message-
From: Bob Arnson [mailto:b...@joyofsetup.com] 
Sent: Tuesday, October 04, 2011 10:23 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

On 04-Oct-11 15:29, McCain, Jon wrote:
> If that is the case then you shouldn't need to worry about being a good 
> install writer and just whack the folder or its subfolders that you don't 
> control with your install.

Of course you should. If there's a failure or other rollback, the user's data 
is gone.

--
sig://boB
http://joyofsetup.com/


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

2011-10-04 Thread Bob Arnson
On 04-Oct-11 15:06, Brian Lemke wrote:
> Because most of these are nested in folders created by the application.  I 
> would really like to use the RemoveFolderEX element found in Wix 3.6 but I am 
> not allowed to use that version yet.   I am forced to stay on 3.5

1. That's a false economy: The time it would take to validate a WiX v3.6 
drop is dwarfed by the time to write a custom action, much less a good one.
2. So reuse the WiX v3.6 code, as much as you can. For example, you 
could use the CA DLL without taking the compiler extension.

-- 
sig://boB
http://joyofsetup.com/


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

2011-10-04 Thread Bob Arnson
On 04-Oct-11 15:29, McCain, Jon wrote:
> If that is the case then you shouldn't need to worry about being a good 
> install writer and just whack the folder or its subfolders that you don't 
> control with your install.

Of course you should. If there's a failure or other rollback, the user's 
data is gone.

-- 
sig://boB
http://joyofsetup.com/


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

2011-10-04 Thread Christopher Painter
Sure. In .NET you use try catch blocks rather then checking the exit code 
of functions.  In DTF, the View class (and others) will raise an 
InstallerException which then exposes the GetErrorRecord() method which is 
a wrapper for MsiGetLastErrorRecord().



From: "Wilson, Phil" 

Sent: Tuesday, October 04, 2011 5:36 PM

To: "General discussion for Windows Installer XML toolset." 


Subject: Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary 
Rows.


Is there anything about that interop that lets you see the equivalent of 
MsiViewGetError or MsiGetLastErrorRecord? There's typically more error info 
available from those. 


Phil Wilson 


-Original Message-

From: Brian Lemke [mailto:brian.le...@apihealthcare.com] 

Sent: Tuesday, October 04, 2011 11:45 AM

To: wix-users@lists.sourceforge.net

Subject: [WiX-users] C# Custom Action Fails when Inserting Temoporary 
Rows.


I'm hoping that someone can help me out.   I cannot seem to figure out why 
my custom action is constantly failing me.  The action executes on 
uninstall and is to browse the install folder and add files to the 
RemoveFile table (with a few additional properties too) in the MSI so that 
the file is removed during uninstall.   The action is defined as













The action runs as expected as I can get log messages to show up in the log 
file.  However whenever the action attempts to insert a temporary row 
(Either in the Property Table or the RemoveFile table) I get the 
exception:


Microsoft.Deployment.WindowsInstaller.InstallerException: Function failed 
during execution. Database:  Table(s) Update failed.

at Microsoft.Deployment.WindowsInstaller.View.Modify(ViewModifyMode mode, 
Record record)


The method for updating the view looks like


Record newRecord = session.Database.CreateRecord(2);


newRecord.SetString(1, directoryProperty);


newRecord.SetString(2, directory.FullName);


session.Log(String.Format("Adding Property {0}", newRecord.ToString()));


propertyView.Modify(ViewModifyMode.InsertTemporary, newRecord);


I have even tried executing a straight insert statement like "INSERT INTO 
Property ('Property', 'Value') Values (Value1, Value2) TEMPORARY" to no 
avail.  And there is no way the directory property name could be 
conflicting as it is part static with a GUID (stripped of the hyphens) 
appended to the end of it.


I am almost at my wits end here.   I am half a step away from the CA just 
blowing away the whole directory but I am trying to be a good Windows 
Installer citizen here and use the tools as they are.


--Brian


--

All the data continuously generated in your IT infrastructure contains a

definitive record of customers, application performance, security

threats, fraudulent activity and more. Splunk takes this data and makes

sense of it. Business sense. IT sense. Common sense.

http://p.sf.net/sfu/splunk-d2dcopy1

___

WiX-users mailing list

WiX-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or 
attached files, is intended solely for the individual or entity to which it 
is addressed. This e-mail is confidential and may well also be legally 
privileged. If you have received it in error, you are on notice of its 
status. Please notify the sender immediately by reply e-mail and then 
delete this message from your system. Please do not copy it or use it for 
any purposes, or disclose its contents to any other person. This email 
comes from a division of the Invensys Group, owned by Invensys plc, which 
is a company registered in England and Wales with its registered office at 
3rd Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023). 
For a list of European legal entities within the Invensys Group, please go 
to http://www.invensys.com/en/legal/default.aspx.


You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be 
subject to the terms of any agreements between Invensys (and/or its 
subsidiaries and affiliates) and the recipient (and/or its subsidiaries and 
affiliates).



--

All the data continuously generated in your IT infrastructure contains a

definitive record of customers, application performance, security

threats, fraudulent activity and more. Splunk takes this data and makes

sense of it. Business sense. IT sense. Common sense.

http://p.sf.net/sfu/splunk-d2dcopy1

___

WiX-users mailing list

WiX-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wix-users


---

Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

2011-10-04 Thread Wilson, Phil
Is there anything about that interop that lets you see the equivalent of 
MsiViewGetError or MsiGetLastErrorRecord? There's typically more error info 
available from those. 

Phil Wilson 

-Original Message-
From: Brian Lemke [mailto:brian.le...@apihealthcare.com] 
Sent: Tuesday, October 04, 2011 11:45 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

I'm hoping that someone can help me out.   I cannot seem to figure out why my 
custom action is constantly failing me.  The action executes on uninstall and 
is to browse the install folder and add files to the RemoveFile table (with a 
few additional properties too) in the MSI so that the file is removed during 
uninstall.   The action is defined as


 
  
 


The action runs as expected as I can get log messages to show up in the log 
file.  However whenever the action attempts to insert a temporary row (Either 
in the Property Table or the RemoveFile table) I get the exception:

Microsoft.Deployment.WindowsInstaller.InstallerException: Function failed 
during execution. Database:  Table(s) Update failed.
   at Microsoft.Deployment.WindowsInstaller.View.Modify(ViewModifyMode mode, 
Record record)

The method for updating the view looks like


Record newRecord = session.Database.CreateRecord(2);

newRecord.SetString(1, directoryProperty);

newRecord.SetString(2, directory.FullName);

session.Log(String.Format("Adding Property {0}", newRecord.ToString()));

propertyView.Modify(ViewModifyMode.InsertTemporary, newRecord);

I have even tried executing a straight insert statement like "INSERT INTO 
Property ('Property', 'Value') Values (Value1, Value2) TEMPORARY" to no avail.  
And there is no way the directory property name could be conflicting as it is 
part static with a GUID (stripped of the hyphens) appended to the end of it.

I am almost at my wits end here.   I am half a step away from the CA just 
blowing away the whole directory but I am trying to be a good Windows Installer 
citizen here and use the tools as they are.

--Brian
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to http://www.invensys.com/en/legal/default.aspx.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).



--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

2011-10-04 Thread McCain, Jon
Okay so the folders/files are then classified as customer data which is why 
RemoveFile wouldn't work since you don't actually lay those files down. At 
least that is how I am reading your response.

If that is the case then you shouldn't need to worry about being a good install 
writer and just whack the folder or its subfolders that you don't control with 
your install.

Jon W. McCain | Software Engineer - Install
phone & fax +1.317.715.8462 | jon.mcc...@inin.com

Interactive Intelligence Inc.
Deliberately Innovative
www.inin.com



-Original Message-
From: Brian Lemke [mailto:brian.le...@apihealthcare.com] 
Sent: Tuesday, October 04, 2011 3:06 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

Because most of these are nested in folders created by the application.  I 
would really like to use the RemoveFolderEX element found in Wix 3.6 but I am 
not allowed to use that version yet.   I am forced to stay on 3.5

-Original Message-
From: McCain, Jon [mailto:jon.mcc...@inin.com]
Sent: Tuesday, October 04, 2011 2:03 PM
To: General discussion for Windows Installer XML toolset.
Cc: McCain, Jon
Subject: Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

Just curious here but why not use the RemoveFile element within the component 
that initially installed the file or do you not own this file?

Also, AFAIK If you remove all files in the fashion above that directory will be 
removed as well.

Jon W. McCain | Software Engineer - Install phone & fax +1.317.715.8462 | 
jon.mcc...@inin.com

Interactive Intelligence Inc.
Deliberately Innovative
www.inin.com



-Original Message-
From: Brian Lemke [mailto:brian.le...@apihealthcare.com]
Sent: Tuesday, October 04, 2011 2:45 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

I'm hoping that someone can help me out.   I cannot seem to figure out why my 
custom action is constantly failing me.  The action executes on uninstall and 
is to browse the install folder and add files to the RemoveFile table (with a 
few additional properties too) in the MSI so that the file is removed during 
uninstall.   The action is defined as


 
  
 


The action runs as expected as I can get log messages to show up in the log 
file.  However whenever the action attempts to insert a temporary row (Either 
in the Property Table or the RemoveFile table) I get the exception:

Microsoft.Deployment.WindowsInstaller.InstallerException: Function failed 
during execution. Database:  Table(s) Update failed.
   at Microsoft.Deployment.WindowsInstaller.View.Modify(ViewModifyMode mode, 
Record record)

The method for updating the view looks like


Record newRecord = session.Database.CreateRecord(2);

newRecord.SetString(1, directoryProperty);

newRecord.SetString(2, directory.FullName);

session.Log(String.Format("Adding Property {0}", newRecord.ToString()));

propertyView.Modify(ViewModifyMode.InsertTemporary, newRecord);

I have even tried executing a straight insert statement like "INSERT INTO 
Property ('Property', 'Value') Values (Value1, Value2) TEMPORARY" to no avail.  
And there is no way the directory property name could be conflicting as it is 
part static with a GUID (stripped of the hyphens) appended to the end of it.

I am almost at my wits end here.   I am half a step away from the CA just 
blowing away the whole directory but I am trying to be a good Windows Installer 
citizen here and use the tools as they are.

--Brian
--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security threats, 
fraudulent activity and more. Splunk takes this data and makes sense of it. 
Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security threats, 
fraudulent activity and more. Splunk takes this data and makes sense of it. 
Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application p

Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

2011-10-04 Thread Brian Lemke
Because most of these are nested in folders created by the application.  I 
would really like to use the RemoveFolderEX element found in Wix 3.6 but I am 
not allowed to use that version yet.   I am forced to stay on 3.5

-Original Message-
From: McCain, Jon [mailto:jon.mcc...@inin.com] 
Sent: Tuesday, October 04, 2011 2:03 PM
To: General discussion for Windows Installer XML toolset.
Cc: McCain, Jon
Subject: Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

Just curious here but why not use the RemoveFile element within the component 
that initially installed the file or do you not own this file?

Also, AFAIK If you remove all files in the fashion above that directory will be 
removed as well.

Jon W. McCain | Software Engineer - Install
phone & fax +1.317.715.8462 | jon.mcc...@inin.com

Interactive Intelligence Inc.
Deliberately Innovative
www.inin.com



-Original Message-
From: Brian Lemke [mailto:brian.le...@apihealthcare.com] 
Sent: Tuesday, October 04, 2011 2:45 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

I'm hoping that someone can help me out.   I cannot seem to figure out why my 
custom action is constantly failing me.  The action executes on uninstall and 
is to browse the install folder and add files to the RemoveFile table (with a 
few additional properties too) in the MSI so that the file is removed during 
uninstall.   The action is defined as


 
  
 


The action runs as expected as I can get log messages to show up in the log 
file.  However whenever the action attempts to insert a temporary row (Either 
in the Property Table or the RemoveFile table) I get the exception:

Microsoft.Deployment.WindowsInstaller.InstallerException: Function failed 
during execution. Database:  Table(s) Update failed.
   at Microsoft.Deployment.WindowsInstaller.View.Modify(ViewModifyMode mode, 
Record record)

The method for updating the view looks like


Record newRecord = session.Database.CreateRecord(2);

newRecord.SetString(1, directoryProperty);

newRecord.SetString(2, directory.FullName);

session.Log(String.Format("Adding Property {0}", newRecord.ToString()));

propertyView.Modify(ViewModifyMode.InsertTemporary, newRecord);

I have even tried executing a straight insert statement like "INSERT INTO 
Property ('Property', 'Value') Values (Value1, Value2) TEMPORARY" to no avail.  
And there is no way the directory property name could be conflicting as it is 
part static with a GUID (stripped of the hyphens) appended to the end of it.

I am almost at my wits end here.   I am half a step away from the CA just 
blowing away the whole directory but I am trying to be a good Windows Installer 
citizen here and use the tools as they are.

--Brian
--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security threats, 
fraudulent activity and more. Splunk takes this data and makes sense of it. 
Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

2011-10-04 Thread McCain, Jon
Just curious here but why not use the RemoveFile element within the component 
that initially installed the file or do you not own this file?

Also, AFAIK If you remove all files in the fashion above that directory will be 
removed as well.

Jon W. McCain | Software Engineer - Install
phone & fax +1.317.715.8462 | jon.mcc...@inin.com

Interactive Intelligence Inc.
Deliberately Innovative
www.inin.com



-Original Message-
From: Brian Lemke [mailto:brian.le...@apihealthcare.com] 
Sent: Tuesday, October 04, 2011 2:45 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

I'm hoping that someone can help me out.   I cannot seem to figure out why my 
custom action is constantly failing me.  The action executes on uninstall and 
is to browse the install folder and add files to the RemoveFile table (with a 
few additional properties too) in the MSI so that the file is removed during 
uninstall.   The action is defined as


 
  
 


The action runs as expected as I can get log messages to show up in the log 
file.  However whenever the action attempts to insert a temporary row (Either 
in the Property Table or the RemoveFile table) I get the exception:

Microsoft.Deployment.WindowsInstaller.InstallerException: Function failed 
during execution. Database:  Table(s) Update failed.
   at Microsoft.Deployment.WindowsInstaller.View.Modify(ViewModifyMode mode, 
Record record)

The method for updating the view looks like


Record newRecord = session.Database.CreateRecord(2);

newRecord.SetString(1, directoryProperty);

newRecord.SetString(2, directory.FullName);

session.Log(String.Format("Adding Property {0}", newRecord.ToString()));

propertyView.Modify(ViewModifyMode.InsertTemporary, newRecord);

I have even tried executing a straight insert statement like "INSERT INTO 
Property ('Property', 'Value') Values (Value1, Value2) TEMPORARY" to no avail.  
And there is no way the directory property name could be conflicting as it is 
part static with a GUID (stripped of the hyphens) appended to the end of it.

I am almost at my wits end here.   I am half a step away from the CA just 
blowing away the whole directory but I am trying to be a good Windows Installer 
citizen here and use the tools as they are.

--Brian
--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security threats, 
fraudulent activity and more. Splunk takes this data and makes sense of it. 
Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] C# Custom Action Fails when Inserting Temoporary Rows.

2011-10-04 Thread Brian Lemke
I'm hoping that someone can help me out.   I cannot seem to figure out why my 
custom action is constantly failing me.  The action executes on uninstall and 
is to browse the install folder and add files to the RemoveFile table (with a 
few additional properties too) in the MSI so that the file is removed during 
uninstall.   The action is defined as


 
  
 


The action runs as expected as I can get log messages to show up in the log 
file.  However whenever the action attempts to insert a temporary row (Either 
in the Property Table or the RemoveFile table) I get the exception:

Microsoft.Deployment.WindowsInstaller.InstallerException: Function failed 
during execution. Database:  Table(s) Update failed.
   at Microsoft.Deployment.WindowsInstaller.View.Modify(ViewModifyMode mode, 
Record record)

The method for updating the view looks like


Record newRecord = session.Database.CreateRecord(2);

newRecord.SetString(1, directoryProperty);

newRecord.SetString(2, directory.FullName);

session.Log(String.Format("Adding Property {0}", newRecord.ToString()));

propertyView.Modify(ViewModifyMode.InsertTemporary, newRecord);

I have even tried executing a straight insert statement like "INSERT INTO 
Property ('Property', 'Value') Values (Value1, Value2) TEMPORARY" to no avail.  
And there is no way the directory property name could be conflicting as it is 
part static with a GUID (stripped of the hyphens) appended to the end of it.

I am almost at my wits end here.   I am half a step away from the CA just 
blowing away the whole directory but I am trying to be a good Windows Installer 
citizen here and use the tools as they are.

--Brian
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users