[WiX-users] Fwd: bootstrapper on WinNT

2013-05-10 Thread Frank Gábor
Hello WiX users,

we generated with WiX 3.7 a bootstrapper exe, and tried it on XP, Win7 and
it works fine. But on an NT (4.0) machine we get ... is not a valid NT
application error when starting the exe. Is thre a previous version of WiX
that supports WinNT, or do we have to write an own bootstrapper?

Thanks in advance,

Franky
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Condition for Upgrading...

2013-05-10 Thread Phil Wilson
Major upgrades have a property that gets set when the older version is
found. To use Bob's example:

!- Major upgrade - 
Upgrade Id=$(var.UpgradeCode) 
UpgradeVersion Minimum=$(var.ProductVersion) OnlyDetect=yes
Property=NEWERVERSIONDETECTED / 
UpgradeVersion Minimum=1.0.0 IncludeMinimum=yes
Maximum=$(var.ProductVersion) IncludeMaximum=no
Property=OLDERVERSIONBEINGUPGRADED / 
/Upgrade 

OLDERVERSIONBEINGUPGRADED can be used as your condition. 

If you're referring to an installed product that is being uninstalled and
upgrades, use UPGRADINGPRODUCTCODE as the condition. 

Phil 

-Original Message-
From: StevenOgilvie [mailto:sogil...@msn.com] 
Sent: Thursday, May 09, 2013 11:43 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Condition for Upgrading...

Hi folks,

I am confused, I looked within the WIX userlist and Googled this but I seem
to have mixed results...

I want to run a custom action on an Upgrade only.. I currently have it as:

Custom Action=CA_CheckIfServerOnLine After=InstallInitializeNOT
Installed AND SERVER_INSTALL=0/Custom

But in some cases it is being run on a fresh install :(

I am using the MajorUpgrade element for upgrades...

Thanks,

Steve



--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Condition-for-
Upgrading-tp7585775.html
Sent from the wix-users mailing list archive at Nabble.com.


--
Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the
definitive new guide to graph databases and their applications. This
200-page book is written by three acclaimed leaders in the field. The early
access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Build error in VS 2010

2013-05-10 Thread Gary Larsen
Hi,

 

I'm new to VS 2010 and WiX so probably something is not configured
correctly.  Here's the build error:

 

Error  1  The extension
'C:\a-release\Setup\Setup\WixSystemToolsExtension' could not be loaded
because of the following reason: Could not load file or assembly
'file:///C:\a-release\Setup\Setup\WixSystemToolsExtension' or one of its
dependencies. The system cannot find the file specified.
candle.exe  0  1  Setup

 

Though it may be a path problem so added this: 'C:\Program Files (x86)\WiX
Toolset v3.7\bin;' without success.  Candle.exe is in that folder.

 

Thanks for any advice,

 

Gary 

 

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] When are elevated permissions dropped?

2013-05-10 Thread Brownfield, Cory
To illustrate a problem I'm having with a real project, I created a test script 
that runs a custom action that requires elevated privileges during uninstalls.  
If I configure it to run before InstallFinalize (deferred, no impersonation), 
the uninstall fails to complete.  The event log says A program run as part of 
the setup did not finish as expected and indicates the program being called by 
the custom action.  Changing it to run after DeleteServices works.  I think 
that this indicates a problem with permissions.  Shouldn't the elevated 
permissions remain before InstallFinalize?

Here's the script.  The custom actions and the install execute sequence are the 
interesting parts:

?xml version=1.0 encoding=UTF-8?
Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
  Product Id=*
   Name=Foo2
   Language=1033
   Version=1.0.0.0
   Manufacturer=Foo
   UpgradeCode=55369FED-96BF-4D95-99E4-E7D746A54C62
Package InstallerVersion=200
 Compressed=yes
 InstallScope=perMachine /

MajorUpgrade DowngradeErrorMessage=A newer version of [ProductName] is 
already installed. /
MediaTemplate /
Condition Message=You need to be an administrator to install this 
product.Privileged/Condition

Feature Id=ProductFeature
 Title=FooInstaller
 Level=1
  ComponentGroupRef Id=ProductComponents /
/Feature

CustomAction Id=AddEndpoint
  Execute=deferred
  Directory=INSTALLFOLDER
  ExeCommand=[SystemFolder]netsh.exe http add urlacl 
url=http://+:49260/Foo2/ user=\Everyone
  Impersonate=no
  Return=check /
CustomAction Id=DeleteEndpoint
  Execute=deferred
  Directory=INSTALLFOLDER
  ExeCommand=[SystemFolder]netsh.exe http delete urlacl 
url=http://+:49260/Foo2/;
  Impersonate=no
  Return=check /

InstallExecuteSequence
  !-- Configure http ports --
  Custom Action=AddEndpoint
  Before=InstallFinalize![CDATA[NOT Installed]]/Custom
  Custom Action=DeleteEndpoint
  Before=InstallFinalize![CDATA[Installed AND NOT 
REINSTALL]]/Custom
/InstallExecuteSequence
  /Product

  Fragment
Directory Id=TARGETDIR
   Name=SourceDir
  Directory Id=ProgramFilesFolder
Directory Id=INSTALLFOLDER
   Name=Foo2 /
  /Directory
/Directory
  /Fragment

  Fragment
ComponentGroup Id=ProductComponents
Directory=INSTALLFOLDER
  Component Id=ProductComponent
File Id=HelloFile
  Name=HelloFile.txt
  Source=hello.txt /
  /Component
/ComponentGroup
  /Fragment
/Wix
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] When are elevated permissions dropped?

2013-05-10 Thread Phil Wilson
It's more likely related to something that is no longer correct during the
uninstall. Between DeleteServices and InstallFinalize the items that are
uninstalled include registry entries, type libraries, environment variables,
files, and folders. 

Deferred and before InstallFinalize basically means that nothing of your
product is left behind, so I would look for something your script requires
that is no longer there. Permissions don't change in that area of the
uninstall.

Phil  

-Original Message-
From: Brownfield, Cory [mailto:cbrownfi...@aeci.org] 
Sent: Friday, May 10, 2013 7:37 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] When are elevated permissions dropped?

To illustrate a problem I'm having with a real project, I created a test
script that runs a custom action that requires elevated privileges during
uninstalls.  If I configure it to run before InstallFinalize (deferred, no
impersonation), the uninstall fails to complete.  The event log says A
program run as part of the setup did not finish as expected and indicates
the program being called by the custom action.  Changing it to run after
DeleteServices works.  I think that this indicates a problem with
permissions.  Shouldn't the elevated permissions remain before
InstallFinalize?

Here's the script.  The custom actions and the install execute sequence are
the interesting parts:

?xml version=1.0 encoding=UTF-8?
Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
  Product Id=*
   Name=Foo2
   Language=1033
   Version=1.0.0.0
   Manufacturer=Foo
   UpgradeCode=55369FED-96BF-4D95-99E4-E7D746A54C62
Package InstallerVersion=200
 Compressed=yes
 InstallScope=perMachine /

MajorUpgrade DowngradeErrorMessage=A newer version of [ProductName] is
already installed. /
MediaTemplate /
Condition Message=You need to be an administrator to install this
product.Privileged/Condition

Feature Id=ProductFeature
 Title=FooInstaller
 Level=1
  ComponentGroupRef Id=ProductComponents /
/Feature

CustomAction Id=AddEndpoint
  Execute=deferred
  Directory=INSTALLFOLDER
  ExeCommand=[SystemFolder]netsh.exe http add urlacl
url=http://+:49260/Foo2/ user=\Everyone
  Impersonate=no
  Return=check /
CustomAction Id=DeleteEndpoint
  Execute=deferred
  Directory=INSTALLFOLDER
  ExeCommand=[SystemFolder]netsh.exe http delete urlacl
url=http://+:49260/Foo2/;
  Impersonate=no
  Return=check /

InstallExecuteSequence
  !-- Configure http ports --
  Custom Action=AddEndpoint
  Before=InstallFinalize![CDATA[NOT Installed]]/Custom
  Custom Action=DeleteEndpoint
  Before=InstallFinalize![CDATA[Installed AND NOT
REINSTALL]]/Custom
/InstallExecuteSequence
  /Product

  Fragment
Directory Id=TARGETDIR
   Name=SourceDir
  Directory Id=ProgramFilesFolder
Directory Id=INSTALLFOLDER
   Name=Foo2 /
  /Directory
/Directory
  /Fragment

  Fragment
ComponentGroup Id=ProductComponents
Directory=INSTALLFOLDER
  Component Id=ProductComponent
File Id=HelloFile
  Name=HelloFile.txt
  Source=hello.txt /
  /Component
/ComponentGroup
  /Fragment
/Wix

--
Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the
definitive new guide to graph databases and their applications. This
200-page book is written by three acclaimed leaders in the field. The early
access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Changinf output direcoty of MSI

2013-05-10 Thread Natalie Carr
Hi,

 

Is there any way to change the output directory of an MSI?

 

I have it building to my custom folder, however its builds like so :
CustomFolder\en-US\Setup.msi

 

I would like it to build to : CustomFolder\Setup.msi

 

Is this possible?

 

Thanks

Natalie 

 

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Fwd: bootstrapper on WinNT

2013-05-10 Thread Hoover, Jacob
Ack, NT 4.0 is a bit dead these days.  Odds are it's an issue with the engine 
itself using newer API's.  If you don't need all of the new features within 
Wix, you could use an older branch.  If you need the newer features on the 
older OS, you'd have to back port all the non-compatible API's. I don't have 
any docs which would outline when NT4 was de-supported with Wix, but maybe Rob 
could point you tin the right direction.


-Original Message-
From: Frank Gábor [mailto:frank.ga...@gmail.com] 
Sent: Friday, May 10, 2013 4:05 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Fwd: bootstrapper on WinNT

Hello WiX users,

we generated with WiX 3.7 a bootstrapper exe, and tried it on XP, Win7 and it 
works fine. But on an NT (4.0) machine we get ... is not a valid NT 
application error when starting the exe. Is thre a previous version of WiX 
that supports WinNT, or do we have to write an own bootstrapper?

Thanks in advance,

Franky
--
Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the 
definitive new guide to graph databases and their applications. This 200-page 
book is written by three acclaimed leaders in the field. The early access 
version is available now. 

Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Condition for Upgrading... [P]

2013-05-10 Thread Steven Ogilvie
Classification: Public
Thanks very much Phil

I will do a:
Custom Action=CA_CheckIfServerOnLine 
After=InstallInitializeOLDERVERSIONBEINGUPGRADED OR UPGRADINGPRODUCTCODE  
AND SERVER_INSTALL=0/Custom  

Thanks,

Steve
-Original Message-
From: Phil Wilson [mailto:phil.wil...@mvps.org]
Sent: May-10-13 10:25 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Condition for Upgrading...

Major upgrades have a property that gets set when the older version is found. 
To use Bob's example:

!- Major upgrade -
Upgrade Id=$(var.UpgradeCode) 
UpgradeVersion Minimum=$(var.ProductVersion) OnlyDetect=yes
Property=NEWERVERSIONDETECTED / 
UpgradeVersion Minimum=1.0.0 IncludeMinimum=yes
Maximum=$(var.ProductVersion) IncludeMaximum=no
Property=OLDERVERSIONBEINGUPGRADED / /Upgrade 

OLDERVERSIONBEINGUPGRADED can be used as your condition. 

If you're referring to an installed product that is being uninstalled and 
upgrades, use UPGRADINGPRODUCTCODE as the condition. 

Phil 

-Original Message-
From: StevenOgilvie [mailto:sogil...@msn.com]
Sent: Thursday, May 09, 2013 11:43 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Condition for Upgrading...

Hi folks,

I am confused, I looked within the WIX userlist and Googled this but I seem to 
have mixed results...

I want to run a custom action on an Upgrade only.. I currently have it as:

Custom Action=CA_CheckIfServerOnLine After=InstallInitializeNOT Installed 
AND SERVER_INSTALL=0/Custom

But in some cases it is being run on a fresh install :(

I am using the MajorUpgrade element for upgrades...

Thanks,

Steve



--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Condition-for-
Upgrading-tp7585775.html
Sent from the wix-users mailing list archive at Nabble.com.


--
Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the 
definitive new guide to graph databases and their applications. This 200-page 
book is written by three acclaimed leaders in the field. The early access 
version is available now. 




Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the 
definitive new guide to graph databases and their applications. This 200-page 
book is written by three acclaimed leaders in the field. The early access 
version is available now. 




Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



This message has been marked as Public by Steven Ogilvie on May-10-13 12:51:02 
PM.

The above classification labels were added to the message by TITUS Message 
Classification. 
For more information visit www.titus.com.

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Condition for Upgrading... [P]

2013-05-10 Thread Steven Ogilvie
Classification: Public
Actually this turned out to work for me:

Custom Action=CA_CheckIfServerOnLine 
After=InstallInitializeWIX_UPGRADE_DETECTED AND SERVER_INSTALL=0/Custom

-Original Message-
From: Steven Ogilvie [mailto:steven.ogil...@titus.com]
Sent: May-10-13 12:51 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Condition for Upgrading... [P]

Classification: Public
Thanks very much Phil

I will do a:
Custom Action=CA_CheckIfServerOnLine 
After=InstallInitializeOLDERVERSIONBEINGUPGRADED OR UPGRADINGPRODUCTCODE  
AND SERVER_INSTALL=0/Custom  

Thanks,

Steve
-Original Message-
From: Phil Wilson [mailto:phil.wil...@mvps.org]
Sent: May-10-13 10:25 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Condition for Upgrading...

Major upgrades have a property that gets set when the older version is found. 
To use Bob's example:

!- Major upgrade -
Upgrade Id=$(var.UpgradeCode) 
UpgradeVersion Minimum=$(var.ProductVersion) OnlyDetect=yes
Property=NEWERVERSIONDETECTED / 
UpgradeVersion Minimum=1.0.0 IncludeMinimum=yes
Maximum=$(var.ProductVersion) IncludeMaximum=no
Property=OLDERVERSIONBEINGUPGRADED / /Upgrade 

OLDERVERSIONBEINGUPGRADED can be used as your condition. 

If you're referring to an installed product that is being uninstalled and 
upgrades, use UPGRADINGPRODUCTCODE as the condition. 

Phil 

-Original Message-
From: StevenOgilvie [mailto:sogil...@msn.com]
Sent: Thursday, May 09, 2013 11:43 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Condition for Upgrading...

Hi folks,

I am confused, I looked within the WIX userlist and Googled this but I seem to 
have mixed results...

I want to run a custom action on an Upgrade only.. I currently have it as:

Custom Action=CA_CheckIfServerOnLine After=InstallInitializeNOT Installed 
AND SERVER_INSTALL=0/Custom

But in some cases it is being run on a fresh install :(

I am using the MajorUpgrade element for upgrades...

Thanks,

Steve



--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Condition-for-
Upgrading-tp7585775.html
Sent from the wix-users mailing list archive at Nabble.com.


--
Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the 
definitive new guide to graph databases and their applications. This 200-page 
book is written by three acclaimed leaders in the field. The early access 
version is available now. 








Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the 
definitive new guide to graph databases and their applications. This 200-page 
book is written by three acclaimed leaders in the field. The early access 
version is available now. 








Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



This message has been marked as Public by Steven Ogilvie on May-10-13 12:51:02 
PM.

The above classification labels were added to the message by TITUS Message 
Classification. For more information visit www.titus.com.

--
Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the 
definitive new guide to graph databases and their applications. This 200-page 
book is written by three acclaimed leaders in the field. The early access 
version is available now. 




Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



This message has been marked as Public by Steven Ogilvie on May-10-13 2:38:14 
PM.

The above classification labels were added to the message by TITUS Message 
Classification. 
For more information visit www.titus.com.

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Burn Console Output

2013-05-10 Thread Nick Miller
Hi All,

I was wondering if there was a way to output text to the console (like error 
messages) when running a BA in silent mode?  If not, is there some other way I 
can alert a user to an error without loading the UI?

Thanks,
Nick
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Registering ComPlus and Assigning a User

2013-05-10 Thread tom

Based on the documentataion looks like this is the clsid of the com class





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Registering-ComPlus-and-Assigning-a-User-tp7585575p7585793.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] When are elevated permissions dropped?

2013-05-10 Thread Brownfield, Cory
The script included in my email doesn't work on Windows 7.  It's pretty simple 
(no environment variables, etc.).  It produces an MSI that can be installed but 
not uninstalled.

-Original Message-
From: Phil Wilson [mailto:phil.wil...@mvps.org] 
Sent: Friday, May 10, 2013 10:22 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] When are elevated permissions dropped?

It's more likely related to something that is no longer correct during the 
uninstall. Between DeleteServices and InstallFinalize the items that are 
uninstalled include registry entries, type libraries, environment variables, 
files, and folders. 

Deferred and before InstallFinalize basically means that nothing of your 
product is left behind, so I would look for something your script requires that 
is no longer there. Permissions don't change in that area of the uninstall.

Phil  

-Original Message-
From: Brownfield, Cory [mailto:cbrownfi...@aeci.org]
Sent: Friday, May 10, 2013 7:37 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] When are elevated permissions dropped?

To illustrate a problem I'm having with a real project, I created a test script 
that runs a custom action that requires elevated privileges during uninstalls.  
If I configure it to run before InstallFinalize (deferred, no impersonation), 
the uninstall fails to complete.  The event log says A program run as part of 
the setup did not finish as expected and indicates the program being called by 
the custom action.  Changing it to run after DeleteServices works.  I think 
that this indicates a problem with permissions.  Shouldn't the elevated 
permissions remain before InstallFinalize?

Here's the script.  The custom actions and the install execute sequence are the 
interesting parts:

?xml version=1.0 encoding=UTF-8?
Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
  Product Id=*
   Name=Foo2
   Language=1033
   Version=1.0.0.0
   Manufacturer=Foo
   UpgradeCode=55369FED-96BF-4D95-99E4-E7D746A54C62
Package InstallerVersion=200
 Compressed=yes
 InstallScope=perMachine /

MajorUpgrade DowngradeErrorMessage=A newer version of [ProductName] is 
already installed. /
MediaTemplate /
Condition Message=You need to be an administrator to install this 
product.Privileged/Condition

Feature Id=ProductFeature
 Title=FooInstaller
 Level=1
  ComponentGroupRef Id=ProductComponents /
/Feature

CustomAction Id=AddEndpoint
  Execute=deferred
  Directory=INSTALLFOLDER
  ExeCommand=[SystemFolder]netsh.exe http add urlacl 
url=http://+:49260/Foo2/ user=\Everyone
  Impersonate=no
  Return=check /
CustomAction Id=DeleteEndpoint
  Execute=deferred
  Directory=INSTALLFOLDER
  ExeCommand=[SystemFolder]netsh.exe http delete urlacl 
url=http://+:49260/Foo2/;
  Impersonate=no
  Return=check /

InstallExecuteSequence
  !-- Configure http ports --
  Custom Action=AddEndpoint
  Before=InstallFinalize![CDATA[NOT Installed]]/Custom
  Custom Action=DeleteEndpoint
  Before=InstallFinalize![CDATA[Installed AND NOT 
REINSTALL]]/Custom
/InstallExecuteSequence
  /Product

  Fragment
Directory Id=TARGETDIR
   Name=SourceDir
  Directory Id=ProgramFilesFolder
Directory Id=INSTALLFOLDER
   Name=Foo2 /
  /Directory
/Directory
  /Fragment

  Fragment
ComponentGroup Id=ProductComponents
Directory=INSTALLFOLDER
  Component Id=ProductComponent
File Id=HelloFile
  Name=HelloFile.txt
  Source=hello.txt /
  /Component
/ComponentGroup
  /Fragment
/Wix

--
Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the 
definitive new guide to graph databases and their applications. This 200-page 
book is written by three acclaimed leaders in the field. The early access 
version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the 
definitive new guide to graph databases and their applications. This 200-page 
book is written by three acclaimed leaders in the field. The early access 
version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net

Re: [WiX-users] When are elevated permissions dropped?

2013-05-10 Thread Phil Wilson
Ok, I missed that. You mean the run of netsh.exe? That's not what is usually
referred to as a script (as in vbscript etc).  Your INSTALLFOLDER won't
exist by the time you run that custom action because it's after
RemoveFolders. I don't think that should make a difference, but it's
possible that Windows does something like setting the executable's working
directory to that folder. 

It looks like you need a verbose log. Experimentally you can keep moving the
custom action down the sequence until it starts failing. Or try after
RemoveFolders to see if that's where it starts to fail. 

Phil 

-Original Message-
From: Brownfield, Cory [mailto:cbrownfi...@aeci.org] 
Sent: Friday, May 10, 2013 12:31 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] When are elevated permissions dropped?

The script included in my email doesn't work on Windows 7.  It's pretty
simple (no environment variables, etc.).  It produces an MSI that can be
installed but not uninstalled.

-Original Message-
From: Phil Wilson [mailto:phil.wil...@mvps.org]
Sent: Friday, May 10, 2013 10:22 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] When are elevated permissions dropped?

It's more likely related to something that is no longer correct during the
uninstall. Between DeleteServices and InstallFinalize the items that are
uninstalled include registry entries, type libraries, environment variables,
files, and folders. 

Deferred and before InstallFinalize basically means that nothing of your
product is left behind, so I would look for something your script requires
that is no longer there. Permissions don't change in that area of the
uninstall.

Phil  

-Original Message-
From: Brownfield, Cory [mailto:cbrownfi...@aeci.org]
Sent: Friday, May 10, 2013 7:37 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] When are elevated permissions dropped?

To illustrate a problem I'm having with a real project, I created a test
script that runs a custom action that requires elevated privileges during
uninstalls.  If I configure it to run before InstallFinalize (deferred, no
impersonation), the uninstall fails to complete.  The event log says A
program run as part of the setup did not finish as expected and indicates
the program being called by the custom action.  Changing it to run after
DeleteServices works.  I think that this indicates a problem with
permissions.  Shouldn't the elevated permissions remain before
InstallFinalize?

Here's the script.  The custom actions and the install execute sequence are
the interesting parts:

?xml version=1.0 encoding=UTF-8?
Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
  Product Id=*
   Name=Foo2
   Language=1033
   Version=1.0.0.0
   Manufacturer=Foo
   UpgradeCode=55369FED-96BF-4D95-99E4-E7D746A54C62
Package InstallerVersion=200
 Compressed=yes
 InstallScope=perMachine /

MajorUpgrade DowngradeErrorMessage=A newer version of [ProductName] is
already installed. /
MediaTemplate /
Condition Message=You need to be an administrator to install this
product.Privileged/Condition

Feature Id=ProductFeature
 Title=FooInstaller
 Level=1
  ComponentGroupRef Id=ProductComponents /
/Feature

CustomAction Id=AddEndpoint
  Execute=deferred
  Directory=INSTALLFOLDER
  ExeCommand=[SystemFolder]netsh.exe http add urlacl
url=http://+:49260/Foo2/ user=\Everyone
  Impersonate=no
  Return=check /
CustomAction Id=DeleteEndpoint
  Execute=deferred
  Directory=INSTALLFOLDER
  ExeCommand=[SystemFolder]netsh.exe http delete urlacl
url=http://+:49260/Foo2/;
  Impersonate=no
  Return=check /

InstallExecuteSequence
  !-- Configure http ports --
  Custom Action=AddEndpoint
  Before=InstallFinalize![CDATA[NOT Installed]]/Custom
  Custom Action=DeleteEndpoint
  Before=InstallFinalize![CDATA[Installed AND NOT
REINSTALL]]/Custom
/InstallExecuteSequence
  /Product

  Fragment
Directory Id=TARGETDIR
   Name=SourceDir
  Directory Id=ProgramFilesFolder
Directory Id=INSTALLFOLDER
   Name=Foo2 /
  /Directory
/Directory
  /Fragment

  Fragment
ComponentGroup Id=ProductComponents
Directory=INSTALLFOLDER
  Component Id=ProductComponent
File Id=HelloFile
  Name=HelloFile.txt
  Source=hello.txt /
  /Component
/ComponentGroup
  /Fragment
/Wix

--
Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the
definitive new guide to graph databases and their applications. This
200-page book is written by three acclaimed 

[WiX-users] Help Menu for Custom MBA

2013-05-10 Thread Nick Miller
Hi All,

Is there anything special I need to do to create a command line help menu in my 
custom managed bootstrapper application?  
Bootstrapper.Command.GetCommandLineArgs() seems to ignore /?, /h, and /help 
completely...

Thanks,
Nick

Nicholas Miller (Network Administrator)
LiveTechnology Holdings, Inc.
LiveTechnology Park: 16 Sterling Lake Rd, Tuxedo Park, NY 10987
Phone: 845.351.5100 Direct: 845.535.6205 Fax: 845.351.5102
Email: nmil...@livetechnology.commailto:nmil...@livetechnology.com
Website: www.LiveTechnology.comhttp://www.livetechnology.com/

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Help Menu for Custom MBA

2013-05-10 Thread Marco Tognacci
Yes, because with Burn the standard command line args are parsed by the engine, 
and you'll find in your BootstrapperApplication.Command.Action the launch 
action equal to Help (or Install, Uninstall, Modify, Repair...), and in 
BootstrapperApplication.Command.Display the state of UI that is requested 
(Full, Passive...).In the CommandLine you'll find only your custom command line 
args that you have parse yourself.

 From: nmil...@livetechnology.com
 To: wix-users@lists.sourceforge.net
 Date: Fri, 10 May 2013 21:16:52 +
 Subject: [WiX-users] Help Menu for Custom MBA
 
 Hi All,
 
 Is there anything special I need to do to create a command line help menu in 
 my custom managed bootstrapper application?  
 Bootstrapper.Command.GetCommandLineArgs() seems to ignore /?, /h, and /help 
 completely...
 
 Thanks,
 Nick
 
 Nicholas Miller (Network Administrator)
 LiveTechnology Holdings, Inc.
 LiveTechnology Park: 16 Sterling Lake Rd, Tuxedo Park, NY 10987
 Phone: 845.351.5100 Direct: 845.535.6205 Fax: 845.351.5102
 Email: nmil...@livetechnology.commailto:nmil...@livetechnology.com
 Website: www.LiveTechnology.comhttp://www.livetechnology.com/
 
 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and 
 their applications. This 200-page book is written by three acclaimed 
 leaders in the field. The early access version is available now. 
 Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
  
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Help Menu for Custom MBA

2013-05-10 Thread Nick Miller
Awesome, thanks!

-Original Message-
From: Marco Tognacci [mailto:mark...@live.it] 
Sent: Friday, May 10, 2013 5:31 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Help Menu for Custom MBA

Yes, because with Burn the standard command line args are parsed by the engine, 
and you'll find in your BootstrapperApplication.Command.Action the launch 
action equal to Help (or Install, Uninstall, Modify, Repair...), and in 
BootstrapperApplication.Command.Display the state of UI that is requested 
(Full, Passive...).In the CommandLine you'll find only your custom command line 
args that you have parse yourself.

 From: nmil...@livetechnology.com
 To: wix-users@lists.sourceforge.net
 Date: Fri, 10 May 2013 21:16:52 +
 Subject: [WiX-users] Help Menu for Custom MBA
 
 Hi All,
 
 Is there anything special I need to do to create a command line help menu in 
 my custom managed bootstrapper application?  
 Bootstrapper.Command.GetCommandLineArgs() seems to ignore /?, /h, and /help 
 completely...
 
 Thanks,
 Nick
 
 Nicholas Miller (Network Administrator) LiveTechnology Holdings, Inc.
 LiveTechnology Park: 16 Sterling Lake Rd, Tuxedo Park, NY 10987
 Phone: 845.351.5100 Direct: 845.535.6205 Fax: 845.351.5102
 Email: nmil...@livetechnology.commailto:nmil...@livetechnology.com
 Website: www.LiveTechnology.comhttp://www.livetechnology.com/
 
 --
  Learn Graph Databases - Download FREE O'Reilly Book Graph 
 Databases is the definitive new guide to graph databases and their 
 applications. This 200-page book is written by three acclaimed leaders 
 in the field. The early access version is available now.
 Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
  
--
Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the 
definitive new guide to graph databases and their applications. This 200-page 
book is written by three acclaimed leaders in the field. The early access 
version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] .Net 3.5 SP1 using WiX Burn

2013-05-10 Thread ashish thomas
Hi All,

I need to install .Net3.5 SP1 as a prerequiste if not met using Wix. I have 
written code using Wix Burn.  
My plan is to include  dotNetFx35setup.exe -  to be a part of the package(in 
package) and i have specified it in ExePackage:SourceFile. 
If .net 3.5 is not installed, i execute dotNetFx35setup.exe followed by 
invoking MSI.
Can you please review the below code and answer the 5 queries i have

Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; 
xmlns:util=http://schemas.microsoft.com/wix/UtilExtension;
Bundle Name=Net35SPFinalInstaller Version=1.0.0.0 Manufacturer=Microsoft 
UpgradeCode=05b8ae50-bf21-4842-85b2-2bb7f2a2deff
BootstrapperApplicationRef Id=WixStandardBootstrapperApplication.RtfLicense 
      
   
    /BootstrapperApplicationRef
Chain

      ExePackage Id=Netfx35
       Cache=no
       Compressed=yes
       PerMachine=yes
       Permanent=yes
       Vital=yes
       
       SourceFile=C:\WixProto\dotNetFx35setup.exe
      
       InstallCondition=NOT Netfx35Version OR (Netfx35Version lt; 
v3.5.30729.1)
       DetectCondition=Netfx35Version AND (Netfx35Version gt;= v3.5.30729.1)
        ExitCode Value =3010 Behavior=forceReboot /
      /ExePackage

      MsiPackage SourceFile=C:\WixProto\WixFinalInstaller.msi 
Id=MsiPackage Cache=yes Visible=yes DisplayInternalUI=yes /
/Chain
/Bundle

  Fragment
    util:RegistrySearch Root=HKLM Key=SOFTWARE\Microsoft\Net Framework 
Setup\NDP\v3.5 Value=Version Variable=Netfx35Version /
  /Fragment
  /Wix

Following are my questions
a) When should i specify payload elements.
b) When and why should i specify Bootstrapper.config file under Payload
c) Once i specify dotNetFx35setup.exe as the ExePackage::SourceFile, is it 
internally contained inside my bootstrapper.exe
d) Can i change the output type of my bootstrapper project(Visual studio 2012) 
to an msi file. I have seen that option in Visual studio properties.But it 
gives the error This installation package cannot be opened.Contact the 
application vendor to verify that it a valid Windows Installer pacakge.
e) Simlar like a MSI Project, in Bootstrapper project can we show the 
messgebox/dialog if some conditions are not satisfied and cancel the 
installation process.


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Upgrade doesn't overwrite all files

2013-05-10 Thread Candy Chiu
Hi,

I ran into an issue that one of dll's in an upgrade wasn't copied to the
destination folder.  I examined the msi with LessMSI, the files were
packaged correctly.  I reviewed the File Versioning Rules at
http://msdn.microsoft.com/en-us/library/aa368599(VS.85).aspx.  They didn't
solve my problem.  Did anyone encounter similar problem and may have some
idea of where to look next?

Thanks,
Candy
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Upgrade doesn't overwrite all files

2013-05-10 Thread Jeremiahf
Make sure the file version # is updated in file version under assembly info
within assembly info if you are using VS 2010 and above. Also, use Orca to
view the properties of an MSI installer.

J


On Fri, May 10, 2013 at 8:55 PM, Candy Chiu candy.chiu...@gmail.com wrote:

 Hi,

 I ran into an issue that one of dll's in an upgrade wasn't copied to the
 destination folder.  I examined the msi with LessMSI, the files were
 packaged correctly.  I reviewed the File Versioning Rules at
 http://msdn.microsoft.com/en-us/library/aa368599(VS.85).aspx.  They didn't
 solve my problem.  Did anyone encounter similar problem and may have some
 idea of where to look next?

 Thanks,
 Candy

 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and
 their applications. This 200-page book is written by three acclaimed
 leaders in the field. The early access version is available now.
 Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
They may forget what you said but they will never forget how you made them
feel. -- Anonymous
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Burn Console Output

2013-05-10 Thread Rob Mensching
Not sure I've ever been able to get a Windows subsystem app to connect back
to the console that launched it. It'd be cool if you figured out how to do
that.


On Fri, May 10, 2013 at 12:11 PM, Nick Miller nmil...@livetechnology.comwrote:

 Hi All,

 I was wondering if there was a way to output text to the console (like
 error messages) when running a BA in silent mode?  If not, is there some
 other way I can alert a user to an error without loading the UI?

 Thanks,
 Nick

 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and
 their applications. This 200-page book is written by three acclaimed
 leaders in the field. The early access version is available now.
 Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Changinf output direcoty of MSI

2013-05-10 Thread Rob Mensching
Yes but you're .wxl and build language needs to be marked neutral... and
you won't be able to correctly build multiple languages of your MSI. I
think I recently made these tweaks to the WiX build process when I fixed
all the WixDistribution.wxl stuff. You might look at that.


On Fri, May 10, 2013 at 8:10 AM, Natalie Carr
natalie.c...@measuresoft.comwrote:

 Hi,



 Is there any way to change the output directory of an MSI?



 I have it building to my custom folder, however its builds like so :
 CustomFolder\en-US\Setup.msi



 I would like it to build to : CustomFolder\Setup.msi



 Is this possible?



 Thanks

 Natalie




 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and
 their applications. This 200-page book is written by three acclaimed
 leaders in the field. The early access version is available now.
 Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Build error in VS 2010

2013-05-10 Thread Rob Mensching
candle.exe has a lot of dependencies too. Did you add all of them?


On Fri, May 10, 2013 at 7:35 AM, Gary Larsen gary.lar...@envisn.com wrote:

 Hi,



 I'm new to VS 2010 and WiX so probably something is not configured
 correctly.  Here's the build error:



 Error  1  The extension
 'C:\a-release\Setup\Setup\WixSystemToolsExtension' could not be loaded
 because of the following reason: Could not load file or assembly
 'file:///C:\a-release\Setup\Setup\WixSystemToolsExtension' or one of its
 dependencies. The system cannot find the file specified.
 candle.exe  0  1  Setup



 Though it may be a path problem so added this: 'C:\Program Files (x86)\WiX
 Toolset v3.7\bin;' without success.  Candle.exe is in that folder.



 Thanks for any advice,



 Gary




 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and
 their applications. This 200-page book is written by three acclaimed
 leaders in the field. The early access version is available now.
 Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to modify MSI from the custom bootstrapper

2013-05-10 Thread Rob Mensching
1. Personally, I think moving all of the UI from the MSI to the Bundle is
going to be the best option going forward. MSI UI is not advancing and if
you're in Bundle it's better to have a seamless user experience that Burn
can offer. This is obviously just my opinion.

2. I do think Burn should correctly support showing MSI internal UI from
the Bundle for those people that do not share my opinion above. smile/
It is obviously more complicated than any of us expected and still needs
more work.

So, bugs should be filed when things don't work (and I think you've done
that once or twice. Thank you.). The only real question is who is going to
fix the bugs. Since I hold opinion #1 fixing those bugs is not high on my
personal list of things to fix in the WiX toolset. That means if you're
counting on me to personally fix those bugs in my volunteer hours on the
WiX toolset, you might be waiting for a while.

But I certainly wouldn't discourage anyone else from taking the bugs and
working with the wix-devs to implement proper fixes (we can't take hacks or
partial solutions that destabilize Burn, of course).



On Thu, May 9, 2013 at 10:08 AM, Christopher West C 
christopher.c.w...@ericsson.com wrote:

 OK, thank you for the information.

 I would like to get your thoughts on the following.  For future releases
 of Wix(Wix 3.8?), do you envision Burn being updated to fully support
 DisplayInternalUI?  Or is the real intent of Burn that the UI of the MSI
 should not be used, and that the UI should be created outside of the MSI
 and displayed to the user before the chained MSI's?  And that any user
 inputs made in the previously displayed UI's that are needed during the MSI
 execution should then be passed into the MSI's as properties?

 -Original Message-
 From: Rob Mensching [mailto:r...@robmensching.com]
 Sent: Thursday, May 09, 2013 9:40 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] How to modify MSI from the custom bootstrapper

 Ahh, yeah, that makes sense. I think this is another of those cases like
 the progress bar not showing correctly for DisplayInternalUI='yes' on
 MsiPackages that isn't handled well in Burn today. As you've undoubtedly
 noted showing internal UI from Burn was not a high priority item in the
 initial release of Burn. The DisplayInternalUI was added late and covers
 only the most basic of scenarios.

 I think more work is necessary in Burn to really get DisplayInternalUI
 fully supported.


 On Thu, May 9, 2013 at 6:56 AM, Christopher West C 
 christopher.c.w...@ericsson.com wrote:

  In OnPlanPackageBegin, the value of the State is already set to Present
  when the event is invoked.  So the question is, what value do I change
  it to in order to have the MSI run and for the MSI's UI to be
  displayed?  I tried setting the State to RequestState.Repair, and
  while this did run the MSI, the MSI's UI did not display.  This made
  sense to me because if I install the MSI directly and run repair from
  ARP, the MSI's UI does not display.
 
  So the question is, what State value do I set in OnPlanPackageBegin to
  run the previously installed MSI and for the MSI's UI to display?
  Again, note that if I install the .msi directly, I am able to display
  the MSI's UI from the ARP via the change button.
 
  -Original Message-
  From: Rob Mensching [mailto:r...@robmensching.com]
  Sent: Thursday, May 09, 2013 12:07 AM
  To: General discussion for Windows Installer XML toolset.
  Subject: Re: [WiX-users] How to modify MSI from the custom
  bootstrapper
 
  If you want to force a package to run during modify, change the
  requested state in OnPlanPackageBegin(). The default will be a no-op.
 
 
  On Wed, May 8, 2013 at 5:51 PM, Christopher West C 
  christopher.c.w...@ericsson.com wrote:
 
  
   I would like to have my custom bootstrapper allow for an installed
   MSI to be modified via the MSI's UI.  If I install the .msi
   directly, I am able to do this from the ARP via the change button.
   I tried to accomplish this same behavior via my custom bootstrapper.
   In my custom bootstrapper,  I tried calling the
   Bootstrapper.Engine.Plan(LaunchAction.Modify), but the MSI was not
 ran.
The relevant section of the log file is below.
  
   [9A00:6CA8][2013-05-08T19:34:40]i200: Plan begin, 2 packages, action:
   Modify
   [9A00:6CA8][2013-05-08T19:34:40]w321: Skipping dependency
   registration on package with no dependency providers: Netfx4Full
   [9A00:6CA8][2013-05-08T19:34:40]i201: Planned package: Netfx4Full,
 state:
   Present, default requested: Present, ba requested: Present, execute:
   None,
   rollback: None, cache: No, uncache: No, dependency: None
   [9A00:6CA8][2013-05-08T19:34:40]i201: Planned package:
   CBADummyInstallerPackageId, state: Present, default requested:
   Present, ba
   requested: Present, execute: None, rollback: None, cache: No, uncache:
   No,
   dependency: Register
   [9A00:6CA8][2013-05-08T19:34:40]i299: 

Re: [WiX-users] When are elevated permissions dropped?

2013-05-10 Thread Edwin Castro
See
http://damianblog.com/2008/02/21/configuring-http-namespace-reservations-on-vista-using-wix/

All of the custom actions in that post are important. Note where they are
scheduled to execute.

--
Edwin


On Fri, May 10, 2013 at 7:36 AM, Brownfield, Cory cbrownfi...@aeci.orgwrote:

 To illustrate a problem I'm having with a real project, I created a test
 script that runs a custom action that requires elevated privileges during
 uninstalls.  If I configure it to run before InstallFinalize (deferred,
 no impersonation), the uninstall fails to complete.  The event log says A
 program run as part of the setup did not finish as expected and indicates
 the program being called by the custom action.  Changing it to run after
 DeleteServices works.  I think that this indicates a problem with
 permissions.  Shouldn't the elevated permissions remain before
 InstallFinalize?

 Here's the script.  The custom actions and the install execute sequence
 are the interesting parts:

 ?xml version=1.0 encoding=UTF-8?
 Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
   Product Id=*
Name=Foo2
Language=1033
Version=1.0.0.0
Manufacturer=Foo
UpgradeCode=55369FED-96BF-4D95-99E4-E7D746A54C62
 Package InstallerVersion=200
  Compressed=yes
  InstallScope=perMachine /

 MajorUpgrade DowngradeErrorMessage=A newer version of [ProductName]
 is already installed. /
 MediaTemplate /
 Condition Message=You need to be an administrator to install this
 product.Privileged/Condition

 Feature Id=ProductFeature
  Title=FooInstaller
  Level=1
   ComponentGroupRef Id=ProductComponents /
 /Feature

 CustomAction Id=AddEndpoint
   Execute=deferred
   Directory=INSTALLFOLDER
   ExeCommand=[SystemFolder]netsh.exe http add urlacl
 url=http://+:49260/Foo2/ user=\Everyone
   Impersonate=no
   Return=check /
 CustomAction Id=DeleteEndpoint
   Execute=deferred
   Directory=INSTALLFOLDER
   ExeCommand=[SystemFolder]netsh.exe http delete urlacl
 url=http://+:49260/Foo2/;
   Impersonate=no
   Return=check /

 InstallExecuteSequence
   !-- Configure http ports --
   Custom Action=AddEndpoint
   Before=InstallFinalize![CDATA[NOT Installed]]/Custom
   Custom Action=DeleteEndpoint
   Before=InstallFinalize![CDATA[Installed AND NOT
 REINSTALL]]/Custom
 /InstallExecuteSequence
   /Product

   Fragment
 Directory Id=TARGETDIR
Name=SourceDir
   Directory Id=ProgramFilesFolder
 Directory Id=INSTALLFOLDER
Name=Foo2 /
   /Directory
 /Directory
   /Fragment

   Fragment
 ComponentGroup Id=ProductComponents
 Directory=INSTALLFOLDER
   Component Id=ProductComponent
 File Id=HelloFile
   Name=HelloFile.txt
   Source=hello.txt /
   /Component
 /ComponentGroup
   /Fragment
 /Wix

 --
 Learn Graph Databases - Download FREE O'Reilly Book
 Graph Databases is the definitive new guide to graph databases and
 their applications. This 200-page book is written by three acclaimed
 leaders in the field. The early access version is available now.
 Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Edwin G. Castro
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users