Re: [WiX-users] How can I get the correct INSTALLDIR at the beginning of uninstall?

2008-11-25 Thread Jianjun An (Person Consulting)
I have changed my code. But it doesn't work.

Please have a look at the code, there may be something wrong with  I 
think.
Do I miss some important things?


  

  


  
  

  

  

 ...

  
  ...
  
  ...


  

  



   ...
  

  






  

  




NOT 
Installed
Installed AND (RESUME OR 
Preselected)
Installed AND 
NOT RESUME AND NOT Preselected

  





  (NOT Installed)
  
  





From: Rob Mensching [mailto:[EMAIL PROTECTED]
Date: 2008/11/26 1:42
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How can I get the correct INSTALLDIR at the beginning 
of uninstall?

Things *might* also get confused if a CustomAction is modifying the Directory.


PS:  Directory/@Name="." is the same as not having the Directory/@Name.


-Original Message-
From: Kevin Richardson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 08:54
To: Jianjun An (Person Consulting)
Cc: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How can I get the correct INSTALLDIR at the beginning 
of uninstall?

In that case, something is definitely wrong. Uninstall should work
from any install location without your intervention.

You had said that we were both doing the same thing, but your
directory table is not the same as mine. You have:

> 
> 
>   
> 
>  < File . />
> 
>   
> 
> 


I have:

> 
>  
>
>  
> The problem is my MSI cannot remove the components if user changed
> default install path which I did not save it into registry.
>
> The context about this problem is in the attachment.
>
> Thanks


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Reinstall a component during "Change" install

2008-11-25 Thread Gavin Bee
Would doing the following work?
* Create a feature that contains all of the components that you might want
to reinstall
* Set REINSTALL=FeatureX during a "Change" install
* Add conditions to the components that cause them to be included (or not)
depending on the appropriate feature states.  This might be hard if you
already have component conditions.

This seems like it should work to me, but I have not tried it. 

Hope that helps,
Gavin :)

-Original Message-
From: Dale Quigg [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 25, 2008 6:14 PM
To: 'wix-users@lists.sourceforge.net'
Subject: [WiX-users] Reinstall a component during "Change" install

I am trying to reinstall some components when the user does a "Change".

The issue discussed in this thread
http://n2.nabble.com/Always-Reinstall-a-Component-td1483743.html
is similar to my situation, but I have one extra "twist" to my problem.

My problem is that I have two features and need to set REINSTALL based on
which of the two features are selected.

I have custom actions defined like this;
  
  
  

and sequenced like this;
  !FeatureOne=3
AND !FeatureTwo=3 AND NOT REINSTALL
  !FeatureOne=3 AND NOT REINSTALL 
  !FeatureTwo=3 AND NOT REINSTALL 

However, when I run a "Change" install, I get;
  MSI (s) (30:94) [14:38:40:428]: Skipping action: Both_SetREINSTALL
(condition is false)
  MSI (s) (30:94) [14:38:40:428]: Skipping action: Feat1_SetREINSTALL
(condition is false)
  MSI (s) (30:94) [14:38:40:428]: Skipping action: Feat2_SetREINSTALL
(condition is false)

It appears that I'm in a Catch-22 here.  If I sequence my custom actions
after CostFinalize, then my conditions work (referencing the install state
of the features) correctly.  Unfortunately, at that point, changing
REINSTALL seems to have no effect since the costing is complete.

Does anyone have a suggestion on how I can resolve this?

Thanks,
Dale

Dale Quigg  |||  Senior Build / Configuration / Installation Engineer
MessageGate  |||  Enterprise Email Governance


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Working on WIX Patch with Team Build

2008-11-25 Thread sajid

I have gone through the WIX examples on creating msp file and it works great.
(http://blogs.msdn.com/pmarcu/archive/2007/06/28/sample-patch.aspx)

In the other hand, I have my solution containing large number of projects
and different configurations scheduled to build using TFS Team Build service
and packging an MSI through WIX, which also works great.

TFS(Team Build) -> WIX(Votive) -> Msi

But I am left with no clue integrating patches with Team Build. Is there a
way to make it easier with Team Build? 
What is the best practice in creating patches using WIX and Team Build? Is
there a common solution out there that I can re-use? 

Please suggest.
-- 
View this message in context: 
http://n2.nabble.com/Working-on-WIX-Patch-with-Team-Build-tp1579458p1579458.html
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to Schedule a Custom Action to Execute First Only During Uninstall

2008-11-25 Thread Castro, Edwin (Hillsboro)
I used Before="ProcessComponents" and that seems to be early enough. Thanks!

--
Edwin

-Original Message-
From: Ali-Akber Saifee [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 4:29 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to Schedule a Custom Action to Execute First Only 
During Uninstall

Edwin,
To inspect the full sequence, just open up your msi package in orca
and look at the InstallExecuteSequence table.

~/Ali


> From: "Castro, Edwin (Hillsboro)" <[EMAIL PROTECTED]>
>
> I'm trying to schedule a custom action to execute before any other
> steps occur during uninstall only:
>
> 
>   Before="RemoveRegistryValues">Installed AND NOT REINSTALL
>   Installed AND NOT
> REINSTALL
> 
>
> I think my conditions are correct but I don't know if the Before
> attribute for CACmdLine is set to an appropriate value. I'd like to
> execute both actions above before any steps occur at uninstall time
> as I'm using resources that will be removed during install. Where in
> the help can I find the information I'm trying to find?
>
> --
> Edwin

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Executing a PowerShell Script as Custom Action

2008-11-25 Thread Castro, Edwin (Hillsboro)
I was successful with the following:








Installed AND NOT 
REINSTALL


The downside to this approach is that a command window shows up during 
uninstall. On the other hand the script gets executed properly.

I was hoping to use something like the following:









Installed AND NOT 
REINSTALL
Installed AND NOT 
REINSTALL


This second style should execute powershell without showing the command window 
which would be ideal.

Both the MSI and the target server are 32-bit. I don't think I'm having a 
64-bit issue.

--
Edwin

-Original Message-
From: Dale Quigg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 3:48 PM
To: 'wix-users@lists.sourceforge.net'
Cc: Castro, Edwin (Hillsboro)
Subject: Executing a PowerShell Script as Custom Action

> Date: Tue, 25 Nov 2008 14:10:24 -0500
> From: "Castro, Edwin (Hillsboro)" <[EMAIL PROTECTED]>
> Subject: [WiX-users] Executing a PowerShell Script as Custom Action

> I'm trying to execute a powershell script as custom action and I see
> the powershell.exe process starts but then it appears to be doing
> nothing. Here's an example:
>

> I would expect powershell to print a value to its console and
> exit quickly. Instead, powershell.exe appears to hang until
> terminated manually. Am I doing something wrong?

Hi Edwin,

I've run into this same problem.  If I remember correctly, it was because I had 
a 64-bit install but the version of powershell that was being executed was 
32-bit (or the other way around).

I know I ended up creating a vbscript custom action which I marked with 
Win64="yes".  Then this picked up the correct version (64-bit in my case) of 
powershell.

Here's a snippet of my script.  The syntax for calling powershell scripts from 
cmd.exe is a bit tricky so I've included it.

  cmdshell = "cmd.exe /c "
  cmd = cmdshell & "echo " & action & " agents in Microsoft Exchange.  This may 
take several minutes... & powershell.exe -Command " & chr(34) &  ". " & chr(39) 
& script_dir & "AgentMain.ps1" & chr(39) & " " & action & chr(34)
  ret = oShell.Run(cmd,1,true)
  ' ret is kind of useless here since Powershell doesn't seem to propogate it's 
exit status to cmd.exe


Hope this helps.
Dale


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to Schedule a Custom Action to Execute First Only During Uninstall

2008-11-25 Thread Ali-Akber Saifee
Edwin,
To inspect the full sequence, just open up your msi package in orca  
and look at the InstallExecuteSequence table.

~/Ali


> From: "Castro, Edwin (Hillsboro)" <[EMAIL PROTECTED]>
>
> I'm trying to schedule a custom action to execute before any other  
> steps occur during uninstall only:
>
> 
>   Before="RemoveRegistryValues">Installed AND NOT REINSTALL
>   Installed AND NOT  
> REINSTALL
> 
>
> I think my conditions are correct but I don't know if the Before  
> attribute for CACmdLine is set to an appropriate value. I'd like to  
> execute both actions above before any steps occur at uninstall time  
> as I'm using resources that will be removed during install. Where in  
> the help can I find the information I'm trying to find?
>
> --
> Edwin

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Executing a PowerShell Script as Custom Action

2008-11-25 Thread Dale Quigg
> Date: Tue, 25 Nov 2008 14:10:24 -0500
> From: "Castro, Edwin (Hillsboro)" <[EMAIL PROTECTED]>
> Subject: [WiX-users] Executing a PowerShell Script as Custom Action

> I'm trying to execute a powershell script as custom action and I see
> the powershell.exe process starts but then it appears to be doing
> nothing. Here's an example:
>

> I would expect powershell to print a value to its console and
> exit quickly. Instead, powershell.exe appears to hang until
> terminated manually. Am I doing something wrong?

Hi Edwin,

I've run into this same problem.  If I remember correctly, it was because I had 
a 64-bit install but the version of powershell that was being executed was 
32-bit (or the other way around).

I know I ended up creating a vbscript custom action which I marked with 
Win64="yes".  Then this picked up the correct version (64-bit in my case) of 
powershell.

Here's a snippet of my script.  The syntax for calling powershell scripts from 
cmd.exe is a bit tricky so I've included it.

  cmdshell = "cmd.exe /c "
  cmd = cmdshell & "echo " & action & " agents in Microsoft Exchange.  This may 
take several minutes... & powershell.exe -Command " & chr(34) &  ". " & chr(39) 
& script_dir & "AgentMain.ps1" & chr(39) & " " & action & chr(34)
  ret = oShell.Run(cmd,1,true)
  ' ret is kind of useless here since Powershell doesn't seem to propogate it's 
exit status to cmd.exe


Hope this helps.
Dale


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Is it possible to set LongName attribute to a Property value?

2008-11-25 Thread Rob Mensching
I encourage you to read through this series on the Directory table.  I think 
it'll clear up a bit: 
http://blogs.msdn.com/robmen/archive/2006/10/17/deciphering-the-msi-directory-table-part-7-directories-are-properties.aspx
 (there are links going backwards).


-Original Message-
From: Greg Silin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 15:27
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Is it possible to set  LongName attribute 
to a Property value?

Chad,

I am using WiX 2.

Thanks
-greg


***

Date: Tue, 25 Nov 2008 14:59:47 -0500
From: "Chad Miles" <[EMAIL PROTECTED]>
Subject: Re: [WiX-users] Is it possible to set  LongName
attribute to a Property value?
To: "General discussion for Windows Installer XML toolset."

Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

Doc shows LongName has been deprecated, yes?

working in Wix v3 right?

On Tue, Nov 25, 2008 at 2:52 PM, Greg Silin <[EMAIL PROTECTED]>wrote:

> Hi,
>
> Is it possible to set the Direction element LongName attribute to a
> property value?
>
> I have the following (excerpts):
>
> Value='CookieHandler'>
>
> Then I try to set a Directory LongName to the Property value.
>
>   LongName='[COOKIEHANDLER_APPLICATION]'>
> ...
> 
>
>
> Unfortunately, it doesn't resolve to the property value during deployment.
>  Is LongName expected to always be hard coded?
>
> Thanks
> -greg
>
> --
> --- This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK &
> win great prizes Grand prize is a trip for two to an Open Source event
> anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Is it possible to set LongName attribute to a Property value?

2008-11-25 Thread Greg Silin
Chad,

I am using WiX 2.

Thanks
-greg


***

Date: Tue, 25 Nov 2008 14:59:47 -0500
From: "Chad Miles" <[EMAIL PROTECTED]>
Subject: Re: [WiX-users] Is it possible to set  LongName
attribute to a Property value?
To: "General discussion for Windows Installer XML toolset."

Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

Doc shows LongName has been deprecated, yes?

working in Wix v3 right?

On Tue, Nov 25, 2008 at 2:52 PM, Greg Silin <[EMAIL PROTECTED]>wrote:

> Hi,
>
> Is it possible to set the Direction element LongName attribute to a
> property value?
>
> I have the following (excerpts):
>
> Value='CookieHandler'>
>
> Then I try to set a Directory LongName to the Property value.
>
>   LongName='[COOKIEHANDLER_APPLICATION]'>
> ...
> 
>
>
> Unfortunately, it doesn't resolve to the property value during deployment.
>  Is LongName expected to always be hard coded?
>
> Thanks
> -greg
>
> --
> --- This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK &
> win great prizes Grand prize is a trip for two to an Open Source event
> anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Reinstall a component during "Change" install

2008-11-25 Thread Dale Quigg
I am trying to reinstall some components when the user does a "Change".

The issue discussed in this thread 
http://n2.nabble.com/Always-Reinstall-a-Component-td1483743.html
is similar to my situation, but I have one extra "twist" to my problem.

My problem is that I have two features and need to set REINSTALL based on which 
of the two features are selected.

I have custom actions defined like this;
  
  
  

and sequenced like this;
  !FeatureOne=3 AND 
!FeatureTwo=3 AND NOT REINSTALL
  !FeatureOne=3 
AND NOT REINSTALL 
  !FeatureTwo=3 
AND NOT REINSTALL 

However, when I run a "Change" install, I get;
  MSI (s) (30:94) [14:38:40:428]: Skipping action: Both_SetREINSTALL (condition 
is false)
  MSI (s) (30:94) [14:38:40:428]: Skipping action: Feat1_SetREINSTALL 
(condition is false)
  MSI (s) (30:94) [14:38:40:428]: Skipping action: Feat2_SetREINSTALL 
(condition is false)

It appears that I'm in a Catch-22 here.  If I sequence my custom actions after 
CostFinalize, then my conditions work (referencing the install state of the 
features) correctly.  Unfortunately, at that point, changing REINSTALL seems to 
have no effect since the costing is complete.

Does anyone have a suggestion on how I can resolve this?

Thanks,
Dale

Dale Quigg  |||  Senior Build / Configuration / Installation Engineer
MessageGate  |||  Enterprise Email Governance


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] LGHT0216 Error

2008-11-25 Thread Tina Basinger
FYI - had the build guy double-check the Windows Installer version, and it
was only at 3.5.  Upgraded to 4.5 and everything works.

Thansk!
-Tina

On Tue, Nov 25, 2008 at 11:01 AM, Rob Mensching <[EMAIL PROTECTED]
> wrote:

> What version of the WiX toolset are you using?
>
> -Original Message-
> From: Tina Basinger [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 25, 2008 05:42
> To: Wix Group
> Subject: [WiX-users] LGHT0216 Error
>
> I am recieiving several errors from Light.exe saying "error LGHT0216 : An
> unexpected Win32 exception with error code 0x64D occurred: This
> installation
> package cannot be installed by the Windows Installer service.  You must
> install a Windows service pack that contains a newer version of the Windows
> Installer service".
>
> Does anyone have any tips as to what the problem might be?  This is only
> happening on the build machines for our product, and the build guys tells
> me
> that we have the newest version of Windows Installer installed on the
> machine, and that the service is running.  Does the version have to match
> specifically (what I'm not sure), or just be newer?
>
> Thanks!
> -Tina
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom Action Setting a Control value

2008-11-25 Thread Richard

In article <[EMAIL PROTECTED]>,
"Chris Matthews" <[EMAIL PROTECTED]>  writes:

> >The property associated with an edit control is updated when the focus
> >leaves the edit control.  Is that consistent with what you're seeing?
> 
> No because the focus is already lost as I have clicked on the  push
> button to fire the custom action the edit control never updates.

OK, I think I'm a little confused here.  Are you having problems
getting the property updated when the user edits the text in the
control, or having problems getting the control updated when the
property's value is changed?

For the latter, you'll have to do the "two dialog trick" as has been
discussed here recently.

It occurs to me that you might be able to fake it out by hiding and
then unhiding the control.  That might force it to update its text
from the property.
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
  

Legalize Adulthood! 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Is it possible to set LongName attribute to a Property value?

2008-11-25 Thread Chad Miles
Doc shows LongName has been deprecated, yes?

working in Wix v3 right?

On Tue, Nov 25, 2008 at 2:52 PM, Greg Silin <[EMAIL PROTECTED]>wrote:

> Hi,
>
> Is it possible to set the Direction element LongName attribute to a
> property value?
>
> I have the following (excerpts):
>
> Value='CookieHandler'>
>
> Then I try to set a Directory LongName to the Property value.
>
>   LongName='[COOKIEHANDLER_APPLICATION]'>
> ...
> 
>
>
> Unfortunately, it doesn't resolve to the property value during deployment.
>  Is LongName expected to always be hard coded?
>
> Thanks
> -greg
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Is it possible to set LongName attribute to a Property value?

2008-11-25 Thread Greg Silin
Hi,

Is it possible to set the Direction element LongName attribute to a property 
value?

I have the following (excerpts):



Then I try to set a Directory LongName to the Property value.

  
...



Unfortunately, it doesn't resolve to the property value during deployment.  Is 
LongName expected to always be hard coded?

Thanks
-greg

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Executing a PowerShell Script as Custom Action

2008-11-25 Thread Castro, Edwin (Hillsboro)
I'm trying to execute a powershell script as custom action and I see the 
powershell.exe process starts but then it appears to be doing nothing. Here's 
an example:


  






  Installed AND NOT 
REINSTALL
  Installed AND NOT 
REINSTALL


I would expect powershell to print a value to its console and exit quickly. 
Instead, powershell.exe appears to hang until terminated manually. Am I doing 
something wrong?

--
Edwin
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] How to Schedule a Custom Action to Execute First Only During Uninstall

2008-11-25 Thread Castro, Edwin (Hillsboro)
I'm trying to schedule a custom action to execute before any other steps occur 
during uninstall only:


  Installed AND 
NOT REINSTALL
   Installed AND NOT 
REINSTALL


I think my conditions are correct but I don't know if the Before attribute for 
CACmdLine is set to an appropriate value. I'd like to execute both actions 
above before any steps occur at uninstall time as I'm using resources that will 
be removed during install. Where in the help can I find the information I'm 
trying to find?

--
Edwin
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] strange behavior of Localized display name for shortcuts

2008-11-25 Thread Rob Mensching
Wow, sounds like a really crazy behavior in Windows Explorer.

-Original Message-
From: Ali-Akber Saifee [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 20:58
To: wix-users@lists.sourceforge.net; [EMAIL PROTECTED]
Subject: [WiX-users] strange behavior of Localized display name for shortcuts

I guess this is more of an operating system problem than a WiX / MSI one but
lets see if anyone else has hit it.

Scenario-1

1. Shortcut  created in a sub folder of 'Start menu' called 'xyz.lnk'. The
'Name' column for this shortcut is localized (i.e. transformed via language
transforms). Also, the DisplayResourceDLL & DisplayDescriptionResourceDLL
fields are populated to point to mui resource dlls.
2. The package is installed on Vista, under MUI with the display language in
an east asian language (e.g zh-TW ) - with the system setting for 'language
for non-unicode applications' set to the corresponding language (Chinese
Traditional ) In this case, once installed, the shortcut appears correctly
in traditional chinese, and so does the tooltip. However, upon switching the
display language to English, the shortcut name remains in traditional
chinese (but the description switches correctly).


If the above scenario is repeated, without changing the 'language for non
unicode applications' modified (i.e. left to English), the problem does not
occur. Also, if the installation is done in a non east asian language before
switching to English, the problem again, does not occur.

Further investigation of this led to the 'desktop.ini' file that was created
under the sub-folder of Start Menu, which appeared to have some encoding
errors when pointing to the localized shortcut file name ( "立即建立家庭電影.lnk"
appeared as "立即建立家庭電?影.lnk" - i.e. the extra question mark). Furthermore,
the desktop.ini file was an 'ANSI' file. After manually creating this file
in Unicode and writing the same entries, the shortcut display name switched
correctly with MUI.

Lastly, I tried using the SHSetLocalizedName api defined in "shlapi.h" -
which i assume is the same one used internally by windows installer - to
link up shortcut file to a resource dll (under the same conditions as
described above in Scenario-1) - and the entry in the desktop.ini again
appeared corrupted, which led to the display name not switching correctly
with MUI.


*any ideas*?

btw: the obvious workaround for this problem would agreeably be to create
the shortcut file with an english name and then point it to the resource
dll, however - this mechanism will not work for XP since the MUI redirection
is not available.



--
Ali-Akber Saifee
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How can I get the correct INSTALLDIR at the beginning of uninstall?

2008-11-25 Thread Rob Mensching
Things *might* also get confused if a CustomAction is modifying the Directory.


PS:  Directory/@Name="." is the same as not having the Directory/@Name.


-Original Message-
From: Kevin Richardson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 08:54
To: Jianjun An (Person Consulting)
Cc: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] How can I get the correct INSTALLDIR at the beginning 
of uninstall?

In that case, something is definitely wrong. Uninstall should work
from any install location without your intervention.

You had said that we were both doing the same thing, but your
directory table is not the same as mine. You have:

> 
> 
>   
> 
>  < File . />
> 
>   
> 
> 


I have:

> 
>  
>
>  
> The problem is my MSI cannot remove the components if user changed
> default install path which I did not save it into registry.
>
> The context about this problem is in the attachment.
>
> Thanks


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How can I get the correct INSTALLDIR at the beginning of uninstall?

2008-11-25 Thread Kevin Richardson
In that case, something is definitely wrong. Uninstall should work  
from any install location without your intervention.

You had said that we were both doing the same thing, but your  
directory table is not the same as mine. You have:

> 
> 
>   
> 
>  < File . />
> 
>   
> 
> 


I have:

> 
>  
>
>  
> The problem is my MSI cannot remove the components if user changed  
> default install path which I did not save it into registry.
>
> The context about this problem is in the attachment.
>
> Thanks


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] multiple license agreements in one installer?

2008-11-25 Thread Roger Yen
Hello,

Thanks for the suggestions, I think I will be going with the custom
action route. 

Now, I'd like to fill the combo box through reading from an INI file or
something similar, and I was wondering if it's possible to have the INI
file in the msi and still be able to be accessed during install time? Or
it's required to be separated from the msi?

Thank you,

Roger Yen

-Original Message-
From: Michael Urman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 20, 2008 3:31 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] multiple license agreements in one installer?

If you're willing to tackle custom UI, I think you could create
several superimposed memo controls with conditions to hide or show the
one with the right license per the selected language. If you wanted to
fetch the text on the fly that would absolutely require a custom
action as Rob says, and probably a dialog transition, but if you can
include them all directly it might work without any custom actions.

On Thu, Nov 20, 2008 at 12:16, Roger Yen <[EMAIL PROTECTED]> wrote:
> Hello all,
>
>
>
> Is it possible to achieve having a different license agreement for
> different regions (ie. dropdown box with country list, and selecting a
> country would show a license agreement in corresponding language,
> whether it be including all the SLA's in the installer or dynamically
> retrieve each SLA from a server) within WiX? Or is a bootstrapper my
> only option?
>
>
>
>
>
> Thanks!
>
>
>
> Roger Yen
>
>
>
>
> -
> This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute
non-public information. Any use of this information by anyone other than
the intended recipient is prohibited. If you have received this
transmission in error, please immediately reply to the sender and delete
this information from your system. Use, dissemination, distribution, or
reproduction of this transmission by unintended recipients is not
authorized and may be unlawful.
>

-
> This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
> Build the coolest Linux based applications with Moblin SDK & win great
prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
Michael Urman


-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
This transmission (including any attachments) may contain confidential 
information, privileged material (including material protected by the 
solicitor-client or other applicable privileges), or constitute non-public 
information. Any use of this information by anyone other than the intended 
recipient is prohibited. If you have received this transmission in error, 
please immediately reply to the sender and delete this information from your 
system. Use, dissemination, distribution, or reproduction of this transmission 
by unintended recipients is not authorized and may be unlawful.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How can I get the correct INSTALLDIR at the beginning of uninstall?

2008-11-25 Thread Bob Arnson
Jianjun An (Person Consulting) wrote:
> The problem is my MSI cannot remove the components if user changed default 
> install path which I did not save it into registry.
>   

It can. If you need a property value to run a custom action, for 
example, you need to store it in the registry and use a RegistrySearch 
to restore it. Otherwise, MSI knows where it installed components and 
will remove them without that extra information.

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



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Certificate install to local machine failswith code 26352

2008-11-25 Thread Rob Mensching
Your CustomAction is not deferred and will fail if the installation is not 
elevated.  Have you tried running it deferred?  Maybe that is the problem we're 
having... the deferred CustomAction server isn't impersonating for us 
appropriately.

-Original Message-
From: Chris Bardon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 04:38
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Certificate install to local machine failswith code 
26352

Very strange-I thought that would fix the problem.  I created a custom
action to install my certificate, and that was the only really major
change that I made.  Here's the source for my CA:

UINT __stdcall InstallCertificate(MSIHANDLE hInstall)
{
//install a cert into the local machine store
LPWSTR certPath=new WCHAR[MAX_PATH];
DWORD dwSize=MAX_PATH;
UINT rc=MsiGetProperty(hInstall,TEXT("CERTPATH"), certPath,
&dwSize );

HCERTSTORE hCertStore;

//open the root CA store
hCertStore = CertOpenStore(CERT_STORE_PROV_SYSTEM, 0, NULL,
CERT_SYSTEM_STORE_LOCAL_MACHINE , L"Root");

DWORD dwCertSize=8192; //wix used a 64Mb buffer
BYTE* certBuffer=new BYTE[dwCertSize];
memset(certBuffer,0,dwCertSize);
FILE* f=_wfopen(certPath,TEXT("r"));
if(f==NULL)
return ERROR_PATH_NOT_FOUND;

CERT_BLOB blob = { 0 };


fread(certBuffer,sizeof(BYTE),dwCertSize,f);
blob.cbData = dwCertSize;
blob.pbData = certBuffer;

PCCERT_CONTEXT pNewContext = NULL;
DWORD dwEncodingType;
DWORD dwContentType;
DWORD dwFormatType;


CryptQueryObject(CERT_QUERY_OBJECT_BLOB, &blob,
CERT_QUERY_CONTENT_FLAG_ALL, CERT_QUERY_FORMAT_FLAG_ALL, 0,
&dwEncodingType, &dwContentType, &dwFormatType, NULL,
NULL, (LPCVOID*)&pNewContext);
if(pNewContext)
{
//install the certificate
//strange-replace existing fails, but use existing
works.  Replace does a delete though, so perhaps that's why?
if(!CertAddCertificateContextToStore(hCertStore,
pNewContext, CERT_STORE_ADD_USE_EXISTING, NULL))
//if(!CertAddCertificateContextToStore(hCertStore,
pNewContext, CERT_STORE_ADD_REPLACE_EXISTING, NULL))
{
DWORD dwErr=GetLastError();
return dwErr;
}
}
//close the store
CertCloseStore(hCertStore, 0);
delete certBuffer;
delete certPath;
return ERROR_SUCCESS;
}

And then I just run it in my installer like this:


  CERTPATH AND NOT REMOVE


So far, everything seems to work, so all I really have to do is tighten
up a couple of things in the CA source.  Any idea why my code works, but
the code in iisextension doesn't?  If I change the line that installs
the cert to the one that's commented out, it gives me the same error as
the one I logged.


-Original Message-
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 2:29 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Certificate install to local machine failswith
code 26352

As noted in my bug comment, the other code is commented out.  I changed
the only location that was actually being executed.  Ultimately, I don't
think this change did anything.

-Original Message-
From: Chris Bardon [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2008 12:43
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Certificate install to local machine fails with
code 26352

I just checked the latest weekly, and it looks like the change only got
made in one place.  It looks like I still get the same cert install
error-is there a reason that it didn't change in scacert.cpp?

-Original Message-
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 2:01 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Certificate install tolocal
machinefailswithcode 26352

Yes, but I didn't make the 4624 build.  If you look in CVS then you'll
see the change.

-Original Message-
From: Chris Bardon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 10:51
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Certificate install to local
machinefailswithcode 26352

I checked out the latest weekly build, and it looks like the problem is
still there.  The source for the build is also identical to what was
there before-Rob, did you change anything?

-Original Message-
From: Chris Bardon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2008 1:13 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Certificate install to local
machinefailswithcode 26352

Thanks, I've opened a bug (number 2184946).

-Original Message-
Fro

Re: [WiX-users] Custom Action - start exe inside my INSTALLDIR

2008-11-25 Thread Rob Mensching
That is not correct.

-Original Message-
From: Eitan Behar [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 21:05
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Custom Action - start exe inside my INSTALLDIR

Why don't you include the EXE and the DLL as well in the Binary table ? If your 
file is only needed for maintenance (install, repair, uninstall), then do not 
deploy it.

If I remember correctly, all files in the Binary table are extracted to the 
same folder during (un)installation.



-Original Message-
From: Love88Keys [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 12:54 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Custom Action - start exe inside my INSTALLDIR


Well, I think I didn´t point my problem exactly.

I´ve got an EXE which ist only needed during install, uninstall or modify
process. My first idea was -of course- to do a CustomAction with BinaryKey.
But :
1. the EXE requires a dll and I don´t know how to refer to that.
2. I´m not shure if my EXE is still available if the Setup.msi is removed
from the system.

So I decided to install the EXE plus dll and use FileKey. Works good, but on
uninstall nothing happens or - other case - the compiler shows me an error
"Unresolved reference". Just depending on when I set the CA
Before='LaunchCondition' or After='InstallFinalize' or something between but
I didn´t check everything out.

Thanks, Michael



--
View this message in context: 
http://n2.nabble.com/Custom-Action---start-exe-inside-my-INSTALLDIR-tp1568179p1574154.html
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] terminate installation based on the CA result

2008-11-25 Thread Rob Mensching
Less specifically  the syntax I provided was something like XPath that 
says, "Look at the CustomAction element with the Return attribute" (@ == 
attribute)

-Original Message-
From: Jianjun An (Person Consulting) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 00:16
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] terminate installation based on the CA result


Please refer attributes Execute and Return of CustomAction in Wix.chm





Hi Rob!

Could you please clarify a bit your answer? I'm newbie in wix.

Thanks!

-Original Message-
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 6:16 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] terminate installation based on the CA result

CustomAction/@Return

-Original Message-
From: Egor Sinkevich [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 03:05
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] terminate installation based on the CA result

Hi All!

We're executing several custom actions after files installed (from custom 
action we're registering some files and doing other things)

  
  




Sometimes custom action returns ActionResult.Failure but installation continues 
like there was no error.

Questions:

1.  Why installation continue even if custom action return ActionResult.Failure?

2.   How is this possible to roll back installation if custom action fails?

Thanks!
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] ServiceControl tips request. (remove a service)

2008-11-25 Thread Rob Mensching
No, you're in the right place.  ServiceControl is the correct element.

-Original Message-
From: BUNYAN, Marc (WGMS) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 07:20
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] ServiceControl tips request. (remove a service)


Hi,



Apologies in advance if I'm posting in the wrong section (let me know
and I'll post in the right place!) J



Im trying to write my first wix script to make a few changes to a bit of
software on our network; this requires a service to be stopped and
removed - Im a little confused on the best method to stop and remove a
service on a pc though.



I've added the line below as an attempt to do this; I'm probably way off
the mark however.







Any help that can be provided would be much appreciated!



Thanks again,

-Marc











"Wood Group Management Services Limited, a Company incorporated in Scotland 
with its Registered Number SC178510 and with its registered office at John Wood 
House, Greenwell Road, East Tullos Industrial Estate, Aberdeen, AB12 3AX, 
Scotland, United Kingdom."

This email and any files attached to it contain confidential information. 
Please notify the sender if you have received this email in error. If you are 
not the intended recipient, any use or disclosure of this email or any attached 
files is prohibited

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] LGHT0216 Error

2008-11-25 Thread Rob Mensching
What version of the WiX toolset are you using?

-Original Message-
From: Tina Basinger [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 05:42
To: Wix Group
Subject: [WiX-users] LGHT0216 Error

I am recieiving several errors from Light.exe saying "error LGHT0216 : An
unexpected Win32 exception with error code 0x64D occurred: This installation
package cannot be installed by the Windows Installer service.  You must
install a Windows service pack that contains a newer version of the Windows
Installer service".

Does anyone have any tips as to what the problem might be?  This is only
happening on the build machines for our product, and the build guys tells me
that we have the newest version of Windows Installer installed on the
machine, and that the service is running.  Does the version have to match
specifically (what I'm not sure), or just be newer?

Thanks!
-Tina
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] ServiceControl tips request. (remove a service)

2008-11-25 Thread BUNYAN, Marc (WGMS)
 
Hi,

 

Apologies in advance if I'm posting in the wrong section (let me know
and I'll post in the right place!) J

 

Im trying to write my first wix script to make a few changes to a bit of
software on our network; this requires a service to be stopped and
removed - Im a little confused on the best method to stop and remove a
service on a pc though.

 

I've added the line below as an attempt to do this; I'm probably way off
the mark however.

 



 

Any help that can be provided would be much appreciated!

 

Thanks again,

-Marc

 

 

 


 


"Wood Group Management Services Limited, a Company incorporated in Scotland 
with its Registered Number SC178510 and with its registered office at John Wood 
House, Greenwell Road, East Tullos Industrial Estate, Aberdeen, AB12 3AX, 
Scotland, United Kingdom."
 
This email and any files attached to it contain confidential information. 
Please notify the sender if you have received this email in error. If you are 
not the intended recipient, any use or disclosure of this email or any attached 
files is prohibited
 
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] FileSharePermission for NT AUTHORITY\NetworkService User

2008-11-25 Thread Amy Rosewater
Hi Chris,

Network Service is one of the users that has a special string name which
you must use to refer to it in your wxs.  I have the following which has
worked for me (notice there is not a domain specified). 



I believe the same syntax would work for the PermissionEx element, but
the timing of execution of those two actions is very different so
beware.

Amy

-Original Message-
From: Gremlin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 25, 2008 1:33 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] FileSharePermission for NT AUTHORITY\NetworkService
User


Hello!

How can I set the file share permission for the NetworkService-User?
Somehow it didn't work with the FileSharePermission-Tag. 
Could you give me an example?

Thank you,
Chris
-- 
View this message in context:
http://n2.nabble.com/FileSharePermission-for-NT-AUTHORITY%5CNetworkServi
ce-User-tp1575516p1575516.html
Sent from the wix-users mailing list archive at Nabble.com.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Custom action failing causing premature end...

2008-11-25 Thread hegsie

Hi,
I Have a custom action that occasionally fails as below...

[CustomAction]
public static ActionResult InstallCP(Session session)
{
try
{
session.Log("Begin InstallModernCP");
   CPInstaller DCInstaller = new CPInstaller();

if (DCInstaller.InstallClientProcess())
{
session.Log("Returning Success from custom action
InstallModernCP");
return ActionResult.Success;
}
else
{
session.Log("Returning Failure from custom action
InstallModernCP");
return ActionResult.Failure;
}
}
catch (System.Exception e)
{
Record rec = new Record(1);
rec.SetString(1, "Failed to add client process to the
Datacenter: [" + e.Message + "]");
session.Message(InstallMessage.Error, rec);
return ActionResult.Failure;
}
}

but when it fails the install doesn't rollback everything it simply
exits and sets the dialog to something saying 'Setup ended
prematurely'...

Whats wrong with this CA?

-- 
View this message in context: 
http://n2.nabble.com/Custom-action-failing-causing-premature-end...-tp1576575p1576575.html
Sent from the wix-users mailing list archive at Nabble.com.
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom Action Setting a Control value

2008-11-25 Thread Chris Matthews
>The property associated with an edit control is updated when the focus
>leaves the edit control.  Is that consistent with what you're seeing?

No because the focus is already lost as I have clicked on the  push
button to fire the custom action the edit control never updates. It is a
bit annoying, but I will code round it by setting the edit control to
disabled and allow the user to edit the property from within the custom
action, but it would have been nice to do it the right way.
Disclaimer and Confidentiality Notice
This email and any attachment are intended only for the use of the individual 
or entity to which it is directed and may contain information which is 
confidential.  Access, copying or re-use of information in or attached to this 
email by anyone else other than the intended recipient is strictly prohibited.  
If you have received this communication and you are not the intended recipient 
or the employee or agent responsible for delivering this email to the intended 
recipient, please inform IRIS on telephone number 01753 212200 and then delete 
this email and any attachments from your system.
 
IRIS makes no representation or warranty as to the absence of viruses in this 
email or any attachments and we may monitor emails sent to and from our server.
Any views or opinions presented in this email or attachment are solely those of 
the author and do not necessarily represent those of IRIS, its parent, 
associates, subsidiaries or affiliates, unless otherwise expressly indicated.
 
Laserform International Limited  |  Registered in England: 2403332  |  
Registered office: Integra House, 138-140 Alexandra Road, London, SW19 7JY

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] backuponinstall

2008-11-25 Thread Yu, Brian
I tried the following but the msi just fails
  



...

Not Installed
OR REINSTALL

I can't find this file either C:\WINDOWS\Installer\MSI1429.tmp as it
gets removed.

MSI (s) (08:68) [14:08:00:593]: Note: 1: 1721 2: testbackup 3:
C:\WINDOWS\Installer\MSI1429.tmp 4:  
Error 1721. There is a problem with this Windows Installer package. A
program required for this install to complete could not be run. Contact
your support personnel or package vendor. Action: testbackup, location:
C:\WINDOWS\Installer\MSI1429.tmp, command:  
MSI (s) (08:68) [14:08:05:312]: Product: EasyTrade 1.5 SP1 1.5.7.0 --
Error 1721. There is a problem with this Windows Installer package. A
program required for this install to complete could not be run. Contact
your support personnel or package vendor. Action: testbackup, location:
C:\WINDOWS\Installer\MSI1429.tmp, command:  

Action ended 14:08:05: testbackup. Return value 3.
MSI (s) (08:68) [14:08:05:328]: Machine policy value 'DisableRollback'
is 0
MSI (s) (08:68) [14:08:05:328]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\R
ollback\Scripts 3: 2 
MSI (s) (08:68) [14:08:05:328]: Note: 1: 1402 2:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\R
ollback\Scripts 3: 2 
MSI (s) (08:68) [14:08:05:328]: No System Restore sequence number for
this installation.

-Original Message-
From: Rob Mensching [mailto:[EMAIL PROTECTED] 
Sent: 24 November 2008 18:44
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] backuponinstall

A batch file?  Wow, this is for an internal tool only right?

-Original Message-
From: Brian Simoneau [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 10:29
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] backuponinstall

Add the batch file as a Binary and run the custom action before
InstallFiles.

-Brian Simoneau

-Original Message-
From: Yu, Brian [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 8:04 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] backuponinstall

Hi there



I am trying to backup all files under INSTALLDIR before installation

M plan is to use custom action to run a bat file that does the copying.



I tried running the bat file as is and deploying the bat file itself
first

The problem is that MSI InstallFiles action install all files before my
custom action kicks in and  overwrites my old binaries



Any help is appreciated



Brian






_
This e-mail was sent to you by EASYSCREEN LIMITED (EASYSCREEN). We are
incorporated under the laws of England and Wales (company no. 05677531
and VAT registration no. 872810613). Our registered office is at 155
Bishopsgate, London EC2M 3TQ. This e-mail and/or any attached documents
may contain privileged and confidential information and should only be
read by those persons to whom this e-mail is addressed. Use by other
than intended recipients is prohibited. If you are not the addressee,
you must not copy, distribute, disclose or use any of the information in
it. If you have received it in error, please delete it and immediately
notify the sender. EASYSCREEN reserves the right to monitor all e-mail
messages passing through its network. As we cannot guarantee the
genuineness, accuracy or completeness of the information contained in
this message, the statements set forth are not legally binding.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users maili

[WiX-users] LGHT0216 Error

2008-11-25 Thread Tina Basinger
I am recieiving several errors from Light.exe saying "error LGHT0216 : An
unexpected Win32 exception with error code 0x64D occurred: This installation
package cannot be installed by the Windows Installer service.  You must
install a Windows service pack that contains a newer version of the Windows
Installer service".

Does anyone have any tips as to what the problem might be?  This is only
happening on the build machines for our product, and the build guys tells me
that we have the newest version of Windows Installer installed on the
machine, and that the service is running.  Does the version have to match
specifically (what I'm not sure), or just be newer?

Thanks!
-Tina
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom Action Setting a Control value

2008-11-25 Thread Richard

In article <[EMAIL PROTECTED]>,
"Chris Matthews" <[EMAIL PROTECTED]>  writes:

> I have now removed the Subscribe and the field still updates. So yes it
> looks like the ICEs aren't validating the Event Column in EventMapping.
> The one annoying thing is that if I set the Edit Control to enabled and
> edited before the custom action is run then the updated property doesn't
> make it into the control.

The property associated with an edit control is updated when the focus
leaves the edit control.  Is that consistent with what you're seeing?
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
  

Legalize Adulthood! 

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Certificate install to local machine failswith code 26352

2008-11-25 Thread Chris Bardon
Very strange-I thought that would fix the problem.  I created a custom
action to install my certificate, and that was the only really major
change that I made.  Here's the source for my CA:

UINT __stdcall InstallCertificate(MSIHANDLE hInstall)
{
//install a cert into the local machine store
LPWSTR certPath=new WCHAR[MAX_PATH];
DWORD dwSize=MAX_PATH;
UINT rc=MsiGetProperty(hInstall,TEXT("CERTPATH"), certPath,
&dwSize );

HCERTSTORE hCertStore;  

//open the root CA store
hCertStore = CertOpenStore(CERT_STORE_PROV_SYSTEM, 0, NULL,
CERT_SYSTEM_STORE_LOCAL_MACHINE , L"Root");

DWORD dwCertSize=8192; //wix used a 64Mb buffer
BYTE* certBuffer=new BYTE[dwCertSize];
memset(certBuffer,0,dwCertSize);
FILE* f=_wfopen(certPath,TEXT("r"));
if(f==NULL)
return ERROR_PATH_NOT_FOUND;

CERT_BLOB blob = { 0 };


fread(certBuffer,sizeof(BYTE),dwCertSize,f);
blob.cbData = dwCertSize;
blob.pbData = certBuffer;

PCCERT_CONTEXT pNewContext = NULL;
DWORD dwEncodingType;
DWORD dwContentType;
DWORD dwFormatType;


CryptQueryObject(CERT_QUERY_OBJECT_BLOB, &blob,
CERT_QUERY_CONTENT_FLAG_ALL, CERT_QUERY_FORMAT_FLAG_ALL, 0, 
&dwEncodingType, &dwContentType, &dwFormatType, NULL,
NULL, (LPCVOID*)&pNewContext);
if(pNewContext)
{
//install the certificate
//strange-replace existing fails, but use existing
works.  Replace does a delete though, so perhaps that's why?
if(!CertAddCertificateContextToStore(hCertStore,
pNewContext, CERT_STORE_ADD_USE_EXISTING, NULL))
//if(!CertAddCertificateContextToStore(hCertStore,
pNewContext, CERT_STORE_ADD_REPLACE_EXISTING, NULL))
{
DWORD dwErr=GetLastError();
return dwErr;
}
}   
//close the store
CertCloseStore(hCertStore, 0);
delete certBuffer;
delete certPath;
return ERROR_SUCCESS;
}

And then I just run it in my installer like this:


  CERTPATH AND NOT REMOVE


So far, everything seems to work, so all I really have to do is tighten
up a couple of things in the CA source.  Any idea why my code works, but
the code in iisextension doesn't?  If I change the line that installs
the cert to the one that's commented out, it gives me the same error as
the one I logged.


-Original Message-
From: Rob Mensching [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 24, 2008 2:29 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Certificate install to local machine failswith
code 26352

As noted in my bug comment, the other code is commented out.  I changed
the only location that was actually being executed.  Ultimately, I don't
think this change did anything.

-Original Message-
From: Chris Bardon [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2008 12:43
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Certificate install to local machine fails with
code 26352

I just checked the latest weekly, and it looks like the change only got
made in one place.  It looks like I still get the same cert install
error-is there a reason that it didn't change in scacert.cpp?

-Original Message-
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 2:01 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Certificate install tolocal
machinefailswithcode 26352

Yes, but I didn't make the 4624 build.  If you look in CVS then you'll
see the change.

-Original Message-
From: Chris Bardon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2008 10:51
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Certificate install to local
machinefailswithcode 26352

I checked out the latest weekly build, and it looks like the problem is
still there.  The source for the build is also identical to what was
there before-Rob, did you change anything?

-Original Message-
From: Chris Bardon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2008 1:13 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Certificate install to local
machinefailswithcode 26352

Thanks, I've opened a bug (number 2184946).

-Original Message-
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2008 12:24 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Certificate install to local machine
failswithcode 26352

Wow, nice analysis.  Is there a bug open on this issue right now?  If
not, can you open one and I'll try to get this change in Thursday night
for Friday's build.

-Original Message-
From: Chris Bardon [mailto:[EMAIL PROTECTED]
Sen

Re: [WiX-users] Custom Action Setting a Control value

2008-11-25 Thread Chris Matthews
I have now removed the Subscribe and the field still updates. So yes it
looks like the ICEs aren't validating the Event Column in EventMapping.
The one annoying thing is that if I set the Edit Control to enabled and
edited before the custom action is run then the updated property doesn't
make it into the control.

Christopher Matthews
IRIS Legal Solutions
Laserform
Email:[EMAIL PROTECTED]
Web: www.iris.co.uk/laserform




-Original Message-
From: Richard [mailto:[EMAIL PROTECTED] 
Sent: 24 November 2008 17:25
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Custom Action Setting a Control value


In article
<[EMAIL PROTECTED]>,
"Chris Matthews" <[EMAIL PROTECTED]>  writes:

> Yes it passes all ICEs. [...]

Interesting.  Does it still work if you take out the Subscribe?

> >  > Height="16" Property="LFM_SERVER_ROOT" TabSkip="no" Disabled="yes" >
> >   
> > 

See, I'm thinking that even if you did need to subscribe to a property
change event, that the syntax would be more like
Event="[LFM_SERVER_ROOT]" like it is in the Publish element and not
Event="LFM_SERVER_ROOT".  It sounds to me like the ICEs aren't
checking the valid values of the Event column for the EventMapping
table.
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for
download
  

Legalize Adulthood! 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
Disclaimer and Confidentiality Notice
This email and any attachment are intended only for the use of the individual 
or entity to which it is directed and may contain information which is 
confidential.  Access, copying or re-use of information in or attached to this 
email by anyone else other than the intended recipient is strictly prohibited.  
If you have received this communication and you are not the intended recipient 
or the employee or agent responsible for delivering this email to the intended 
recipient, please inform IRIS on telephone number 01753 212200 and then delete 
this email and any attachments from your system.
 
IRIS makes no representation or warranty as to the absence of viruses in this 
email or any attachments and we may monitor emails sent to and from our server.
Any views or opinions presented in this email or attachment are solely those of 
the author and do not necessarily represent those of IRIS, its parent, 
associates, subsidiaries or affiliates, unless otherwise expressly indicated.
 
Laserform International Limited  |  Registered in England: 2403332  |  
Registered office: Integra House, 138-140 Alexandra Road, London, SW19 7JY

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] FileSharePermission for NT AUTHORITY\NetworkService User

2008-11-25 Thread Gremlin

Hello!

How can I set the file share permission for the NetworkService-User?
Somehow it didn't work with the FileSharePermission-Tag. 
Could you give me an example?

Thank you,
Chris
-- 
View this message in context: 
http://n2.nabble.com/FileSharePermission-for-NT-AUTHORITY%5CNetworkService-User-tp1575516p1575516.html
Sent from the wix-users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Checking configuration of target machine during setup

2008-11-25 Thread ajay

I have requirement where I need to check the machine for minimum configuration 
(RAM, disk space, CPU etc) as part of setup and fail otherwise.  Are there any 
standard launch conditions and extensions I can use or do I have to revert to 
WMI to gather this info?
Any samples/guidance will be much appreciated.
Thanks.

-- 
View this message in context: 
http://n2.nabble.com/Checking-configuration-of-target-machine-during-setup-tp1575477p1575477.html
Sent from the wix-users mailing list archive at Nabble.com.
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How can I get the correct INSTALLDIR at the beginning of uninstall?

2008-11-25 Thread Jianjun An (Person Consulting)

The problem is my MSI cannot remove the components if user changed default 
install path which I did not save it into registry.

The context about this problem is in the attachment.

Thanks



Jianjun An (Person Consulting) wrote:
> How can I do that? I am seeking a way not using registry.
>

What do you need it for? MSI will automatically remove the components it
installs.

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



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] terminate installation based on the CA result

2008-11-25 Thread Jianjun An (Person Consulting)

Please refer attributes Execute and Return of CustomAction in Wix.chm





Hi Rob!

Could you please clarify a bit your answer? I'm newbie in wix.

Thanks!

-Original Message-
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 6:16 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] terminate installation based on the CA result

CustomAction/@Return

-Original Message-
From: Egor Sinkevich [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 03:05
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] terminate installation based on the CA result

Hi All!

We're executing several custom actions after files installed (from custom 
action we're registering some files and doing other things)

  
  




Sometimes custom action returns ActionResult.Failure but installation continues 
like there was no error.

Questions:

1.  Why installation continue even if custom action return ActionResult.Failure?

2.   How is this possible to roll back installation if custom action fails?

Thanks!
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] terminate installation based on the CA result

2008-11-25 Thread Egor Sinkevich
Hi Rob!

Could you please clarify a bit your answer? I'm newbie in wix.

Thanks!

-Original Message-
From: Rob Mensching [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 6:16 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] terminate installation based on the CA result

CustomAction/@Return

-Original Message-
From: Egor Sinkevich [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 03:05
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] terminate installation based on the CA result

Hi All!

We're executing several custom actions after files installed (from custom 
action we're registering some files and doing other things)

  
  




Sometimes custom action returns ActionResult.Failure but installation continues 
like there was no error.

Questions:

1.  Why installation continue even if custom action return ActionResult.Failure?

2.   How is this possible to roll back installation if custom action fails?

Thanks!
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users