[WiX-users] Help with WIX Installers

2010-08-11 Thread jamie benson
Hi all,

I'm looking to write a standard install template for one of our products,
but I've come into a bit of difficult when working with CA's

Essentially we want a installer to copy files to be used by another tool,
run a tool then delete the temporary files on disk. If possible this will be
in the TempFolder and won't cause the MSI to be broken within the registry.

On uninstall, we'll then call the external tool to remove any files it
created on install.

This internal tool could fail so if we could generate an error message back
that would also be great.

I've got a starting point (snippet below) which performs the basics, but if
I could get errors and install/uninstall working as desired I've be
incredibly grateful

Regards,
Jamie


?xml version=1.0 encoding=UTF-8?

Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;

Product Id=86ac8b33-f878-4bf1-ae97-84f3c8dbab40 Name=REMOVED Language=
1033 Version=1.0.0.0 Manufacturer=REMOVED UpgradeCode=
92347fc8-1e0f-4601-a96e-d01a46adebec

Package InstallerVersion=200 Compressed=yes /

Media Id=1 Cabinet=REMOVED.cab EmbedCab=yes /

Property Id=ALLUSERS1/Property

Directory Id=TARGETDIR Name=SourceDir

Directory Id=TempFolder

Directory Id=Bod Name=Bod

/Directory

/Directory

/Directory

Property Id=REMOVED Value='Administration.exe'/Property

CustomAction Id='LaunchFile' Property='REMOVED' ExeCommand=-ad quot;
[Bod]\quot; REMOVED 1.0 Return='check' /

InstallExecuteSequence

RemoveExistingProducts After=InstallInitialize/

Custom Action=LaunchFile After=InstallFinalizeNOT Installed/Custom

/InstallExecuteSequence

Icon Id=icon.ico SourceFile=favicon.ico/

Property Id=ARPPRODUCTICON Value=icon.ico /

Feature Id=ProductFeature Title=Plugin Level=1

Description=Description

ComponentGroupRef Id=ExternalAssemblies/

ComponentGroupRef Id=BodPluginBinaries/

/Feature

UIRef Id=WixUI_Mondo /

UIRef Id=WixUI_ErrorProgressText /

/Product

/Wix
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Uninstall not removing files

2010-08-11 Thread Peter Shirtcliffe
The component guid is blank. You must specify a guid. See the
documentation for more information.

-Original Message-
From: Sudhakar Pasupuleti [mailto:sud...@microsoft.com] 
Sent: 10 August 2010 22:49
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Uninstall not removing files

Hi,

I am trying to understand why uninstall is not removing files. Here is
the WIX file.

Directory Id=TARGETDIR Name=SourceDir
  Directory Id=TABLESYNC_DIR Name=dontuse LongName=TableSync
Component Id=tablesync_component Guid=
  File Id=TableSync.exe Name=dontuse
LongName=TableSync.exe DiskId=1
Source=$(var.BuildRoot)\tools\TableSync\TableSync.exe/
  File Id=TableSync.Common.dll Name=dontuse
LongName=TableSync.Common.dll DiskId=1
Source=$(var.BuildRoot)\tools\TableSync\TableSync.Common.dll/
  File Id=TableSync.Core.dll Name=dontuse
LongName=TableSync.Core.dll DiskId=1
Source=$(var.BuildRoot)\tools\TableSync\TableSync.Core.dll/
  File Id=XblConfig.dll Name=dontuse
LongName=XblConfig.dll DiskId=1
Source=$(env.EXTPATH)\xonline-ext\BuildExport\retail\xonline\XblConfig.
dll /
  File Id=CreateTableSyncJob.sql Name=dontuse
LongName=CreateTableSyncJob.sql DiskId=1
Source=$(env.INETROOT)\private\msi\TableSync\CreateTableSyncJob.sql/
/Component
  /Directory
/Directory

Thanks in advance,
Sudhakar

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
/pre
BR style=font-size:4px;
a href = http://www.sdl.com;img src=http://www.sdl.com/images/email 
logo_150dpi-01.png alt=www.sdl.com border=0//a
BR
font face=arial  size=2 a href = http://www.sdl.com; 
style=color:005740; font-weight: boldwww.sdl.com/a
BR
BR
font face=arial  size=1 color=#736F6E
bSDL PLC confidential, all rights reserved./b
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.BR
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.BR
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.
/font



--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Using the same custom Dialog with Add/Remove Program

2010-08-11 Thread marric01

Hi 

thanks for the reply.

The reason why I wanted to open up my custom dialog when doing an uninstall
from ARP is that I need to get a username/password and server name to be
able to delete a database, a SQL JOB, an SSIS Task and a SSAS Cube and those
can be located on seperate sql server.

When using the uninstall from the WIX Installer that I made, the custom
dialog is used to get the username/password and the name of server to delete
each part (SQL Job, SSIS, SSAS, ...) and the same is used when installing
the app.

I dont know what would be the best way to handle this. Ask the tech guy to
use a domain admin user (or a user with all the right permission) to install
the app and in my code, use the current logged user to perform each task
(Creating SQL Job, Creating Database, SSAS Cube and SSIS Task when
installing) and (Delete database, SSIS Task SQL Job and SSAS Cube when doing
a uninstall)

Or, keep the username/password in registry (Hmm, I think its not safe ???)

All help are welcome ! even if you have just some basic idea ;-)

Thanks again

Richard
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-the-same-custom-Dialog-with-Add-Remove-Program-tp5393429p5412062.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Custom action failed during uninstall so ARP cluttered

2010-08-11 Thread ricky21

Hi,
I am trying to invoke a custom action during uninstall. At times the custom
action is failing. So because of that i am not able to uninstall the prouct
either through ARP or through MSI.
I even used ORCA to manually edit the MSI and removed the troublesome Custom
action , but still the uninstall fails.
Then i changed the produc GUID and let the older installation remain. This
happened a no of times and now my ARP is cluttered with such failed apps.
So my question is what is the best thing to do in such a scenario ? How to
best develop a custom action which is going to be part of uninstall  so that
if the custom action fails i can still uninstall the product.

Thanks in advance
Ricky

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-action-failed-during-uninstall-so-ARP-cluttered-tp5412195p5412195.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom action failed during uninstall so ARP cluttered

2010-08-11 Thread Pally Sandher
1 - http://blogs.msdn.com/b/astebner/archive/2005/12/24/507294.aspx
2 - http://www.joyofsetup.com/2007/09/24/test-your-setups-virtually/
3 - Debug the failure  fix it so it doesn't fail?

Palbinder Sandher 
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-Original Message-
From: ricky21 [mailto:rickysundr...@gmail.com] 
Sent: 11 August 2010 14:15
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom action failed during uninstall so ARP
cluttered


Hi,
I am trying to invoke a custom action during uninstall. At times the
custom action is failing. So because of that i am not able to uninstall
the prouct either through ARP or through MSI.
I even used ORCA to manually edit the MSI and removed the troublesome
Custom action , but still the uninstall fails.
Then i changed the produc GUID and let the older installation remain.
This happened a no of times and now my ARP is cluttered with such failed
apps.
So my question is what is the best thing to do in such a scenario ? How
to best develop a custom action which is going to be part of uninstall
so that if the custom action fails i can still uninstall the product.

Thanks in advance
Ricky

--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-act
ion-failed-during-uninstall-so-ARP-cluttered-tp5412195p5412195.html
Sent from the wix-users mailing list archive at Nabble.com.


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Help with WIX Installers

2010-08-11 Thread Pally Sandher
Don't use Windows Installer, use something else like a self-extracting
archive or some non-Windows Installer installation development package.
What you're trying to achieve is pretty much contrary to the basic
concepts  function of Windows Installer.

Palbinder Sandher 
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-Original Message-
From: jamie benson [mailto:jamieben...@gmail.com] 
Sent: 11 August 2010 08:22
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Help with WIX Installers

Hi all,

I'm looking to write a standard install template for one of our
products, but I've come into a bit of difficult when working with CA's

Essentially we want a installer to copy files to be used by another
tool, run a tool then delete the temporary files on disk. If possible
this will be in the TempFolder and won't cause the MSI to be broken
within the registry.

On uninstall, we'll then call the external tool to remove any files it
created on install.

This internal tool could fail so if we could generate an error message
back that would also be great.

I've got a starting point (snippet below) which performs the basics, but
if I could get errors and install/uninstall working as desired I've be
incredibly grateful

Regards,
Jamie


?xml version=1.0 encoding=UTF-8?

Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;

Product Id=86ac8b33-f878-4bf1-ae97-84f3c8dbab40 Name=REMOVED
Language=
1033 Version=1.0.0.0 Manufacturer=REMOVED UpgradeCode=
92347fc8-1e0f-4601-a96e-d01a46adebec

Package InstallerVersion=200 Compressed=yes /

Media Id=1 Cabinet=REMOVED.cab EmbedCab=yes /

Property Id=ALLUSERS1/Property

Directory Id=TARGETDIR Name=SourceDir

Directory Id=TempFolder

Directory Id=Bod Name=Bod

/Directory

/Directory

/Directory

Property Id=REMOVED Value='Administration.exe'/Property

CustomAction Id='LaunchFile' Property='REMOVED' ExeCommand=-ad quot;
[Bod]\quot; REMOVED 1.0 Return='check' /

InstallExecuteSequence

RemoveExistingProducts After=InstallInitialize/

Custom Action=LaunchFile After=InstallFinalizeNOT
Installed/Custom

/InstallExecuteSequence

Icon Id=icon.ico SourceFile=favicon.ico/

Property Id=ARPPRODUCTICON Value=icon.ico /

Feature Id=ProductFeature Title=Plugin Level=1

Description=Description

ComponentGroupRef Id=ExternalAssemblies/

ComponentGroupRef Id=BodPluginBinaries/

/Feature

UIRef Id=WixUI_Mondo /

UIRef Id=WixUI_ErrorProgressText /

/Product

/Wix

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom Action and Billboard Action

2010-08-11 Thread Pally Sandher
http://lmgtfy.com/?q=WiX+installing+an+assembly+to+the+GAC

Palbinder Sandher 
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-Original Message-
From: Velu [mailto:velusa...@syncfusion.com] 
Sent: 11 August 2010 05:29
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom Action and Billboard Action



Hi ,

Is it possible to display the images while running the custom action
using the Billboard? . Currently, in my installer images are displayed
using the Billboard while installing the features. But while running the
CA it will not get displayed.

I have feature name ProductFeature it install the assemblies into the
machine. So, that at the time of installing the ProductFeature the
images are displayed properly.

But i have the Custom Action to install those assemblies into  the GAC.
At the time of running the Custom Action images are not properly
displayed.

Here below is my code: 

Working Code:

Control Id=MyBillboard Type=Billboard X=20 Y=104 Width=125
Height=340
 
Subscribe Event=InstallValidate
Attribute=Progress
/
Subscribe Event=InstallFiles Attribute=Progress
/ /Control

BillboardAction Id=InstallValidate
Billboard Id=BB1e Feature=ProductFeature
Control Id=Bitmap Type=Bitmap X=0 Y=0
FixedSize=yes Width=152 Height=358 Text=Progress1 /
/Billboard
/BillboardAction
BillboardAction Id=InstallFiles
Billboard Id=BB3b Feature=ProductFeature
Control Id=Bitmap Type=Bitmap X=0 Y=0
FixedSize=yes Width=152 Height=358 Text=Progress3 /
/Billboard  
/BillboardAction

  Feature Id=ProductFeature Title=AssembliesSetup Level=1
ComponentRef Id=20Assemblies /   
   /Feature


Not working Code:

CustomAction Id=INSTALL_DLL BinaryKey=assemblymanager_install
DllEntry=RunAssemblyManagerConsole_InstallVersion Return=ignore
Execute=immediate /

Control Id=MyBillboard Type=Billboard X=20 Y=104 Width=125
Height=340
 
Subscribe Event=INSTALL_DLL Attribute=Progress
/
Subscribe Event=INSTALL_DLL Attribute=Progress
/ /Control

BillboardAction Id=INSTALL_DLL
Billboard Id=BB1e Feature=ProductFeature
Control Id=Bitmap Type=Bitmap X=0 Y=0
FixedSize=yes Width=152 Height=358 Text=Progress1 /
/Billboard
/BillboardAction

BillboardAction Id=IINSTALL_DLL
Billboard Id=BB3b Feature=ProductFeature
Control Id=Bitmap Type=Bitmap X=0 Y=0
FixedSize=yes Width=152 Height=358 Text=Progress3 /
/Billboard  
/BillboardAction

  Feature Id=ProductFeature Title=AssembliesSetup Level=1
ComponentRef Id=20Assemblies /   
   /Feature


Please let me know if you have any ideas.

Thanks,
Velu


--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Act
ion-and-Billboard-Action-tp5410955p5410955.html
Sent from the wix-users mailing list archive at Nabble.com.


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom action failed during uninstall so ARP cluttered

2010-08-11 Thread ricky sundrani
Thanks Richard and Palbinder

On Wed, Aug 11, 2010 at 7:27 PM, Pally Sandher pally.sand...@iesve.comwrote:

 1 - http://blogs.msdn.com/b/astebner/archive/2005/12/24/507294.aspx
 2 - http://www.joyofsetup.com/2007/09/24/test-your-setups-virtually/
 3 - Debug the failure  fix it so it doesn't fail?

 Palbinder Sandher
 Software Deployment  IT Administrator
 T: +44 (0) 141 945 8500
 F: +44 (0) 141 945 8501

 http://www.iesve.com
 **Design, Simulate + Innovate with the Virtual Environment**
 Integrated Environmental Solutions Limited. Registered in Scotland No.
 SC151456
 Registered Office - Helix Building, West Of Scotland Science Park,
 Glasgow G20 0SP
 Email Disclaimer

 -Original Message-
 From: ricky21 [mailto:rickysundr...@gmail.com]
 Sent: 11 August 2010 14:15
  To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Custom action failed during uninstall so ARP
 cluttered


 Hi,
 I am trying to invoke a custom action during uninstall. At times the
 custom action is failing. So because of that i am not able to uninstall
 the prouct either through ARP or through MSI.
 I even used ORCA to manually edit the MSI and removed the troublesome
 Custom action , but still the uninstall fails.
 Then i changed the produc GUID and let the older installation remain.
 This happened a no of times and now my ARP is cluttered with such failed
 apps.
 So my question is what is the best thing to do in such a scenario ? How
 to best develop a custom action which is going to be part of uninstall
 so that if the custom action fails i can still uninstall the product.

 Thanks in advance
 Ricky

 --
 View this message in context:
 http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-act
 ion-failed-during-uninstall-so-ARP-cluttered-tp5412195p5412195.htmlhttp://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-action-failed-during-uninstall-so-ARP-cluttered-tp5412195p5412195.html
 Sent from the wix-users mailing list archive at Nabble.com.

 
 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Best Regards.

Ricky
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Uninstall Custom action

2010-08-11 Thread ricky21

Hi ,
I have written a C# custom action which is to be invoked during uninstall ,
but i want to invoke it before the files in INSTALLDIR are deleted. So i set
the custom action to execute before removefiles action. 
See the snippet below :

InstallExecuteSequence
  Custom Action=Set_INSTALLDIR After=FileCost
![CDATA[Installed AND NOT INSTALLDIR]]
  /Custom

  Custom Action=InvokeRunXYZRemove.SetProperty
Before=InvokeRunMAVTRemoveREMOVE=ALL/Custom
  
   Custom Action=InvokeRunXYZRemove
Before=RemoveFilesREMOVE=ALL/Custom

/InstallExecuteSequence 

The first custom action gets the value of Installation path from registry,
second and third are custom action which i require to execute before the
installation files are deleted.

The custom action is getting executed. But now the other files are not
getting uninstalled from ProgramFiles ? 
I am not getting what exactly am i missing out.
Please give pointers, suggestions

Thanks in advance
Ricky
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Uninstall-Custom-action-tp5412498p5412498.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Help with WIX Installers

2010-08-11 Thread jamie benson
Which part of the requirements exactly would this be against the basic
concepts of Windows Installer?

Sounds like a pretty fundamental flaw in Windows Installer. I'd expect this
sort of functionality to be a 'given' in any Installer Framework.

Regards,
Jamie


On 11 August 2010 15:02, Pally Sandher pally.sand...@iesve.com wrote:

 Don't use Windows Installer, use something else like a self-extracting
 archive or some non-Windows Installer installation development package.
 What you're trying to achieve is pretty much contrary to the basic
 concepts  function of Windows Installer.

 Palbinder Sandher
 Software Deployment  IT Administrator
 T: +44 (0) 141 945 8500
 F: +44 (0) 141 945 8501

 http://www.iesve.com
 **Design, Simulate + Innovate with the Virtual Environment**
 Integrated Environmental Solutions Limited. Registered in Scotland No.
 SC151456
 Registered Office - Helix Building, West Of Scotland Science Park,
 Glasgow G20 0SP
 Email Disclaimer

 -Original Message-
 From: jamie benson [mailto:jamieben...@gmail.com]
 Sent: 11 August 2010 08:22
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Help with WIX Installers

 Hi all,

 I'm looking to write a standard install template for one of our
 products, but I've come into a bit of difficult when working with CA's

 Essentially we want a installer to copy files to be used by another
 tool, run a tool then delete the temporary files on disk. If possible
 this will be in the TempFolder and won't cause the MSI to be broken
 within the registry.

 On uninstall, we'll then call the external tool to remove any files it
 created on install.

 This internal tool could fail so if we could generate an error message
 back that would also be great.

 I've got a starting point (snippet below) which performs the basics, but
 if I could get errors and install/uninstall working as desired I've be
 incredibly grateful

 Regards,
 Jamie


 ?xml version=1.0 encoding=UTF-8?

 Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;

 Product Id=86ac8b33-f878-4bf1-ae97-84f3c8dbab40 Name=REMOVED
 Language=
 1033 Version=1.0.0.0 Manufacturer=REMOVED UpgradeCode=
 92347fc8-1e0f-4601-a96e-d01a46adebec

 Package InstallerVersion=200 Compressed=yes /

 Media Id=1 Cabinet=REMOVED.cab EmbedCab=yes /

 Property Id=ALLUSERS1/Property

 Directory Id=TARGETDIR Name=SourceDir

 Directory Id=TempFolder

 Directory Id=Bod Name=Bod

 /Directory

 /Directory

 /Directory

 Property Id=REMOVED Value='Administration.exe'/Property

 CustomAction Id='LaunchFile' Property='REMOVED' ExeCommand=-ad quot;
 [Bod]\quot; REMOVED 1.0 Return='check' /

 InstallExecuteSequence

 RemoveExistingProducts After=InstallInitialize/

 Custom Action=LaunchFile After=InstallFinalizeNOT
 Installed/Custom

 /InstallExecuteSequence

 Icon Id=icon.ico SourceFile=favicon.ico/

 Property Id=ARPPRODUCTICON Value=icon.ico /

 Feature Id=ProductFeature Title=Plugin Level=1

 Description=Description

 ComponentGroupRef Id=ExternalAssemblies/

 ComponentGroupRef Id=BodPluginBinaries/

 /Feature

 UIRef Id=WixUI_Mondo /

 UIRef Id=WixUI_ErrorProgressText /

 /Product

 /Wix
 
 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Environment variables into a WIX property

2010-08-11 Thread Lobo, Lionel
Hi,

 

Is there a way to get an environment variable into a WIX property?

 

I'm trying to get the USERPROFILE with:

 

Property Id=UserFolder  Value=$(env.USERPROFILE)\MyApp\MyFolder/

 

But this only picks up the USERPROFILE of the build machine, where the
installer is built.

 

I want it to use the USERPROFILE of the machine where the app is being
installed. 

 

Would I need to write an extension to do this?

 

Any suggestions would be appreciated.

 

Thanks,

Lionel

 

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Help with WIX Installers

2010-08-11 Thread Pally Sandher
http://msdn.microsoft.com/en-us/library/aa367449.aspx 

Knock yourself out.

Sounds like a pretty fundamental flaw in your requirements actually.

Palbinder Sandher 
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-Original Message-
From: jamie benson [mailto:jamieben...@gmail.com] 
Sent: 11 August 2010 16:21
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Help with WIX Installers

Which part of the requirements exactly would this be against the basic
concepts of Windows Installer?

Sounds like a pretty fundamental flaw in Windows Installer. I'd expect
this sort of functionality to be a 'given' in any Installer Framework.

Regards,
Jamie


On 11 August 2010 15:02, Pally Sandher pally.sand...@iesve.com wrote:

 Don't use Windows Installer, use something else like a self-extracting

 archive or some non-Windows Installer installation development
package.
 What you're trying to achieve is pretty much contrary to the basic 
 concepts  function of Windows Installer.

 Palbinder Sandher
 Software Deployment  IT Administrator
 T: +44 (0) 141 945 8500
 F: +44 (0) 141 945 8501

 http://www.iesve.com
 **Design, Simulate + Innovate with the Virtual Environment** 
 Integrated Environmental Solutions Limited. Registered in Scotland No.
 SC151456
 Registered Office - Helix Building, West Of Scotland Science Park, 
 Glasgow G20 0SP Email Disclaimer

 -Original Message-
 From: jamie benson [mailto:jamieben...@gmail.com]
 Sent: 11 August 2010 08:22
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Help with WIX Installers

 Hi all,

 I'm looking to write a standard install template for one of our 
 products, but I've come into a bit of difficult when working with CA's

 Essentially we want a installer to copy files to be used by another 
 tool, run a tool then delete the temporary files on disk. If possible 
 this will be in the TempFolder and won't cause the MSI to be broken 
 within the registry.

 On uninstall, we'll then call the external tool to remove any files it

 created on install.

 This internal tool could fail so if we could generate an error message

 back that would also be great.

 I've got a starting point (snippet below) which performs the basics, 
 but if I could get errors and install/uninstall working as desired 
 I've be incredibly grateful

 Regards,
 Jamie


 ?xml version=1.0 encoding=UTF-8?

 Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;

 Product Id=86ac8b33-f878-4bf1-ae97-84f3c8dbab40 Name=REMOVED
 Language=
 1033 Version=1.0.0.0 Manufacturer=REMOVED UpgradeCode=
 92347fc8-1e0f-4601-a96e-d01a46adebec

 Package InstallerVersion=200 Compressed=yes /

 Media Id=1 Cabinet=REMOVED.cab EmbedCab=yes /

 Property Id=ALLUSERS1/Property

 Directory Id=TARGETDIR Name=SourceDir

 Directory Id=TempFolder

 Directory Id=Bod Name=Bod

 /Directory

 /Directory

 /Directory

 Property Id=REMOVED Value='Administration.exe'/Property

 CustomAction Id='LaunchFile' Property='REMOVED' ExeCommand=-ad 
 quot; [Bod]\quot; REMOVED 1.0 Return='check' /

 InstallExecuteSequence

 RemoveExistingProducts After=InstallInitialize/

 Custom Action=LaunchFile After=InstallFinalizeNOT 
 Installed/Custom

 /InstallExecuteSequence

 Icon Id=icon.ico SourceFile=favicon.ico/

 Property Id=ARPPRODUCTICON Value=icon.ico /

 Feature Id=ProductFeature Title=Plugin Level=1

 Description=Description

 ComponentGroupRef Id=ExternalAssemblies/

 ComponentGroupRef Id=BodPluginBinaries/

 /Feature

 UIRef Id=WixUI_Mondo /

 UIRef Id=WixUI_ErrorProgressText /

 /Product

 /Wix
 --
 --
 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge 
 http://p.sf.net/sfu/RIM-dev2dev 
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




 --
 
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge 
 http://p.sf.net/sfu/RIM-dev2dev 
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net

Re: [WiX-users] CustomAction doesn't execute

2010-08-11 Thread Christian Tusch
Yes, I'm using WixUI_InstallDir.

On 7 August 2010 16:55, Bob Arnson b...@joyofsetup.com wrote:
 On 8/5/2010 5:50 AM, Christian Tusch wrote:
 could anybody tell me why this won't show me a message box?


 Do you have a full UI in your package? Silent installations don't show UI.

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


 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Environment variables into a WIX property

2010-08-11 Thread Blair
SetProperty Id=UserFolder Value=[%USERPROFILE]\MyApp\MyFolder
Sequence=ui Before=AppSearch/

Change the Sequence and Before values as appropriate for your needs.

To use one property's value in another you need to use an action (since
entries in the property table aren't parsed). This will create that action.

-Original Message-
From: Lobo, Lionel [mailto:lionel.l...@daon.com] 
Sent: Wednesday, August 11, 2010 8:55 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Environment variables into a WIX property

I had tried that, the installer fails with the message:

The specified path [%USERPROFILE] is unavailable.

I should add that this property is being used to initialize a custom
folder selector screen with DirectoryCombo/DirectoryList/PathEdit
controls.

This would allow the user to have the default of creating a custom
folder in the USERPROFILE, or to select a different one.

The selected folder, as reflected in the property, is then created by
the installer.

Thanks,
Lionel


-Original Message-
From: Pally Sandher [mailto:pally.sand...@iesve.com] 
Sent: 11 August 2010 16:36
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Environment variables into a WIX property

Simply use [%Environment_Variable] as a Property. See -
http://msdn.microsoft.com/en-us/library/aa368609.aspx

Palbinder Sandher 
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-Original Message-
From: Lobo, Lionel [mailto:lionel.l...@daon.com] 
Sent: 11 August 2010 16:29
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Environment variables into a WIX property

Hi,

 

Is there a way to get an environment variable into a WIX property?

 

I'm trying to get the USERPROFILE with:

 

Property Id=UserFolder  Value=$(env.USERPROFILE)\MyApp\MyFolder/

 

But this only picks up the USERPROFILE of the build machine, where the
installer is built.

 

I want it to use the USERPROFILE of the machine where the app is being
installed. 

 

Would I need to write an extension to do this?

 

Any suggestions would be appreciated.

 

Thanks,

Lionel

 


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom action failed during uninstall so ARP cluttered

2010-08-11 Thread Blair
Set Check=ignore ?

-Original Message-
From: ricky21 [mailto:rickysundr...@gmail.com] 
Sent: Wednesday, August 11, 2010 6:15 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom action failed during uninstall so ARP cluttered


Hi,
I am trying to invoke a custom action during uninstall. At times the custom
action is failing. So because of that i am not able to uninstall the prouct
either through ARP or through MSI.
I even used ORCA to manually edit the MSI and removed the troublesome Custom
action , but still the uninstall fails.
Then i changed the produc GUID and let the older installation remain. This
happened a no of times and now my ARP is cluttered with such failed apps.
So my question is what is the best thing to do in such a scenario ? How to
best develop a custom action which is going to be part of uninstall  so that
if the custom action fails i can still uninstall the product.

Thanks in advance
Ricky

-- 
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-action-
failed-during-uninstall-so-ARP-cluttered-tp5412195p5412195.html
Sent from the wix-users mailing list archive at Nabble.com.


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Environment variables into a WIX property

2010-08-11 Thread Pally Sandher
[%Environment_Variable] is only valid in fields of the Formatted type as
the link I pasted shows.

Make sure you're using it in a field which is of Formatted type. It
sounds like you're not in which case you can't use that code as any
Property wouldn't expand to the actual text contained within the
Property. Test it with something like

Property Id=MYTESTPROPERTY Value=C:\TEMP /

 use [MYTESTPROPERTY] instead of [%USERPROFILE]. If I'm correct  the
field isn't Formatted that will fail with the same error as before. The
only field in the Control table which is of Formatted type is the Text
field - http://msdn.microsoft.com/library/aa368044.aspx Pop your built
MSI open using Orca/InstEd  double check your code is in that field. If
it's not then that's where your problem lies.

Palbinder Sandher 
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-Original Message-
From: Lobo, Lionel [mailto:lionel.l...@daon.com] 
Sent: 11 August 2010 16:55
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Environment variables into a WIX property

I had tried that, the installer fails with the message:

The specified path [%USERPROFILE] is unavailable.

I should add that this property is being used to initialize a custom
folder selector screen with DirectoryCombo/DirectoryList/PathEdit
controls.

This would allow the user to have the default of creating a custom
folder in the USERPROFILE, or to select a different one.

The selected folder, as reflected in the property, is then created by
the installer.

Thanks,
Lionel


-Original Message-
From: Pally Sandher [mailto:pally.sand...@iesve.com]
Sent: 11 August 2010 16:36
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Environment variables into a WIX property

Simply use [%Environment_Variable] as a Property. See -
http://msdn.microsoft.com/en-us/library/aa368609.aspx

Palbinder Sandher
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501 

http://www.iesve.com
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP Email Disclaimer

-Original Message-
From: Lobo, Lionel [mailto:lionel.l...@daon.com]
Sent: 11 August 2010 16:29
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Environment variables into a WIX property

Hi,

 

Is there a way to get an environment variable into a WIX property?

 

I'm trying to get the USERPROFILE with:

 

Property Id=UserFolder  Value=$(env.USERPROFILE)\MyApp\MyFolder/

 

But this only picks up the USERPROFILE of the build machine, where the
installer is built.

 

I want it to use the USERPROFILE of the machine where the app is being
installed. 

 

Would I need to write an extension to do this?

 

Any suggestions would be appreciated.

 

Thanks,

Lionel

 


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] InternetShortcut and public properties

2010-08-11 Thread Chad Petersen
It creates the Internet Shortcut on the desktop and it has the IE icon, but the 
target is apparently  since when I double-click on it I get the message.

Problem with Shortcut
The target  of this Internet Shortcut is not valid. Go to the Internet 
Shortcut property sheet and make sure the target is correct.
OK

If I right click the icon on the desktop and choose Properties there is no Web 
Document tab like when I create an icon manually to the same URL. 

The rest of the log does seem to confirm a blank target.

MSI (s) (AC:2C) [07:13:28:203]: Executing op: 
ActionStart(Name=WixCreateInternetShortcuts,,)
Action 7:13:28: WixCreateInternetShortcuts. 
MSI (s) (AC:2C) [07:13:28:218]: Executing op: 
CustomActionSchedule(Action=WixCreateInternetShortcuts,ActionType=3073,Source=BinaryData,Target=WixCreateInternetShortcuts,CustomActionData=C:\Documents
 and Settings\All Users\Desktop\Interlinq E3.url€€1€C:\Documents and 
Settings\All Users\Desktop\Interlinq E3 Documentation.url€€1€C:\Documents and 
Settings\All Users\Start Menu\Programs\Harland Financial Solutions\Interlinq 
E3\Interlinq E3.url€€1€C:\Documents and Settings\All Users\Start 
Menu\Programs\Harland Financial Solutions\Interlinq E3\Interlinq E3 
Documentation.url€€1)
MSI (s) (AC:68) [07:13:28:218]: Invoking remote custom action. DLL: 
C:\WINDOWS\Installer\MSI40.tmp, Entrypoint: WixCreateInternetShortcuts
WixCreateInternetShortcuts:  Creating IUniformResourceLocatorW shortcut 
'C:\Documents and Settings\All Users\Desktop\Interlinq E3.url' target ''
WixCreateInternetShortcuts:  Creating IUniformResourceLocatorW shortcut 
'C:\Documents and Settings\All Users\Desktop\Interlinq E3 Documentation.url' 
target ''
WixCreateInternetShortcuts:  Creating IUniformResourceLocatorW shortcut 
'C:\Documents and Settings\All Users\Start Menu\Programs\Harland Financial 
Solutions\Interlinq E3\Interlinq E3.url' target ''
WixCreateInternetShortcuts:  Creating IUniformResourceLocatorW shortcut 
'C:\Documents and Settings\All Users\Start Menu\Programs\Harland Financial 
Solutions\Interlinq E3\Interlinq E3 Documentation.url' target ''


I'll try hard-coding the Property just to make sure that works OK.

If I go back to my old way of doing these icons I run into ICE error 38 and 43 
like Vijai Kalyanapasupathy [vkal...@microsoft.com] posted yesterday around 
4:36 PM. Just trying to avoid that.


-Original Message-
From: Bob Arnson [mailto:b...@joyofsetup.com] 
Sent: Tuesday, August 10, 2010 8:18 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] InternetShortcut and public properties

On 8/10/2010 3:54 PM, Chad Petersen wrote:
 Now that I'm past all my ICE errors I'm on to trying some new things.
 Never was happy with the old Desktop shortcuts, so I want to use the new
 InternetShortcut element. Here's what I'm trying to do.

 util:InternetShortcut Id=DesktopShortcut Directory=DesktopFolder
 Name=Product Type=url Target=[TARGET1] /


You never say what happens...? Check the rest of the log for what 
happens during the execute sequence in WixCreateInternetShortcuts.

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


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Environment variables into a WIX property

2010-08-11 Thread Lobo, Lionel
Many thanks, this worked perfectly! 

Regards,
Lionel


-Original Message-
From: Blair [mailto:os...@live.com] 
Sent: 11 August 2010 17:14
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Environment variables into a WIX property

SetProperty Id=UserFolder Value=[%USERPROFILE]\MyApp\MyFolder
Sequence=ui Before=AppSearch/

Change the Sequence and Before values as appropriate for your needs.

To use one property's value in another you need to use an action (since
entries in the property table aren't parsed). This will create that
action.

-Original Message-
From: Lobo, Lionel [mailto:lionel.l...@daon.com] 
Sent: Wednesday, August 11, 2010 8:55 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Environment variables into a WIX property

I had tried that, the installer fails with the message:

The specified path [%USERPROFILE] is unavailable.

I should add that this property is being used to initialize a custom
folder selector screen with DirectoryCombo/DirectoryList/PathEdit
controls.

This would allow the user to have the default of creating a custom
folder in the USERPROFILE, or to select a different one.

The selected folder, as reflected in the property, is then created by
the installer.

Thanks,
Lionel


-Original Message-
From: Pally Sandher [mailto:pally.sand...@iesve.com] 
Sent: 11 August 2010 16:36
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Environment variables into a WIX property

Simply use [%Environment_Variable] as a Property. See -
http://msdn.microsoft.com/en-us/library/aa368609.aspx

Palbinder Sandher 
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-Original Message-
From: Lobo, Lionel [mailto:lionel.l...@daon.com] 
Sent: 11 August 2010 16:29
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Environment variables into a WIX property

Hi,

 

Is there a way to get an environment variable into a WIX property?

 

I'm trying to get the USERPROFILE with:

 

Property Id=UserFolder  Value=$(env.USERPROFILE)\MyApp\MyFolder/

 

But this only picks up the USERPROFILE of the build machine, where the
installer is built.

 

I want it to use the USERPROFILE of the machine where the app is being
installed. 

 

Would I need to write an extension to do this?

 

Any suggestions would be appreciated.

 

Thanks,

Lionel

 


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Environment variables into a WIX property

2010-08-11 Thread Lobo, Lionel
You're right, [%USERPROFILE] was being used in the standard Property
which accepts non-formatted values.

I have that working with SetProperty which fits the bill perfectly.

Thanks for the guidance, I appreciate the help.

Lionel


-Original Message-
From: Pally Sandher [mailto:pally.sand...@iesve.com] 
Sent: 11 August 2010 17:23
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Environment variables into a WIX property

[%Environment_Variable] is only valid in fields of the Formatted type as
the link I pasted shows.

Make sure you're using it in a field which is of Formatted type. It
sounds like you're not in which case you can't use that code as any
Property wouldn't expand to the actual text contained within the
Property. Test it with something like

Property Id=MYTESTPROPERTY Value=C:\TEMP /

 use [MYTESTPROPERTY] instead of [%USERPROFILE]. If I'm correct  the
field isn't Formatted that will fail with the same error as before. The
only field in the Control table which is of Formatted type is the Text
field - http://msdn.microsoft.com/library/aa368044.aspx Pop your built
MSI open using Orca/InstEd  double check your code is in that field. If
it's not then that's where your problem lies.

Palbinder Sandher 
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-Original Message-
From: Lobo, Lionel [mailto:lionel.l...@daon.com] 
Sent: 11 August 2010 16:55
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Environment variables into a WIX property

I had tried that, the installer fails with the message:

The specified path [%USERPROFILE] is unavailable.

I should add that this property is being used to initialize a custom
folder selector screen with DirectoryCombo/DirectoryList/PathEdit
controls.

This would allow the user to have the default of creating a custom
folder in the USERPROFILE, or to select a different one.

The selected folder, as reflected in the property, is then created by
the installer.

Thanks,
Lionel


-Original Message-
From: Pally Sandher [mailto:pally.sand...@iesve.com]
Sent: 11 August 2010 16:36
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Environment variables into a WIX property

Simply use [%Environment_Variable] as a Property. See -
http://msdn.microsoft.com/en-us/library/aa368609.aspx

Palbinder Sandher
Software Deployment  IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501 

http://www.iesve.com
**Design, Simulate + Innovate with the Virtual Environment**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP Email Disclaimer

-Original Message-
From: Lobo, Lionel [mailto:lionel.l...@daon.com]
Sent: 11 August 2010 16:29
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Environment variables into a WIX property

Hi,

 

Is there a way to get an environment variable into a WIX property?

 

I'm trying to get the USERPROFILE with:

 

Property Id=UserFolder  Value=$(env.USERPROFILE)\MyApp\MyFolder/

 

But this only picks up the USERPROFILE of the build machine, where the
installer is built.

 

I want it to use the USERPROFILE of the machine where the app is being
installed. 

 

Would I need to write an extension to do this?

 

Any suggestions would be appreciated.

 

Thanks,

Lionel

 


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




--
This SF.net email is 

Re: [WiX-users] Uninstall not removing files

2010-08-11 Thread Sudhakar Pasupuleti
I will give it a shot.
Thanks,
Sudhakar

-Original Message-
From: Michael Schlitt [mailto:mschl...@microsoft.com] 
Sent: Wednesday, August 11, 2010 10:21 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Uninstall not removing files

The Component ID needs to have a GUID I believe.

-Original Message-
From: Sudhakar Pasupuleti [mailto:sud...@microsoft.com] 
Sent: Tuesday, August 10, 2010 2:49 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Uninstall not removing files

Hi,

I am trying to understand why uninstall is not removing files. Here is the WIX 
file.

Directory Id=TARGETDIR Name=SourceDir
  Directory Id=TABLESYNC_DIR Name=dontuse LongName=TableSync
Component Id=tablesync_component Guid=
  File Id=TableSync.exe Name=dontuse LongName=TableSync.exe 
DiskId=1 Source=$(var.BuildRoot)\tools\TableSync\TableSync.exe/
  File Id=TableSync.Common.dll Name=dontuse 
LongName=TableSync.Common.dll DiskId=1 
Source=$(var.BuildRoot)\tools\TableSync\TableSync.Common.dll/
  File Id=TableSync.Core.dll Name=dontuse 
LongName=TableSync.Core.dll DiskId=1 
Source=$(var.BuildRoot)\tools\TableSync\TableSync.Core.dll/
  File Id=XblConfig.dll Name=dontuse LongName=XblConfig.dll 
DiskId=1 
Source=$(env.EXTPATH)\xonline-ext\BuildExport\retail\xonline\XblConfig.dll /
  File Id=CreateTableSyncJob.sql Name=dontuse 
LongName=CreateTableSyncJob.sql DiskId=1 
Source=$(env.INETROOT)\private\msi\TableSync\CreateTableSyncJob.sql/
/Component
  /Directory
/Directory

Thanks in advance,
Sudhakar
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Uninstall Custom action

2010-08-11 Thread ricky sundrani
Thanks for the reply.
I had checked the log and the RemoveFiles was returning 0. So initially i
thought that was the problem.
But then i tried out the installer on another fresh machine, it worked fine
including Repair,Uninstall
There may have been some issues with my machine since my ARP is all
cluttered with faulty program entries.(those in which the uninstall CA had
failed)
Anwyays. Thanks once again.


On Wed, Aug 11, 2010 at 11:36 PM, Wilson, Phil phil.wil...@invensys.comwrote:

 At first glance there's no reason why a successful custom action would have
 the side effect of having files left behind in the Program Files folder. I
 would look at a verbose log to see what's going on. An obvious issue might
 be that the custom action is actually failing and the uninstall rolling
 back, but that would leave everything behind including Add/Remove Program
 entries. And does the uninstall complete ok and remove those files if you
 set the uninstall custom action condition to 0 so it doesn't run?

 Phil Wilson

 -Original Message-
 From: ricky21 [mailto:rickysundr...@gmail.com]
 Sent: Wednesday, August 11, 2010 7:34 AM
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Uninstall Custom action


  Hi ,
 I have written a C# custom action which is to be invoked during uninstall ,
 but i want to invoke it before the files in INSTALLDIR are deleted. So i
 set
 the custom action to execute before removefiles action.
 See the snippet below :

 InstallExecuteSequence
  Custom Action=Set_INSTALLDIR After=FileCost
![CDATA[Installed AND NOT INSTALLDIR]]
  /Custom

  Custom Action=InvokeRunXYZRemove.SetProperty
 Before=InvokeRunMAVTRemoveREMOVE=ALL/Custom

   Custom Action=InvokeRunXYZRemove
 Before=RemoveFilesREMOVE=ALL/Custom

 /InstallExecuteSequence

 The first custom action gets the value of Installation path from registry,
 second and third are custom action which i require to execute before the
 installation files are deleted.

 The custom action is getting executed. But now the other files are not
 getting uninstalled from ProgramFiles ?
 I am not getting what exactly am i missing out.
 Please give pointers, suggestions

 Thanks in advance
 Ricky
 --
 View this message in context:
 http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Uninstall-Custom-action-tp5412498p5412498.html
 Sent from the wix-users mailing list archive at Nabble.com.


 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 *** Confidentiality Notice: This e-mail, including any associated or
 attached files, is intended solely for the individual or entity to which it
 is addressed. This e-mail is confidential and may well also be legally
 privileged. If you have received it in error, you are on notice of its
 status. Please notify the sender immediately by reply e-mail and then delete
 this message from your system. Please do not copy it or use it for any
 purposes, or disclose its contents to any other person. This email comes
 from a division of the Invensys Group, owned by Invensys plc, which is a
 company registered in England and Wales with its registered office at
 Portland House, Bressenden Place, London, SW1E 5BF (Registered number
 166023). For a list of European legal entities within the Invensys Group,
 please go to
 http://www.invensys.com/legal/default.asp?top_nav_id=77nav_id=80prev_id=77.
 You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail
 inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may
 be subject to the terms of any agreements between Invensys (and/or its
 subsidiaries and affiliates) and the recipient (and/or its subsidiaries and
 affiliates).




 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
Best Regards.

Ricky
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Custom Browse Dialog

2010-08-11 Thread gapearce

Hi,
I need to prompt the user for the location of a file before installing my
software.  

I'm disappointed that I couldn't find an example of this ANYWHERE.  There
are lots of discussions about using custom browse dialog, but no examples. 
If I figure this out, I will publish an example.

I give the user the file to put on their system (anywhere), and at the start
of setup, I need to parse that file using a CA in a DLL.  It is a license
file, and I'll use some info in there to determine some features to install.

So after the LicenseAccept dialog, I have a new dialog (PreInstallDlg.wxs)
which has a browse button on it to fire up my copy of the browseDlg.wxs
code (MTBrowselDlg.wxs).  The browse control looks like this:

Control Id=LicenseFile Type=PushButton X=20 Y=120 Width=56
Height=17 Text=Browse /

In my copy of the WixUI_InstallDir code, I have the following code:

Publish Dialog=MTPreInstallDlg Control=LicenseFile
Property=_BrowseProperty Value=[LICENSE_FILE] Order=11/Publish

Publish Dialog=MTPreInstallDlg Control=LicenseFile Event=SpawnDialog
Value=MTBrowseDlg Order=21/Publish

My MTBrowseDlg looks like this:

  Fragment
UI
  Property Id=_BrowseProperty Value=LICENSE_FILE /
  Dialog Id=MTBrowseDlg Width=370 Height=270
Title=!(loc.BrowseDlg_Title)
Control Id=PathEdit Type=PathEdit X=25 Y=202 Width=320
Height=18 Property=_BrowseProperty Indirect=yes /

*** blah blah - just like the original dialog ***

  /Dialog
/UI
  /Fragment

This compiles ok, but when I run it, I get this error:

Action 14:16:01: MTPreInstallDlg. Dialog created

MSI (c) (A4:2C) [14:16:04:898]: PROPERTY CHANGE: Deleting _BrowseProperty
property. Its current value is 'LICENSE_FILE'.

DEBUG: Error 2819:  Control PathEdit on dialog MTBrowseDlg needs a property
linked to it

The installer has encountered an unexpected error installing this package.
This may indicate a problem with this package. The error code is 2819. The
arguments are: MTBrowseDlg, PathEdit, 

MSI (c) (A4:2C) [14:16:06:704]: Product: MTX -- The installer has
encountered an unexpected error installing this package. This may indicate a
problem with this package. The error code is 2819. The arguments are:
MTBrowseDlg, PathEdit, 

How can I fix this error?

Thanks

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Browse-Dialog-tp5413342p5413342.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] How to add FeatureTree

2010-08-11 Thread little.forest
We'll need to add a new component. And we'd like the end user to choose to 
install it or not. 

I found the FeatureTree maybe a fit for us. So I add these code:
UIRef Id=WixUI_FeatureTree/


Property Id=INSTALL_FEATURE1 Value=1 /


DirectoryRef Id='INSTALLLOCATION'
Component Id='COMP_FTR1' Guid='*'
File Source='feature1.dll' KeyPath=yes Checksum=yes /
/Component
/DirectoryRef

Feature Id='Feature_1' AllowAdvertise='no' Description='This is for feature 1' 
Title='New feature 1' Level='2'
Condition Level='1'INSTALL_FEATURE1/Condition
ComponentRef Id='COMP_FTR1' /
/Feature


But I'm getting this error when compiling:
error LGHT0130 : The primary key 
'LicenseAgreementDlg/Back/NewDialog/WelcomeDlg/1' is duplicated in table 
'ControlEvent'.  Please remove one of the entries or rename a part of the 
primary key to avoid the collision.

How can I fix it?

Thanks all.


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] External UI Handling FilesInUse

2010-08-11 Thread Andy Glass
This isn't technically a WiX question, but I figured there was no harm in 
asking:

I've written a bootstrapper for our various products, one that uses 
MsiSetExternalUI to hook into the MSIs to retrieve error messages, progress, 
and the like (I've based off the example handler found here: 
http://msdn.microsoft.com/en-us/library/aa368786%28VS.85%29.aspx).  I would 
also like to be able to deal with FilesInUse messages, but I'm unsure how to 
actually retrieve the information on which applications need to be closed (they 
don't show up in the message string that gets sent).  I've discovered that 
appending [1], [2], etc. the 1607 message (files in use), the message sent to 
the UI handler then receives the application names, but when uninstalling 
directly from Add/Remove Programs, the internal UI doesn't seem to do the 
string substitution and I end up with The following applications should be 
closed before continuing the install: [1] [2]... being displayed to the user.

So basically the short version of my question: Does anyone know a way to 
retrieve the list of applications for a 1607 (files in use) message in an 
external UI without screwing up what is displayed by the internal UI when run 
directly from the .msi?

I don't suppose anyone has run into this issue before and found an acceptable 
solution?

-Andy
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to add FeatureTree

2010-08-11 Thread Chris Lord
Did you already have a UIRef in your wxs before you added the 
FeatureTree UIRef?


On 08/11/2010 03:00 PM, little.forest wrote:
 We'll need to add a new component. And we'd like the end user to choose to
 install it or not.

 I found the FeatureTree maybe a fit for us. So I add these code:
 UIRef Id=WixUI_FeatureTree/


 Property Id=INSTALL_FEATURE1 Value=1 /


 DirectoryRef Id='INSTALLLOCATION'
 Component Id='COMP_FTR1' Guid='*'
 File Source='feature1.dll' KeyPath=yes Checksum=yes /
 /Component
 /DirectoryRef

 Feature Id='Feature_1' AllowAdvertise='no' Description='This is for feature 
 1'
 Title='New feature 1' Level='2'
 Condition Level='1'INSTALL_FEATURE1/Condition
 ComponentRef Id='COMP_FTR1' /
 /Feature


 But I'm getting this error when compiling:
 error LGHT0130 : The primary key
 'LicenseAgreementDlg/Back/NewDialog/WelcomeDlg/1' is duplicated in table
 'ControlEvent'.  Please remove one of the entries or rename a part of the
 primary key to avoid the collision.

 How can I fix it?

 Thanks all.


 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to add FeatureTree

2010-08-11 Thread little.forest
Hi Chris,


Thanks. Yes, I have UIRef before I added the new FeatureTree:
UIRef Id=MyWixUI_InstallDir/
UIRef Id=WixUI_ErrorProgressText/ 






From: Chris Lord chris.l...@atterotech.com
To: General discussion for Windows Installer XML toolset. 
wix-users@lists.sourceforge.net
Sent: Wed, August 11, 2010 12:22:40 PM
Subject: Re: [WiX-users] How to add FeatureTree

Did you already have a UIRef in your wxs before you added the 
FeatureTree UIRef?


On 08/11/2010 03:00 PM, little.forest wrote:
 We'll need to add a new component. And we'd like the end user to choose to
 install it or not.

 I found the FeatureTree maybe a fit for us. So I add these code:
 UIRef Id=WixUI_FeatureTree/


 Property Id=INSTALL_FEATURE1 Value=1 /


 DirectoryRef Id='INSTALLLOCATION'
 Component Id='COMP_FTR1' Guid='*'
 File Source='feature1.dll' KeyPath=yes Checksum=yes /
 /Component
 /DirectoryRef

 Feature Id='Feature_1' AllowAdvertise='no' Description='This is for feature 
1'
 Title='New feature 1' Level='2'
 Condition Level='1'INSTALL_FEATURE1/Condition
 ComponentRef Id='COMP_FTR1' /
 /Feature


 But I'm getting this error when compiling:
 error LGHT0130 : The primary key
 'LicenseAgreementDlg/Back/NewDialog/WelcomeDlg/1' is duplicated in table
 'ControlEvent'.  Please remove one of the entries or rename a part of the
 primary key to avoid the collision.

 How can I fix it?

 Thanks all.


 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Silly but simple question about upgrades

2010-08-11 Thread Sohail Somani
First, I love WiX. I don't think I can say that enough. Windows 
Installer is a huge pain and this product makes it bearable and almost fun.

Ok, enough sucking up. I am reading the section about upgrades here:

   http://wix.sourceforge.net/manual-wix3/major_upgrade.htm

It appears that the recommendation is to generate the Product Id every 
time. In addition to this, I am also generating the Package Id every 
time. In fact, when I want an installation to overwrite the existing 
installation (by uninstalling and installing on top), I am only leaving 
the UpgradeCode as static.

Specifically, here are the relevant sections of my wxs file:

   Product Id=*
UpgradeCode=A-GUID
Name=Product SDK
Language=1033
Version=1.0.1
Manufacturer=Company Inc.

 Package Id=*
  Description=Product SDK
  Manufacturer=Company Inc.
  InstallerVersion=200
  Compressed=yes /

 Upgrade Id=SAME-GUID-AS-A-GUID
   !--
   The Maximum version should be one less than the current
   minor version (or 0 if negative).

   The Minimum version should be the first in this product
   series
   --
   UpgradeVersion Minimum=1.0.0
   IncludeMinimum=yes
   Maximum=1.0.0
   IncludeMaximum=yes
   Property=OLDERVERSIONBEINGUPGRADED /
 /Upgrade

 InstallExecuteSequence
   RemoveExistingProducts After=InstallInitialize/
 /InstallExecuteSequence

Does this sound like a silly, dangerous thing to do or am I a genius?

Thanks in advance.

-- 
Sohail Somani
--
iBlog : http://uint32t.blogspot.com
iTweet: http://twitter.com/somanisoftware
iCode : http://bitbucket.org/cheez



--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to add FeatureTree

2010-08-11 Thread Chris Lord
I suspect your original UI refs contain a welcome dialog.  The 
FeatureTree UI is a complete UI. Its not just a FeatureTree dialog so 
the combination of your UIrefs and FeatureTree means you have duplicate 
dialogs, hence the error.

If the standard feature tree UI sequence work for you as is, then remove 
your other UIrefs and just use FeatureTree on its own.  If you use a 
custom UI sequence then your only option, I think, is to add the 
individual dialogs you need to your custom UI.  You won't be able to use 
WixUI_FeatureTree as is.

Chris


On 08/11/2010 03:28 PM, little.forest wrote:
 Hi Chris,


 Thanks. Yes, I have UIRef before I added the new FeatureTree:
 UIRef Id=MyWixUI_InstallDir/
 UIRef Id=WixUI_ErrorProgressText/





 
 From: Chris Lordchris.l...@atterotech.com
 To: General discussion for Windows Installer XML toolset.
 wix-users@lists.sourceforge.net
 Sent: Wed, August 11, 2010 12:22:40 PM
 Subject: Re: [WiX-users] How to add FeatureTree

 Did you already have a UIRef in your wxs before you added the
 FeatureTree UIRef?


 On 08/11/2010 03:00 PM, little.forest wrote:

 We'll need to add a new component. And we'd like the end user to choose to
 install it or not.

 I found the FeatureTree maybe a fit for us. So I add these code:
 UIRef Id=WixUI_FeatureTree/


 Property Id=INSTALL_FEATURE1 Value=1 /


 DirectoryRef Id='INSTALLLOCATION'
 Component Id='COMP_FTR1' Guid='*'
 File Source='feature1.dll' KeyPath=yes Checksum=yes /
 /Component
 /DirectoryRef

 Feature Id='Feature_1' AllowAdvertise='no' Description='This is for feature
  
 1'

 Title='New feature 1' Level='2'
 Condition Level='1'INSTALL_FEATURE1/Condition
 ComponentRef Id='COMP_FTR1' /
 /Feature


 But I'm getting this error when compiling:
 error LGHT0130 : The primary key
 'LicenseAgreementDlg/Back/NewDialog/WelcomeDlg/1' is duplicated in table
 'ControlEvent'.  Please remove one of the entries or rename a part of the
 primary key to avoid the collision.

 How can I fix it?

 Thanks all.


 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

  
 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to add FeatureTree

2010-08-11 Thread little.forest
Thanks Chris.


I removed MyWixUI_InstallDir which is the copy of WixUI_InstallDir with some 
changes. I got it compile and run. But some problems:
1. The change install dir page is gone. But we need it back.
2. We added a dialog called MyAddedConfirmDlg between InstallDirDlg and 
VerifyReadyDlg. If we found some user's settings need to be upgraded then we 
show this MyAddedConfirmDlg to let the end user decide to upgrade the settings 
or not. This MyAddedConfirmDlg was added in the MyWixUI_InstallDir.wxs file. 
Where can I add my own MyAddedConfirmDlg?
3. I didn't test all cases, are there maybe other potential problems?

Thanks.




From: Chris Lord chris.l...@atterotech.com
To: General discussion for Windows Installer XML toolset. 
wix-users@lists.sourceforge.net
Sent: Wed, August 11, 2010 12:56:27 PM
Subject: Re: [WiX-users] How to add FeatureTree

I suspect your original UI refs contain a welcome dialog.  The 
FeatureTree UI is a complete UI. Its not just a FeatureTree dialog so 
the combination of your UIrefs and FeatureTree means you have duplicate 
dialogs, hence the error.

If the standard feature tree UI sequence work for you as is, then remove 
your other UIrefs and just use FeatureTree on its own.  If you use a 
custom UI sequence then your only option, I think, is to add the 
individual dialogs you need to your custom UI.  You won't be able to use 
WixUI_FeatureTree as is.

Chris


On 08/11/2010 03:28 PM, little.forest wrote:
 Hi Chris,


 Thanks. Yes, I have UIRef before I added the new FeatureTree:
 UIRef Id=MyWixUI_InstallDir/
 UIRef Id=WixUI_ErrorProgressText/





 
 From: Chris Lordchris.l...@atterotech.com
 To: General discussion for Windows Installer XML toolset.
 wix-users@lists.sourceforge.net
 Sent: Wed, August 11, 2010 12:22:40 PM
 Subject: Re: [WiX-users] How to add FeatureTree

 Did you already have a UIRef in your wxs before you added the
 FeatureTree UIRef?


 On 08/11/2010 03:00 PM, little.forest wrote:

 We'll need to add a new component. And we'd like the end user to choose to
 install it or not.

 I found the FeatureTree maybe a fit for us. So I add these code:
 UIRef Id=WixUI_FeatureTree/


 Property Id=INSTALL_FEATURE1 Value=1 /


 DirectoryRef Id='INSTALLLOCATION'
 Component Id='COMP_FTR1' Guid='*'
 File Source='feature1.dll' KeyPath=yes Checksum=yes /
 /Component
 /DirectoryRef

 Feature Id='Feature_1' AllowAdvertise='no' Description='This is for feature
  
 1'

 Title='New feature 1' Level='2'
 Condition Level='1'INSTALL_FEATURE1/Condition
 ComponentRef Id='COMP_FTR1' /
 /Feature


 But I'm getting this error when compiling:
 error LGHT0130 : The primary key
 'LicenseAgreementDlg/Back/NewDialog/WelcomeDlg/1' is duplicated in table
 'ControlEvent'.  Please remove one of the entries or rename a part of the
 primary key to avoid the collision.

 How can I fix it?

 Thanks all.


 
--
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

  
 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Custom Browse Dialog

2010-08-11 Thread Nick Ramirez

If I'm reading this correctly, you're code is this:

MTPreInstallDlg

Control 
   Id=LicenseFile 
   Type=PushButton 
   X=20 
   Y=120 
   Width=56 
   Height=17 
   Text=Browse

   Publish Property=_BrowseProperty Value=[LICENSE_FILE]
Order=11/Publish
   Publish Event=SpawnDialog Value=MTBrowseDlg Order=21/Publish 
/Control

and on your other dialog, you've got:

MTBrowseDlg

Property Id=_BrowseProperty Value=LICENSE_FILE / 

Control 
   Id=PathEdit 
   Type=PathEdit 
   X=25 
   Y=202 
   Width=320 
   Height=18 
   Property=_BrowseProperty 
   Indirect=yes / 


So, you've got a dialog called MTPreInstallDlg that pops open a browse
dialog. Before it does, it sets the property _BrowseProperty to
[LICENSE_FILE]. I guess I don't see where you're setting LICENSE_FILE,
though. Actually, it doesn't seem like you should be setting _BrowseProperty
from your control because it's already being set with a Property element.
The Indirect attribute on your PathEdit says that _BrowseProperty is a
pointer to another property: LICENSE_FILE. The property element does that
for you, setting it to a property called LICENSE_FILE.

So, you might change your LicenseFile button so that it sets LICENSE_FILE to
the Id of one of your Directory elements. That way, when the user changes
the path, it sets that directory.

delete:
Publish Property=_BrowseProperty Value=[LICENSE_FILE]
Order=11/Publish

add:
Publish Property=LICENSE_FILE Value=MY_DIRECTORY Order=11/Publish


-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Browse-Dialog-tp5413342p5413828.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] External UI Handling FilesInUse

2010-08-11 Thread Wilson, Phil
I have only a couple of observations: 

1. Using MsiSetExternalUIRecord works better because you get a number of 
records that you can inspect rather than trying to decode message formats. Each 
record contains process, file name I think etc. If you actually want a message 
then MsiFormatRecord() will make one.  

2. MsiSetExternalUIRecord callbacks for FilesInUse sometimes contain empty 
records. It's almost as if Windows populates something with all the candidates 
but then erases the ones it can deal with, leaving holes. If this happens with 
the non-record callback it might look strange. Also, I believe I tried to deal 
with FilesInUse in a non-record callback and I *think* the process names 
weren't actually in the message - they were in a message just before (or 
after?), so if you monitor all the messages you might see something like that. 

Phil Wilson 


-Original Message-
From: Andy Glass [mailto:agl...@laserfiche.com] 
Sent: Wednesday, August 11, 2010 11:55 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] External UI Handling FilesInUse

This isn't technically a WiX question, but I figured there was no harm in 
asking:

I've written a bootstrapper for our various products, one that uses 
MsiSetExternalUI to hook into the MSIs to retrieve error messages, progress, 
and the like (I've based off the example handler found here: 
http://msdn.microsoft.com/en-us/library/aa368786%28VS.85%29.aspx).  I would 
also like to be able to deal with FilesInUse messages, but I'm unsure how to 
actually retrieve the information on which applications need to be closed (they 
don't show up in the message string that gets sent).  I've discovered that 
appending [1], [2], etc. the 1607 message (files in use), the message sent to 
the UI handler then receives the application names, but when uninstalling 
directly from Add/Remove Programs, the internal UI doesn't seem to do the 
string substitution and I end up with The following applications should be 
closed before continuing the install: [1] [2]... being displayed to the user.

So basically the short version of my question: Does anyone know a way to 
retrieve the list of applications for a 1607 (files in use) message in an 
external UI without screwing up what is displayed by the internal UI when run 
directly from the .msi?

I don't suppose anyone has run into this issue before and found an acceptable 
solution?

-Andy
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at Portland House, Bressenden Place, London, 
SW1E 5BF (Registered number 166023). For a list of European legal entities 
within the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77nav_id=80prev_id=77. 
You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail 
inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be 
subject to the terms of any agreements between Invensys (and/or its 
subsidiaries and affiliates) and the recipient (and/or its subsidiaries and 
affiliates).



--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] How to add FeatureTree

2010-08-11 Thread Chris Lord
Sadly, you are getting to the extent of my knowledge and experience here 
so I am not sure I can offer much more advice.

What you need is to take your customized version of WixUI_InstallDir and 
add to it the useful dialogs from WixUI_FeatureTree.  Unfortunately, how 
best to achieve that I do not know.

Chris

On 08/11/2010 04:23 PM, little.forest wrote:
 Thanks Chris.


 I removed MyWixUI_InstallDir which is the copy of WixUI_InstallDir with some
 changes. I got it compile and run. But some problems:
 1. The change install dir page is gone. But we need it back.
 2. We added a dialog called MyAddedConfirmDlg between InstallDirDlg and
 VerifyReadyDlg. If we found some user's settings need to be upgraded then we
 show this MyAddedConfirmDlg to let the end user decide to upgrade the settings
 or not. This MyAddedConfirmDlg was added in the MyWixUI_InstallDir.wxs file.
 Where can I add my own MyAddedConfirmDlg?
 3. I didn't test all cases, are there maybe other potential problems?

 Thanks.



 
 From: Chris Lordchris.l...@atterotech.com
 To: General discussion for Windows Installer XML toolset.
 wix-users@lists.sourceforge.net
 Sent: Wed, August 11, 2010 12:56:27 PM
 Subject: Re: [WiX-users] How to add FeatureTree

 I suspect your original UI refs contain a welcome dialog.  The
 FeatureTree UI is a complete UI. Its not just a FeatureTree dialog so
 the combination of your UIrefs and FeatureTree means you have duplicate
 dialogs, hence the error.

 If the standard feature tree UI sequence work for you as is, then remove
 your other UIrefs and just use FeatureTree on its own.  If you use a
 custom UI sequence then your only option, I think, is to add the
 individual dialogs you need to your custom UI.  You won't be able to use
 WixUI_FeatureTree as is.

 Chris


 On 08/11/2010 03:28 PM, little.forest wrote:

 Hi Chris,


 Thanks. Yes, I have UIRef before I added the new FeatureTree:
 UIRef Id=MyWixUI_InstallDir/
 UIRef Id=WixUI_ErrorProgressText/





 
 From: Chris Lordchris.l...@atterotech.com
 To: General discussion for Windows Installer XML toolset.
 wix-users@lists.sourceforge.net
 Sent: Wed, August 11, 2010 12:22:40 PM
 Subject: Re: [WiX-users] How to add FeatureTree

 Did you already have a UIRef in your wxs before you added the
 FeatureTree UIRef?


 On 08/11/2010 03:00 PM, little.forest wrote:

  
 We'll need to add a new component. And we'd like the end user to choose to
 install it or not.

 I found the FeatureTree maybe a fit for us. So I add these code:
 UIRef Id=WixUI_FeatureTree/


 Property Id=INSTALL_FEATURE1 Value=1 /


 DirectoryRef Id='INSTALLLOCATION'
 Component Id='COMP_FTR1' Guid='*'
 File Source='feature1.dll' KeyPath=yes Checksum=yes /
 /Component
 /DirectoryRef

 Feature Id='Feature_1' AllowAdvertise='no' Description='This is for feature


 1'

  
 Title='New feature 1' Level='2'
 Condition Level='1'INSTALL_FEATURE1/Condition
 ComponentRef Id='COMP_FTR1' /
 /Feature


 But I'm getting this error when compiling:
 error LGHT0130 : The primary key
 'LicenseAgreementDlg/Back/NewDialog/WelcomeDlg/1' is duplicated in table
 'ControlEvent'.  Please remove one of the entries or rename a part of the
 primary key to avoid the collision.

 How can I fix it?

 Thanks all.




 --

 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users



 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

  
 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 

Re: [WiX-users] How to add FeatureTree

2010-08-11 Thread little.forest
Thanks Chris. You already helped me moving to the right direction, I guess. 

If anyone know the solution, please let me know.




From: Chris Lord chris.l...@atterotech.com
To: General discussion for Windows Installer XML toolset. 
wix-users@lists.sourceforge.net
Sent: Wed, August 11, 2010 1:54:24 PM
Subject: Re: [WiX-users] How to add FeatureTree

Sadly, you are getting to the extent of my knowledge and experience here 
so I am not sure I can offer much more advice.

What you need is to take your customized version of WixUI_InstallDir and 
add to it the useful dialogs from WixUI_FeatureTree.  Unfortunately, how 
best to achieve that I do not know.

Chris

On 08/11/2010 04:23 PM, little.forest wrote:
 Thanks Chris.


 I removed MyWixUI_InstallDir which is the copy of WixUI_InstallDir with some
 changes. I got it compile and run. But some problems:
 1. The change install dir page is gone. But we need it back.
 2. We added a dialog called MyAddedConfirmDlg between InstallDirDlg and
 VerifyReadyDlg. If we found some user's settings need to be upgraded then we
 show this MyAddedConfirmDlg to let the end user decide to upgrade the settings
 or not. This MyAddedConfirmDlg was added in the MyWixUI_InstallDir.wxs file.
 Where can I add my own MyAddedConfirmDlg?
 3. I didn't test all cases, are there maybe other potential problems?

 Thanks.



 
 From: Chris Lordchris.l...@atterotech.com
 To: General discussion for Windows Installer XML toolset.
 wix-users@lists.sourceforge.net
 Sent: Wed, August 11, 2010 12:56:27 PM
 Subject: Re: [WiX-users] How to add FeatureTree

 I suspect your original UI refs contain a welcome dialog.  The
 FeatureTree UI is a complete UI. Its not just a FeatureTree dialog so
 the combination of your UIrefs and FeatureTree means you have duplicate
 dialogs, hence the error.

 If the standard feature tree UI sequence work for you as is, then remove
 your other UIrefs and just use FeatureTree on its own.  If you use a
 custom UI sequence then your only option, I think, is to add the
 individual dialogs you need to your custom UI.  You won't be able to use
 WixUI_FeatureTree as is.

 Chris


 On 08/11/2010 03:28 PM, little.forest wrote:

 Hi Chris,


 Thanks. Yes, I have UIRef before I added the new FeatureTree:
 UIRef Id=MyWixUI_InstallDir/
 UIRef Id=WixUI_ErrorProgressText/





 
 From: Chris Lordchris.l...@atterotech.com
 To: General discussion for Windows Installer XML toolset.
 wix-users@lists.sourceforge.net
 Sent: Wed, August 11, 2010 12:22:40 PM
 Subject: Re: [WiX-users] How to add FeatureTree

 Did you already have a UIRef in your wxs before you added the
 FeatureTree UIRef?


 On 08/11/2010 03:00 PM, little.forest wrote:

  
 We'll need to add a new component. And we'd like the end user to choose to
 install it or not.

 I found the FeatureTree maybe a fit for us. So I add these code:
 UIRef Id=WixUI_FeatureTree/


 Property Id=INSTALL_FEATURE1 Value=1 /


 DirectoryRef Id='INSTALLLOCATION'
 Component Id='COMP_FTR1' Guid='*'
 File Source='feature1.dll' KeyPath=yes Checksum=yes /
 /Component
 /DirectoryRef

 Feature Id='Feature_1' AllowAdvertise='no' Description='This is for feature


 1'

  
 Title='New feature 1' Level='2'
 Condition Level='1'INSTALL_FEATURE1/Condition
 ComponentRef Id='COMP_FTR1' /
 /Feature


 But I'm getting this error when compiling:
 error LGHT0130 : The primary key
 'LicenseAgreementDlg/Back/NewDialog/WelcomeDlg/1' is duplicated in table
 'ControlEvent'.  Please remove one of the entries or rename a part of the
 primary key to avoid the collision.

 How can I fix it?

 Thanks all.




 --

 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users



 
--
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 
--
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

  
 

Re: [WiX-users] External UI Handling FilesInUse

2010-08-11 Thread Andy Glass
Thanks, MsiSetExternalUIRecord is exactly what I needed.

-Andy

-Original Message-
From: Wilson, Phil [mailto:phil.wil...@invensys.com] 
Sent: Wednesday, August 11, 2010 1:45 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] External UI Handling FilesInUse

I have only a couple of observations: 

1. Using MsiSetExternalUIRecord works better because you get a number of 
records that you can inspect rather than trying to decode message formats. Each 
record contains process, file name I think etc. If you actually want a message 
then MsiFormatRecord() will make one.  

2. MsiSetExternalUIRecord callbacks for FilesInUse sometimes contain empty 
records. It's almost as if Windows populates something with all the candidates 
but then erases the ones it can deal with, leaving holes. If this happens with 
the non-record callback it might look strange. Also, I believe I tried to deal 
with FilesInUse in a non-record callback and I *think* the process names 
weren't actually in the message - they were in a message just before (or 
after?), so if you monitor all the messages you might see something like that. 

Phil Wilson 


-Original Message-
From: Andy Glass [mailto:agl...@laserfiche.com] 
Sent: Wednesday, August 11, 2010 11:55 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] External UI Handling FilesInUse

This isn't technically a WiX question, but I figured there was no harm in 
asking:

I've written a bootstrapper for our various products, one that uses 
MsiSetExternalUI to hook into the MSIs to retrieve error messages, progress, 
and the like (I've based off the example handler found here: 
http://msdn.microsoft.com/en-us/library/aa368786%28VS.85%29.aspx).  I would 
also like to be able to deal with FilesInUse messages, but I'm unsure how to 
actually retrieve the information on which applications need to be closed (they 
don't show up in the message string that gets sent).  I've discovered that 
appending [1], [2], etc. the 1607 message (files in use), the message sent to 
the UI handler then receives the application names, but when uninstalling 
directly from Add/Remove Programs, the internal UI doesn't seem to do the 
string substitution and I end up with The following applications should be 
closed before continuing the install: [1] [2]... being displayed to the user.

So basically the short version of my question: Does anyone know a way to 
retrieve the list of applications for a 1607 (files in use) message in an 
external UI without screwing up what is displayed by the internal UI when run 
directly from the .msi?

I don't suppose anyone has run into this issue before and found an acceptable 
solution?

-Andy
--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at Portland House, Bressenden Place, London, 
SW1E 5BF (Registered number 166023). For a list of European legal entities 
within the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77nav_id=80prev_id=77. 
You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail 
inet.hqhelpd...@invensys.com. This e-mail 
 and any attachments thereto may be subject to the terms of any agreements 
between Invensys (and/or its subsidiaries and affiliates) and the recipient 
(and/or its subsidiaries and affiliates).



--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users 

Re: [WiX-users] Custom Browse Dialog

2010-08-11 Thread gapearce

Hey Thanks Nick!  That was pretty close...  This license file won't be
'installed', it will be emailed to the user, so it is possible for the user
to put it anywhere before running setup.  So I followed your suggestion to
set the variable correctly, but I set it to C:\, and it is acting
correctly now.  Thanks a lot for your help!
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Custom-Browse-Dialog-tp5413342p5414318.html
Sent from the wix-users mailing list archive at Nabble.com.

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Silly but simple question about upgrades

2010-08-11 Thread Blair
If you don't want to always be calculating version numbers, you can also do
this:

   UpgradeVersion Minimum=1.0.0
   IncludeMinimum=yes
   Maximum=same-version-as-in-Product-element
   IncludeMaximum=no
   Property=OLDERVERSIONBEINGUPGRADED /

I personally always set Minimum to 0 because that way I never have to
worry about what my minimum version number was or about some pre-release
build getting left behind.

Many people also use this table to implement downgrade protection.

-Original Message-
From: Sohail Somani [mailto:soh...@taggedtype.net] 
Sent: Wednesday, August 11, 2010 12:44 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Silly but simple question about upgrades

First, I love WiX. I don't think I can say that enough. Windows 
Installer is a huge pain and this product makes it bearable and almost fun.

Ok, enough sucking up. I am reading the section about upgrades here:

   http://wix.sourceforge.net/manual-wix3/major_upgrade.htm

It appears that the recommendation is to generate the Product Id every 
time. In addition to this, I am also generating the Package Id every 
time. In fact, when I want an installation to overwrite the existing 
installation (by uninstalling and installing on top), I am only leaving 
the UpgradeCode as static.

Specifically, here are the relevant sections of my wxs file:

   Product Id=*
UpgradeCode=A-GUID
Name=Product SDK
Language=1033
Version=1.0.1
Manufacturer=Company Inc.

 Package Id=*
  Description=Product SDK
  Manufacturer=Company Inc.
  InstallerVersion=200
  Compressed=yes /

 Upgrade Id=SAME-GUID-AS-A-GUID
   !--
   The Maximum version should be one less than the current
   minor version (or 0 if negative).

   The Minimum version should be the first in this product
   series
   --
   UpgradeVersion Minimum=1.0.0
   IncludeMinimum=yes
   Maximum=1.0.0
   IncludeMaximum=yes
   Property=OLDERVERSIONBEINGUPGRADED /
 /Upgrade

 InstallExecuteSequence
   RemoveExistingProducts After=InstallInitialize/
 /InstallExecuteSequence

Does this sound like a silly, dangerous thing to do or am I a genius?

Thanks in advance.

-- 
Sohail Somani
--
iBlog : http://uint32t.blogspot.com
iTweet: http://twitter.com/somanisoftware
iCode : http://bitbucket.org/cheez




--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users