[WiX-users] Run a script in WIX based dialog

2010-07-08 Thread BSR PHANI
Hi All,

Is there any way to run a script like VB in WIX based dialog? in one of the
dialogs of my installer, i'm giving default directory like C:\Program
Files\My Installer.
At the same time I'm giving an option to browse the user desired location.
If there is any other product which is already installed with my default
directory, then i should not allow my installer to install in my default
directory, I should ask to install in another directory.

This is my requirement and i would do it if it is a MFC dialog, But the
dialog is WIX based dialog. So i need a way to run my script in the wix
based dialog.
Can anyone please help me to resolve the above issue?

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


Re: [WiX-users] Applying transform from a Custom Action

2010-07-08 Thread Rob Mensching
You know, this case might be the exact reason why you shouldn't use embedded
language transforms. If it isn't the only case, I think it is one of the
reasons the feature isn't documented to work.

On Wed, Jul 7, 2010 at 10:30 PM, gulfam murad gulfam.mu...@gmail.comwrote:

 Thanks Rob!

 So, if we used embedded language transforms to support MUI (
 http://www.installsite.org/pages/en/msi/articles/embeddedlang/). And there
 is a bug in one of the language transforms (e.g. ServiceInstall table has
 some wrong information), what are my options to resolve this issue? Thanks
 a
 lot.

 Best Regards,
 Gulfam Murad

 On Thu, Jul 8, 2010 at 12:45 AM, Rob Mensching r...@robmensching.com
 wrote:

  You can add temporary rows with a custom action. That and setting
  Properties
  are the only mutations allowed that I'm aware of.
 
  On Wed, Jul 7, 2010 at 8:15 PM, gulfam murad gulfam.mu...@gmail.com
  wrote:
 
   Hi All,
  
   Is there a way to apply a transform during package installation (using
   custom action, for example). Or how can I change msi tables during
  runtime
   (during installation).
  
   p.s. I understand this is not directly a wix related question, I will
   appreciate any response. Thanks.
  
   Best Regards,
   Gulfam Murad
  

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


Re: [WiX-users] Problems launching an application on finish

2010-07-08 Thread Thomas Due
 So what is the conclusion? That what I am trying is basically impossible?

 MSI will not launch an elevated process except as a deferred custom 
 action and you can't use those from the UI.

I read that as a yes. 

So, what is my options then? I will of course attempt the solution that 
Palbinder Sandher suggested, but is that really the only solution? 

I have run out of time on the subject for the time being, so I have to resign 
to the fact that people have to run the application manually on Windows Vista 
and 7.
But since I will be returning to the subject, I just want to know If the custom 
action described in the manual is the only (possibly) way?

In any event, thank you for your time. 
 
Med venlig hilsen / Best regards,
Thomas Due - Software Developer 
Tel: +45 8678 5500 Fax: +45 8678 5210 
Johann Gutenbergs vej 5-9, Aarhus N, Denmark 
t...@scanvaegt.dk | www.scanvaegt.dk   


This e-mail and its attachments are intended for the named addressee only and 
may contain information that is confidential and privileged. Unauthorized use 
can instigate a claim for damages and constitute a criminal offence. If you 
received this in error, please contact the sender and delete the material. 



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


Re: [WiX-users] Check if a certain program running during installation.

2010-07-08 Thread Adi Sashkis
Thank you for your answer.
I wrote the following code according to some code I found while searching on
the internet:

Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' xmlns:util=
http://schemas.microsoft.com/wix/UtilExtension;
Product .
..

util:CloseApplication
Id = CloseSW Description=SolidWorks need to be closed
Property=SWRunning Target=SLDWORKS.exe /

Condition Message=This setup requires Solidworks to be closed.
   [SWRunning]
/Condition

InstallExecuteSequence
Custom Action=WixCloseApplications Before=InstallValidate
/

/InstallExecuteSequence


I ran Candle and got this error :
error CNDL0200 : The Product element contains an unhandled extension
element 'util:CloseApplication'.

1. What am I doing wrong ?
2. Can you reference me to a full example on how to use
util:CloseApplication / ?

Thank you for your help,
Adi Sashkis


On 7 July 2010 15:43, Bob Arnson b...@joyofsetup.com wrote:

 On 7/4/2010 11:30 AM, Adi Sashkis wrote:
  I read that theutil:CloseApplication /  might be what i need but I am
 not
  quit sure how it's works.
 

 Use the property you give it as a condition, either a dialog or an error
 custom action to prevent installation when set (i.e., when the process
 is running).

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



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

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


[WiX-users] Reg: IIS Virtual directory creation

2010-07-08 Thread Amarnath.Chakaravarthy
Hi,

 

I am new to WiX and trying to create one IIS Virtual directory.

I am getting an error message Failed while processing WebVirtualDirs.
(-2147024894 ) at the time of installation. I am able to
compile and make the msi with warning message ICE68: This package has
elevated commit in CustomAction table (Action=CommitMetabaseTransaction)
but it has a schema less than 150.

 

My code is as follows,

 

iis:WebSite Id=My.Site Description=My.Site SiteId=* 

iis:WebAddress Id=AllUnassigned IP=* Port=80/ 

/iis:WebSite 

 

Directory Id=TARGETDIR Name=SourceDir

Directory Id=ProgramFilesFolder

Directory Id=INSTALLDIR Name=TEST

 

 Component Id='MainExecutable'
Guid='76454BA8-2DE4-45B8-8B25-793E6493100B'

 File Id='FoobarEXE' Name='mytest.exe' DiskId='1' Source='C:\
mytest.exe' KeyPath='yes' /

 

   iis:WebVirtualDir Id=My.VirtualDir Alias=foo
Directory=INSTALLDIR WebSite=My.Site 

/iis:WebVirtualDir 

 

 /Component

 

 

 

Could you please help me out...

 




Regards,

Amarnath C

 

 

 


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly prohibited and may be unlawful.
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Creating a patch with the Visual Studio plugin

2010-07-08 Thread Coates, Anthony
We are using Wix projects in Visual Studio (VS2008  wix 3) to create
MSIs as part of an automated build process run by TFS. We now wish to
create a patch of the original msi. Is this possible either directly
through the VS plugin or by using the command line tools, as we use VS
project references in the wix source files.

 

Thanks

Anthony

 


-
This email is sent on behalf of Northgate Information Solutions Limited and its 
associated companies (Northgate) and is strictly confidential and intended 
solely for the addressee(s).  
 
If you are not the intended recipient of this email you must: (i) not disclose, 
copy or distribute its contents to any other person nor use its contents in any 
way or you may be acting unlawfully;  (ii) contact Northgate immediately on +44 
(0)1442 232424 quoting the name of the sender and the addressee then delete it 
from your system.
 
Northgate has taken reasonable precautions to ensure that no viruses are 
contained in this email, but does not accept any responsibility once this email 
has been transmitted.  You should scan attachments (if any) for viruses.
 
Northgate Information Solutions Limited. Registered in England no. 06442582  -  
Northgate Information Solutions UK Limited. Registered in England no. 968498  - 
 NorthgateArinso UK Limited .Registered in England no. 1587537  -  Moorepay 
Limited.  Registered in England no. 891686  - First Business Support Limited. 
Registered in England no. 3056267 -  Registered Office: Peoplebuilding 2, 
Peoplebuilding Estate, Maylands Avenue, Hemel Hempstead, Hertfordshire HP2 4NW 
 
Northgate Managed Services Limited (NI).  Registered in Northern Ireland no. 
NI032979  -  LearnServe Limited (NI).  Registered in Northern Ireland no. 
NI043825
Registered Office: Hillview House, 61 Church Road, Newtownabbey, Co. Antrim, 
BT36 7LQ 

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


[WiX-users] Feature specific Custom Actions

2010-07-08 Thread Boris Klyachko
Hi there

 

I need to perform some custom actions only if a particular feature of my
product has been selected. If the product has been installed without that
feature there is no need for Custom Action. Can anyone please provide an
example of how to do it? 

 

And there is more complex scenario: The product has several features. If the
user selects typical install all of the features are installed and a Custom
Action associated with one of the features needs to be invoked. But if the
same feature is selected from custom install there is no need for a Custom
Action. Would it be possible to script these conditions in WIX?

 

Thanks in advance

 

Boris

 

 

 

 

  

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


[WiX-users] how to select the previously installed features by default while upgrading

2010-07-08 Thread Sanjay Rao
Hi,

I have a installer which has three independent  features. user can 
select any of them.
when user upgrades to newer version, how can I select only those 
features which were installed with previous version ?

Regards,
Sanjay Rao



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


Re: [WiX-users] Feature specific Custom Actions

2010-07-08 Thread Sanjay Rao
use this condition to execute your custom action
Custom Action='CutomActionID' 
After='InstallInitialize'![CDATA[(FeatureID2)]] /Custom
-Sanjay Rao

Boris Klyachko wrote:
 Hi there

  

 I need to perform some custom actions only if a particular feature of my
 product has been selected. If the product has been installed without that
 feature there is no need for Custom Action. Can anyone please provide an
 example of how to do it? 

  

 And there is more complex scenario: The product has several features. If the
 user selects typical install all of the features are installed and a Custom
 Action associated with one of the features needs to be invoked. But if the
 same feature is selected from custom install there is no need for a Custom
 Action. Would it be possible to script these conditions in WIX?

  

 Thanks in advance

  

 Boris

  

  

  

  

   

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



   




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


Re: [WiX-users] Check if a certain program running during installation.

2010-07-08 Thread Blair
If you are not using MSBuild/VS/Votive/Nant, you need to add -ext
WixUtilExtension to both your candle.exe and light.exe command lines.

If you are using any of those build systems, look for how to reference WiX
extensions in the appropriate nant build file or wixproj file (or properties
window, etc.) from the WiX help file (wix.chm) included when you installed
WiX.

-Original Message-
From: Adi Sashkis [mailto:adi.sash...@gmail.com] 
Sent: Thursday, July 08, 2010 1:22 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Check if a certain program running during
installation.

Thank you for your answer.
I wrote the following code according to some code I found while searching on
the internet:

Wix xmlns='http://schemas.microsoft.com/wix/2006/wi' xmlns:util=
http://schemas.microsoft.com/wix/UtilExtension;
Product .
..

util:CloseApplication
Id = CloseSW Description=SolidWorks need to be closed
Property=SWRunning Target=SLDWORKS.exe /

Condition Message=This setup requires Solidworks to be closed.
   [SWRunning]
/Condition

InstallExecuteSequence
Custom Action=WixCloseApplications Before=InstallValidate
/

/InstallExecuteSequence


I ran Candle and got this error :
error CNDL0200 : The Product element contains an unhandled extension
element 'util:CloseApplication'.

1. What am I doing wrong ?
2. Can you reference me to a full example on how to use
util:CloseApplication / ?

Thank you for your help,
Adi Sashkis


On 7 July 2010 15:43, Bob Arnson b...@joyofsetup.com wrote:

 On 7/4/2010 11:30 AM, Adi Sashkis wrote:
  I read that theutil:CloseApplication /  might be what i need but I am
 not
  quit sure how it's works.
 

 Use the property you give it as a condition, either a dialog or an error
 custom action to prevent installation when set (i.e., when the process
 is running).

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





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


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


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


[WiX-users] how to disable/remove Entire feature will be installed on local hard drive option from feature selection tree

2010-07-08 Thread Sanjay Rao
Hi All,

I have a installer which has 3 features. These features do not have sub 
features. Can I disable Entire feature will be installed on local hard 
drive option from feature selection tree.

Regards,
Sanjay Rao



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


Re: [WiX-users] Reg: IIS Virtual directory creation

2010-07-08 Thread Blair
In your Package element, add an InstallerVersion attribute and set its
value to 300.

-Original Message-
From: amarnath.chakaravar...@cognizant.com
[mailto:amarnath.chakaravar...@cognizant.com] 
Sent: Thursday, July 08, 2010 4:29 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Reg: IIS Virtual directory creation

Hi,

 

I am new to WiX and trying to create one IIS Virtual directory.

I am getting an error message Failed while processing WebVirtualDirs.
(-2147024894 ) at the time of installation. I am able to
compile and make the msi with warning message ICE68: This package has
elevated commit in CustomAction table (Action=CommitMetabaseTransaction)
but it has a schema less than 150.

 

My code is as follows,

 

iis:WebSite Id=My.Site Description=My.Site SiteId=* 

iis:WebAddress Id=AllUnassigned IP=* Port=80/ 

/iis:WebSite 

 

Directory Id=TARGETDIR Name=SourceDir

Directory Id=ProgramFilesFolder

Directory Id=INSTALLDIR Name=TEST

 

 Component Id='MainExecutable'
Guid='76454BA8-2DE4-45B8-8B25-793E6493100B'

 File Id='FoobarEXE' Name='mytest.exe' DiskId='1' Source='C:\
mytest.exe' KeyPath='yes' /

 

   iis:WebVirtualDir Id=My.VirtualDir Alias=foo
Directory=INSTALLDIR WebSite=My.Site 

/iis:WebVirtualDir 

 

 /Component

 

 

 

Could you please help me out...

 




Regards,

Amarnath C

 

 

 


This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged
information.
If you are not the intended recipient, please contact the sender by reply
e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on this
e-mail is strictly prohibited and may be unlawful.

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


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


Re: [WiX-users] how to select the previously installed features by default while upgrading

2010-07-08 Thread Blair
See the MigrateFeatures attribute to the UpgradeVersion element.

-Original Message-
From: Sanjay Rao [mailto:s...@noida.interrasystems.com] 
Sent: Thursday, July 08, 2010 5:45 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] how to select the previously installed features by
default while upgrading

Hi,

I have a installer which has three independent  features. user can 
select any of them.
when user upgrades to newer version, how can I select only those 
features which were installed with previous version ?

Regards,
Sanjay Rao




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


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


Re: [WiX-users] Applying transform from a Custom Action

2010-07-08 Thread gulfam murad
Thanks Rob for your valuable input on this.

Best Regards,
Gulfam Murad

On Thu, Jul 8, 2010 at 2:03 AM, Rob Mensching r...@robmensching.com wrote:

 You know, this case might be the exact reason why you shouldn't use
 embedded
 language transforms. If it isn't the only case, I think it is one of the
 reasons the feature isn't documented to work.

 On Wed, Jul 7, 2010 at 10:30 PM, gulfam murad gulfam.mu...@gmail.com
 wrote:

  Thanks Rob!
 
  So, if we used embedded language transforms to support MUI (
  http://www.installsite.org/pages/en/msi/articles/embeddedlang/). And
 there
  is a bug in one of the language transforms (e.g. ServiceInstall table has
  some wrong information), what are my options to resolve this issue?
 Thanks
  a
  lot.
 
  Best Regards,
  Gulfam Murad
 
  On Thu, Jul 8, 2010 at 12:45 AM, Rob Mensching r...@robmensching.com
  wrote:
 
   You can add temporary rows with a custom action. That and setting
   Properties
   are the only mutations allowed that I'm aware of.
  
   On Wed, Jul 7, 2010 at 8:15 PM, gulfam murad gulfam.mu...@gmail.com
   wrote:
  
Hi All,
   
Is there a way to apply a transform during package installation
 (using
custom action, for example). Or how can I change msi tables during
   runtime
(during installation).
   
p.s. I understand this is not directly a wix related question, I will
appreciate any response. Thanks.
   
Best Regards,
Gulfam Murad
   
 

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




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


[WiX-users] Changing a Global property in a custom action is not immediately affecting the installer

2010-07-08 Thread Stelios Kyprou
Hello!

I have a custom action setting a Global property in the following way:
session[VALIDATED] = 1;

This CA is called when a user clicks a Validate button in a dialog.
The control is as follows:

Control Type=PushButton Id=Validate Width=56 Height=17 X=234 Y=243
  TextValidate/Text
  Condition Action=disable
![CDATA[VALIDATED = 1 ]]
  /Condition
  Publish Event=DoAction Value=ConfirmationCustomAction1/Publish
  Publish Event=SpawnDialog 
Value=InvalidConfigDlg![CDATA[VALIDATED  1 ]]/Publish  
/Control

Now i have a Next button in the same dialog, which is initially Disabled, and 
gets enabled when the VALIDATED
property get's set to 1:

Control Type=PushButton Id=Next Width=56 Height=17 X=308 Y=243 
Default=no
  TextNext/Text
  Condition Action=disable
![CDATA[VALIDATED  1 ]]
  /Condition
  Condition Action=enable
![CDATA[VALIDATED = 1 ]]
  /Condition
  Publish Event=EndDialog Value=Return/
/Control

Initially the Property VALIDATE is set to 0.

Now when i run the installer, and i click Validate, i can see in the log 
files that the Property VALIDATE is set to 1
(PROPERTY CHANGE: Modifying VALIDATED property. Its current value is '0'. Its 
new value: '1'.
Action ended 14:38:57: ConfirmationCustomAction. Return value 1.),
but when the custom action returns ActionResult.Success,
the Next button is still Disabled. 

I have a bunch of edit boxes in my dialog, each one representing a Property. 
A senario that i realised that i can enable the Next button is:

1) I fill in all the edit boxes
2) I click Validate
3) The CA returns ActionResult.Success (Next button STILL disabled)
4) I re-edit an edit box
5) When i re-edit, the next button get's enabled. (and Validate get's disabled)

Any ideas why this is happening?
Under normal circumstances, when the CA ends and is successfull, the Next 
button should get enabled.

Thanks in advance, 
Stelios

-- 
Stelios Kyprou
Systems Engineer
Formicary - delivering quality financial technology solutions(TM)
www.formicary.net




This message is confidential and may be privileged. It is intended solely for
the named addressee. If you are not the intended recipient, please inform us.
Any unauthorised dissemination, distribution or copying hereof is prohibited.

Formicary Limited registered office in England and Wales, address 1 Taillar
Road, Hedon, East Yorkshire HU12 8GU, registration number 3894343, VAT number
747644304, does not guarantee that the integrity of this communication has been
maintained nor that this communication is free of viruses, interceptions or
interference.

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


Re: [WiX-users] Dynamic directory creation

2010-07-08 Thread Keith Hassen
Well this sounds promising.  The only trouble I'm having with this is
how to dynamically add to the DuplicateFile Table (or the Directory
Table for that matter).  I realize I can use the CopyFile node to author
to the table, but I won't know the number of directories to copy to
until the installation is run: the user responds with 10 for the
number of directories to replicate, which requires that I then issue 10
CopyFile statements.  I don't have this information in advance.

So maybe I'm stuck with DTF after all?

K



[ Original Message ]
*Date:* 7/7/2010 10:43:42 AM
*From:* os...@live.com
*To:*   wix-users@lists.sourceforge.net
*CC:*   
*Subject:*  Re: [WiX-users] Dynamic directory creation

 My recommendation would be to add an immediate custom action in the
 InstallExecuteSequence table before CostInitialize that adds temporary
 rows to the DuplicateFile table and temporary rows to the Directory table.
 You would also need the following authoring:

 InstallExecuteSequence
   DuplicateFiles/
 /InstallExecuteSequence

 EnsureTable Id=DuplicateFile/

 You should also save the parameters for your custom action so that they can
 be retrieved when repairing or uninstalling so your dynamic directories can
 be cleaned up/upgraded as appropriate.

 See http://www.joyofsetup.com/2007/07/01/semi-custom-actions/ for the
 concept of using native functionality to do non-native things. This tends to
 be much more authorable and reliable than trying to implement deferred
 actions and getting rollback, etc. working in every case of repair, install,
 removal, both kinds of upgrade, etc.

 Such an immediate action can be tested using Lux as well, so you get
 testability as a bonus.

 -Original Message-
 From: Keith Hassen [mailto:keith.has...@gmail.com] 
 Sent: Wednesday, July 07, 2010 6:03 AM
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Dynamic directory creation

 Hi,

 I am faced with a problem of building an MSI that requires a set of
 directories to be created during installation.  These directories are
 all prefixed with a common string (eg folder) followed by a sequence
 number (eg 01) so that their final construction might be something
 like folder01, folder02, etc.  I need to place the same executable
 in each of these generated directories, but the number of directories
 isn't known until install time.  I would like to prompt the user for
 that number during the setup and then dynamically build the directories.

 My original assumption was that WiX simply couldn't do this task because
 of the dynamic nature of the problem.  I assumed that I'd have to write
 a batch script that would do this work for me: my approach was to always
 generate 1 directory, and then use a CA to invoke a batch script that
 would copy the directory as many times as was needed.

 I thought I'd post this problem to this list to see if there were other
 solutions (using WiX or otherwise) that might be cleaner or more effective.


 Keith

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


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


Re: [WiX-users] Creating a patch with the Visual Studio plugin

2010-07-08 Thread Rob Mensching
Unfortunately, we don't have MSBuild Tasks for the patching system, yet. Of
course, all the tools will work fine in MSBuild... just need to do a bit
more work yourself right now.

On Thu, Jul 8, 2010 at 4:34 AM, Coates, Anthony 
anthony.coa...@northgate-is.com wrote:

 We are using Wix projects in Visual Studio (VS2008  wix 3) to create
 MSIs as part of an automated build process run by TFS. We now wish to
 create a patch of the original msi. Is this possible either directly
 through the VS plugin or by using the command line tools, as we use VS
 project references in the wix source files.



 Thanks

 Anthony





 -
 This email is sent on behalf of Northgate Information Solutions Limited and
 its associated companies (Northgate) and is strictly confidential and
 intended solely for the addressee(s).

 If you are not the intended recipient of this email you must: (i) not
 disclose, copy or distribute its contents to any other person nor use its
 contents in any way or you may be acting unlawfully;  (ii) contact Northgate
 immediately on +44 (0)1442 232424 quoting the name of the sender and the
 addressee then delete it from your system.

 Northgate has taken reasonable precautions to ensure that no viruses are
 contained in this email, but does not accept any responsibility once this
 email has been transmitted.  You should scan attachments (if any) for
 viruses.

 Northgate Information Solutions Limited. Registered in England no. 06442582
  -  Northgate Information Solutions UK Limited. Registered in England no.
 968498  -  NorthgateArinso UK Limited .Registered in England no. 1587537  -
  Moorepay Limited.  Registered in England no. 891686  - First Business
 Support Limited. Registered in England no. 3056267 -  Registered Office:
 Peoplebuilding 2, Peoplebuilding Estate, Maylands Avenue, Hemel Hempstead,
 Hertfordshire HP2 4NW

 Northgate Managed Services Limited (NI).  Registered in Northern Ireland
 no. NI032979  -  LearnServe Limited (NI).  Registered in Northern Ireland
 no. NI043825
 Registered Office: Hillview House, 61 Church Road, Newtownabbey, Co.
 Antrim, BT36 7LQ


 -

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




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


Re: [WiX-users] Applying transform from a Custom Action

2010-07-08 Thread Rob Mensching
Wish I had better news. The Windows Installer isn't very forgiving in these
cases.

On Thu, Jul 8, 2010 at 6:56 AM, gulfam murad gulfam.mu...@gmail.com wrote:

 Thanks Rob for your valuable input on this.

 Best Regards,
 Gulfam Murad

 On Thu, Jul 8, 2010 at 2:03 AM, Rob Mensching r...@robmensching.com
 wrote:

  You know, this case might be the exact reason why you shouldn't use
  embedded
  language transforms. If it isn't the only case, I think it is one of the
  reasons the feature isn't documented to work.
 
  On Wed, Jul 7, 2010 at 10:30 PM, gulfam murad gulfam.mu...@gmail.com
  wrote:
 
   Thanks Rob!
  
   So, if we used embedded language transforms to support MUI (
   http://www.installsite.org/pages/en/msi/articles/embeddedlang/). And
  there
   is a bug in one of the language transforms (e.g. ServiceInstall table
 has
   some wrong information), what are my options to resolve this issue?
  Thanks
   a
   lot.
  
   Best Regards,
   Gulfam Murad
  
   On Thu, Jul 8, 2010 at 12:45 AM, Rob Mensching r...@robmensching.com
   wrote:
  
You can add temporary rows with a custom action. That and setting
Properties
are the only mutations allowed that I'm aware of.
   
On Wed, Jul 7, 2010 at 8:15 PM, gulfam murad gulfam.mu...@gmail.com
 
wrote:
   
 Hi All,

 Is there a way to apply a transform during package installation
  (using
 custom action, for example). Or how can I change msi tables during
runtime
 (during installation).

 p.s. I understand this is not directly a wix related question, I
 will
 appreciate any response. Thanks.

 Best Regards,
 Gulfam Murad

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



 --
 HasbonAllah hu wa nae'mal wakeel

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




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


Re: [WiX-users] how to select the previously installed features by default while upgrading

2010-07-08 Thread Peter Shirtcliffe
Ensure your installExecuteSequence in the new installer contains a
MigrateFeatureStates element. This element corresponds directly with the
MigrateFeatureStates action.
http://wix.sourceforge.net/manual-wix3/wix_xsd_migratefeaturestates.htm
http://msdn.microsoft.com/library/aa370034.aspx


-Original Message-
From: Sanjay Rao [mailto:s...@noida.interrasystems.com] 
Sent: 08 July 2010 13:45
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] how to select the previously installed features by
default while upgrading

Hi,

I have a installer which has three independent  features. user can
select any of them.
when user upgrades to newer version, how can I select only those
features which were installed with previous version ?

Regards,
Sanjay Rao




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


Re: [WiX-users] Require reboot before re-installation

2010-07-08 Thread Samuel Larsen
Hmmm.  That was a good idea, but no, it looks like the 
PendingFileRenameOperations key is not even present in the registry after the 
uninstall.  I think the overall approach of checking the registry will work for 
me, however.  We have some registry entries specific to our driver that aren't 
removed after an uninstall until a reboot.  If anyone has any more ideas, I'd 
still like to understand how and why the system removes the re-installed files 
at the next reboot.

thanks,
- Sam

 Hi,
 Does the driver uninstall put an entry into PendingFileRenameOperations
 in the registry?
 http://technet.microsoft.com/en-us/library/cc960241.aspx
 
 If so you could check this key is clean before running the install, I
 have implmemented this in the past.
 
 Dave
 
 -Original Message-
 From: Samuel Larsen [mailto:slar...@vmware.com]
 Sent: 07 July 2010 17:55
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Require reboot before re-installation
 
 Could someone suggest a method for forcing a reboot after an uninstall
 before another install is permitted?  I have the following problem: My
 installer installs a device driver.  An uninstall correctly removes the
 driver from the filesystem.  If I re-install before rebooting, the
 re-installation seems to go smoothly and the driver is re-installed.
 On
 the next reboot, however, it looks like the driver is removed from the
 filesystem, which ultimately causes a crash.  I don't understand the
 mechanism for this deletion.  It seems that the uninstall marks the
 file
 for delete on the next boot and this 'flag' is not cleared when the
 file
 is replaced during the installation.  One workaround would be to
 prevent
 re-installation after uninstall until there is a reboot.  Can anyone
 offer any advice?
 
 thanks,
 - Sam

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


Re: [WiX-users] Require reboot before re-installation

2010-07-08 Thread Michael Urman
If you target MSI 4.0 or later, you might see this reflected in the
MsiSystemRebootPending property. The MSDN page for this property
suggests authoring it into a launch condition.


On Thu, Jul 8, 2010 at 10:08, Samuel Larsen slar...@vmware.com wrote:
 Hmmm.  That was a good idea, but no, it looks like the 
 PendingFileRenameOperations key is not even present in the registry after the 
 uninstall.  I think the overall approach of checking the registry will work 
 for me, however.  We have some registry entries specific to our driver that 
 aren't removed after an uninstall until a reboot.  If anyone has any more 
 ideas, I'd still like to understand how and why the system removes the 
 re-installed files at the next reboot.

 thanks,
 - Sam

 Hi,
 Does the driver uninstall put an entry into PendingFileRenameOperations
 in the registry?
 http://technet.microsoft.com/en-us/library/cc960241.aspx

 If so you could check this key is clean before running the install, I
 have implmemented this in the past.

 Dave

 -Original Message-
 From: Samuel Larsen [mailto:slar...@vmware.com]
 Sent: 07 July 2010 17:55
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Require reboot before re-installation

 Could someone suggest a method for forcing a reboot after an uninstall
 before another install is permitted?  I have the following problem: My
 installer installs a device driver.  An uninstall correctly removes the
 driver from the filesystem.  If I re-install before rebooting, the
 re-installation seems to go smoothly and the driver is re-installed.
 On
 the next reboot, however, it looks like the driver is removed from the
 filesystem, which ultimately causes a crash.  I don't understand the
 mechanism for this deletion.  It seems that the uninstall marks the
 file
 for delete on the next boot and this 'flag' is not cleared when the
 file
 is replaced during the installation.  One workaround would be to
 prevent
 re-installation after uninstall until there is a reboot.  Can anyone
 offer any advice?

 thanks,
 - Sam

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


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


Re: [WiX-users] Creating a patch with the Visual Studio plugin

2010-07-08 Thread Coates, Anthony
Sorry, perhaps I didn't explain. We are not using MSBuild directly to
create the installation, rather, we are using the VS plugin to enable
the Wix projects to be part of the solution that is built by the TFS
build. We now have a number of components that need patching from the
original msi, this doesn't need to be automated as part of a TFS build.

On the basis that we have never directly used the Wix tools (candle
etc.) I have been trying to follow the patch example from the wix
helpfile to see if I can use this as a basis for creating the patch...

# Build the target layout
candle.exe -dVersion=1.0 product.wxs
light.exe product.wixobj -out 1.0\product.msi

# Build the upgrade layout
candle.exe -dVersion=1.1 product.wxs
light.exe product.wixobj -out 1.1\product.msi

# Create the transform between your products
torch.exe -p -xi 1.0\product.wixpdb 1.1\product.wixpdb -out
patch\diff.wixmst

# Build the patch
candle.exe patch.wxs
light.exe patch.wixobj -out patch\patch.wixmsp
pyro.exe patch\patch.wixmsp -out patch\patch.msp -t RTM
patch\diff.wixmst


Because we use VS project references (e.g. $(var.projectname.ProjectDir)
) in the wix source file I cannot run candle against our wix file, and
it's not a simple thing to alter this as we have 80+ projects in the
solution, hence there are a lot of VS references. Additionally, as the
builds are automated we don't have the .wixobj files to run light
against. We do have the .wixpdb file from the build so I tried running
torch to create a transform against 2 copies of this file in 2 different
folders (a pretty vain attempt I admit) but as there was no differences
when I ran pyro it gave an error.

Looking at the example the only differences seemed to be the version
number from running candle and the output location from light, but this
seems to have been enough for the transform to be different (unless I'm
missing something?). My only guess is to try and edit one of the .wixobj
files in a similar way, but this doesn't seem to be the right way I
should be going about it, which is why, as we have been able to use a VS
plugin to create our original msi, I wondered if there was a way of
using this to create a patch. Alternatively, is there a better model I
could follow than that from the helpfile?

Thanks
Anthony



-Original Message-
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: 08 July 2010 15:35
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Creating a patch with the Visual Studio plugin

Unfortunately, we don't have MSBuild Tasks for the patching system, yet.
Of
course, all the tools will work fine in MSBuild... just need to do a bit
more work yourself right now.

On Thu, Jul 8, 2010 at 4:34 AM, Coates, Anthony 
anthony.coa...@northgate-is.com wrote:

 We are using Wix projects in Visual Studio (VS2008  wix 3) to create
 MSIs as part of an automated build process run by TFS. We now wish to
 create a patch of the original msi. Is this possible either directly
 through the VS plugin or by using the command line tools, as we use VS
 project references in the wix source files.



 Thanks

 Anthony







-
 This email is sent on behalf of Northgate Information Solutions
Limited and
 its associated companies (Northgate) and is strictly confidential
and
 intended solely for the addressee(s).

 If you are not the intended recipient of this email you must: (i) not
 disclose, copy or distribute its contents to any other person nor use
its
 contents in any way or you may be acting unlawfully;  (ii) contact
Northgate
 immediately on +44 (0)1442 232424 quoting the name of the sender and
the
 addressee then delete it from your system.

 Northgate has taken reasonable precautions to ensure that no viruses
are
 contained in this email, but does not accept any responsibility once
this
 email has been transmitted.  You should scan attachments (if any) for
 viruses.

 Northgate Information Solutions Limited. Registered in England no.
06442582
  -  Northgate Information Solutions UK Limited. Registered in England
no.
 968498  -  NorthgateArinso UK Limited .Registered in England no.
1587537  -
  Moorepay Limited.  Registered in England no. 891686  - First Business
 Support Limited. Registered in England no. 3056267 -  Registered
Office:
 Peoplebuilding 2, Peoplebuilding Estate, Maylands Avenue, Hemel
Hempstead,
 Hertfordshire HP2 4NW

 Northgate Managed Services Limited (NI).  Registered in Northern
Ireland
 no. NI032979  -  LearnServe Limited (NI).  Registered in Northern
Ireland
 no. NI043825
 Registered Office: Hillview House, 61 Church Road, Newtownabbey, Co.
 Antrim, BT36 7LQ




-



--
 This SF.net email is sponsored by Sprint
 What will you do first with EVO, the first 4G 

Re: [WiX-users] Changing a Global property in a custom action is not immediately affecting the installer

2010-07-08 Thread Blair
This has been discussed in this list many times before. You need to set your
property to the new value of the property when the action returns before
using it in the dialog.

Control Type=PushButton Id=Validate Width=56 Height=17 X=234
Y=243
  TextValidate/Text
  Condition Action=disable
![CDATA[VALIDATED = 1 ]]
  /Condition
  Publish Event=DoAction
Value=ConfirmationCustomAction1/Publish
  Publish Property=VALIDATED Value=[VALIDATED]1/Publish
  Publish Event=SpawnDialog
Value=InvalidConfigDlg![CDATA[VALIDATED  1 ]]/Publish  
/Control

-Original Message-
From: Stelios Kyprou [mailto:stelios.kyp...@formicary.net] 
Sent: Thursday, July 08, 2010 7:03 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Changing a Global property in a custom action is not
immediately affecting the installer

Hello!

I have a custom action setting a Global property in the following way:
session[VALIDATED] = 1;

This CA is called when a user clicks a Validate button in a dialog.
The control is as follows:

Control Type=PushButton Id=Validate Width=56 Height=17 X=234
Y=243
  TextValidate/Text
  Condition Action=disable
![CDATA[VALIDATED = 1 ]]
  /Condition
  Publish Event=DoAction
Value=ConfirmationCustomAction1/Publish
  Publish Event=SpawnDialog
Value=InvalidConfigDlg![CDATA[VALIDATED  1 ]]/Publish  
/Control

Now i have a Next button in the same dialog, which is initially Disabled,
and gets enabled when the VALIDATED
property get's set to 1:

Control Type=PushButton Id=Next Width=56 Height=17 X=308 Y=243
Default=no
  TextNext/Text
  Condition Action=disable
![CDATA[VALIDATED  1 ]]
  /Condition
  Condition Action=enable
![CDATA[VALIDATED = 1 ]]
  /Condition
  Publish Event=EndDialog Value=Return/
/Control

Initially the Property VALIDATE is set to 0.

Now when i run the installer, and i click Validate, i can see in the log
files that the Property VALIDATE is set to 1
(PROPERTY CHANGE: Modifying VALIDATED property. Its current value is '0'.
Its new value: '1'.
Action ended 14:38:57: ConfirmationCustomAction. Return value 1.),
but when the custom action returns ActionResult.Success,
the Next button is still Disabled. 

I have a bunch of edit boxes in my dialog, each one representing a Property.

A senario that i realised that i can enable the Next button is:

1) I fill in all the edit boxes
2) I click Validate
3) The CA returns ActionResult.Success (Next button STILL disabled)
4) I re-edit an edit box
5) When i re-edit, the next button get's enabled. (and Validate get's
disabled)

Any ideas why this is happening?
Under normal circumstances, when the CA ends and is successfull, the Next
button should get enabled.

Thanks in advance, 
Stelios

-- 
Stelios Kyprou
Systems Engineer
Formicary - delivering quality financial technology solutions(TM)
www.formicary.net




This message is confidential and may be privileged. It is intended solely
for
the named addressee. If you are not the intended recipient, please inform
us.
Any unauthorised dissemination, distribution or copying hereof is
prohibited.

Formicary Limited registered office in England and Wales, address 1 Taillar
Road, Hedon, East Yorkshire HU12 8GU, registration number 3894343, VAT
number
747644304, does not guarantee that the integrity of this communication has
been
maintained nor that this communication is free of viruses, interceptions or
interference.


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


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


Re: [WiX-users] Dynamic directory creation

2010-07-08 Thread Blair
You can use either a DTF custom action or C/C++ in a custom action dll to
create the temporary rows. If you use C/C++, I recommend using the WCA
library that ships with WiX. Either way, you are making a custom action.

-Original Message-
From: Keith Hassen [mailto:keith.has...@gmail.com] 
Sent: Thursday, July 08, 2010 7:17 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Dynamic directory creation

Well this sounds promising.  The only trouble I'm having with this is
how to dynamically add to the DuplicateFile Table (or the Directory
Table for that matter).  I realize I can use the CopyFile node to author
to the table, but I won't know the number of directories to copy to
until the installation is run: the user responds with 10 for the
number of directories to replicate, which requires that I then issue 10
CopyFile statements.  I don't have this information in advance.

So maybe I'm stuck with DTF after all?

K



[ Original Message ]
*Date:* 7/7/2010 10:43:42 AM
*From:* os...@live.com
*To:*   wix-users@lists.sourceforge.net
*CC:*   
*Subject:*  Re: [WiX-users] Dynamic directory creation

 My recommendation would be to add an immediate custom action in the
 InstallExecuteSequence table before CostInitialize that adds temporary
 rows to the DuplicateFile table and temporary rows to the Directory
table.
 You would also need the following authoring:

 InstallExecuteSequence
   DuplicateFiles/
 /InstallExecuteSequence

 EnsureTable Id=DuplicateFile/

 You should also save the parameters for your custom action so that they
can
 be retrieved when repairing or uninstalling so your dynamic directories
can
 be cleaned up/upgraded as appropriate.

 See http://www.joyofsetup.com/2007/07/01/semi-custom-actions/ for the
 concept of using native functionality to do non-native things. This tends
to
 be much more authorable and reliable than trying to implement deferred
 actions and getting rollback, etc. working in every case of repair,
install,
 removal, both kinds of upgrade, etc.

 Such an immediate action can be tested using Lux as well, so you get
 testability as a bonus.

 -Original Message-
 From: Keith Hassen [mailto:keith.has...@gmail.com] 
 Sent: Wednesday, July 07, 2010 6:03 AM
 To: wix-users@lists.sourceforge.net
 Subject: [WiX-users] Dynamic directory creation

 Hi,

 I am faced with a problem of building an MSI that requires a set of
 directories to be created during installation.  These directories are
 all prefixed with a common string (eg folder) followed by a sequence
 number (eg 01) so that their final construction might be something
 like folder01, folder02, etc.  I need to place the same executable
 in each of these generated directories, but the number of directories
 isn't known until install time.  I would like to prompt the user for
 that number during the setup and then dynamically build the directories.

 My original assumption was that WiX simply couldn't do this task because
 of the dynamic nature of the problem.  I assumed that I'd have to write
 a batch script that would do this work for me: my approach was to always
 generate 1 directory, and then use a CA to invoke a batch script that
 would copy the directory as many times as was needed.

 I thought I'd post this problem to this list to see if there were other
 solutions (using WiX or otherwise) that might be cleaner or more
effective.


 Keith



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




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

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


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

[WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Nick Ramirez

Hello all,

I've gotten pretty far (I think) in creating a compiler extension. So far,
my extension is a .dll that can be included in my WiX MSI project. After
including the extension, I can see my new element in Visual Studio and can
add attributes to it. When I use it, a new custom table is created in the
MSI. 

I've created a .wixlib project and embedded it inside my extension. In that
.wixlib, I've defined a C# DTF custom action. It's simple. It just reads my
custom table and shows a messagebox with the values from it. 

However, so far, I can't get my installer to recognize the custom action (or
anything else in the .wixlib) when I include my extension and use one of its
elements. 

In my extension, I'm using this code to pull the .wixlib in:


public override TableDefinitionCollection TableDefinitions
{
   get
   {
  if (this.tableDefinitions == null)
  {
 this.tableDefinitions = LoadTableDefinitionHelper(
Assembly.GetExecutingAssembly(),
MyWixExtension.Tables.MyWixTable.xml);
  }

  return this.tableDefinitions;
   }
}


Do I need to do anything else?

Thanks for any help!


-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Compiler-extension-how-to-include-a-custom-action-tp5271086p5271086.html
Sent from the wix-users mailing list archive at Nabble.com.

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


Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Nick Ramirez

Oops. Sorry. I posted the wrong part of the code. Here's the part that I use
to register the .wixlib:


public override Library GetLibrary(TableDefinitionCollection
tableDefinitions)
{
   if (this.library == null)
   {
  this.library = LoadLibraryHelper(
 Assembly.GetExecutingAssembly(), 
 SuperWixExtension.SuperWixExtensionLibrary.wixlib, 
 tableDefinitions);
   }

   return this.library;
}

Thank,
Nick
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Compiler-extension-how-to-include-a-custom-action-tp5271086p5271098.html
Sent from the wix-users mailing list archive at Nabble.com.

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


Re: [WiX-users] Changing a Global property in a custom action is not immediately affecting the installer

2010-07-08 Thread Stelios Kyprou
Thanks for that!
Should have searched the mail archives before posting this question ;P

Blair wrote:
 This has been discussed in this list many times before. You need to set your
 property to the new value of the property when the action returns before
 using it in the dialog.

 Control Type=PushButton Id=Validate Width=56 Height=17 X=234
 Y=243
   TextValidate/Text
   Condition Action=disable
 ![CDATA[VALIDATED = 1 ]]
   /Condition
   Publish Event=DoAction
 Value=ConfirmationCustomAction1/Publish
   Publish Property=VALIDATED Value=[VALIDATED]1/Publish
   Publish Event=SpawnDialog
 Value=InvalidConfigDlg![CDATA[VALIDATED  1 ]]/Publish  
 /Control

 -Original Message-
 From: Stelios Kyprou [mailto:stelios.kyp...@formicary.net] 
 Sent: Thursday, July 08, 2010 7:03 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] Changing a Global property in a custom action is not
 immediately affecting the installer

 Hello!

 I have a custom action setting a Global property in the following way:
 session[VALIDATED] = 1;

 This CA is called when a user clicks a Validate button in a dialog.
 The control is as follows:

 Control Type=PushButton Id=Validate Width=56 Height=17 X=234
 Y=243
   TextValidate/Text
   Condition Action=disable
 ![CDATA[VALIDATED = 1 ]]
   /Condition
   Publish Event=DoAction
 Value=ConfirmationCustomAction1/Publish
   Publish Event=SpawnDialog
 Value=InvalidConfigDlg![CDATA[VALIDATED  1 ]]/Publish  
 /Control

 Now i have a Next button in the same dialog, which is initially Disabled,
 and gets enabled when the VALIDATED
 property get's set to 1:

 Control Type=PushButton Id=Next Width=56 Height=17 X=308 Y=243
 Default=no
   TextNext/Text
   Condition Action=disable
 ![CDATA[VALIDATED  1 ]]
   /Condition
   Condition Action=enable
 ![CDATA[VALIDATED = 1 ]]
   /Condition
   Publish Event=EndDialog Value=Return/
 /Control

 Initially the Property VALIDATE is set to 0.

 Now when i run the installer, and i click Validate, i can see in the log
 files that the Property VALIDATE is set to 1
 (PROPERTY CHANGE: Modifying VALIDATED property. Its current value is '0'.
 Its new value: '1'.
 Action ended 14:38:57: ConfirmationCustomAction. Return value 1.),
 but when the custom action returns ActionResult.Success,
 the Next button is still Disabled. 

 I have a bunch of edit boxes in my dialog, each one representing a Property.

 A senario that i realised that i can enable the Next button is:

 1) I fill in all the edit boxes
 2) I click Validate
 3) The CA returns ActionResult.Success (Next button STILL disabled)
 4) I re-edit an edit box
 5) When i re-edit, the next button get's enabled. (and Validate get's
 disabled)

 Any ideas why this is happening?
 Under normal circumstances, when the CA ends and is successfull, the Next
 button should get enabled.

 Thanks in advance, 
 Stelios

   

-- 
Stelios Kyprou
Systems Engineer
Formicary - delivering quality financial technology solutions(TM)
www.formicary.net



This message is confidential and may be privileged. It is intended solely for
the named addressee. If you are not the intended recipient, please inform us.
Any unauthorised dissemination, distribution or copying hereof is prohibited.

Formicary Limited registered office in England and Wales, address 1 Taillar
Road, Hedon, East Yorkshire HU12 8GU, registration number 3894343, VAT number
747644304, does not guarantee that the integrity of this communication has been
maintained nor that this communication is free of viruses, interceptions or
interference.


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


Re: [WiX-users] Editing config files after installation

2010-07-08 Thread Stelios Kyprou
Thanks Pally,

I figured it out now...
I didn't know that there is a strict format on using XMLConfig
i.e i thought that by ommiting On='install' would still work. But that's 
not the case!

Just in case anyone is wondering here is how i made it work:

util:XmlConfig Id='FileServerBasePath'
On='install'
Action='create'
Sequence='1'
File='[#file_id HERE]'

ElementPath=//configuration/appSettings/add[...@key='FileServerBasePath'[\]]
Node=value
Name=value
Value='TestModification'/

This for example will:
-access the file with id: file_id HERE
-locate the element add under the element appSettings which has an 
attribute key and it's value is FileServerBasePath
-get that element's attribute called value, and change the value of 
that to: TestModification

Before:
?xml version=1.0?
configuration
appSettings
add key=FileServerBasePath value=BeforeValue/
/appSettings
/configuration

After:
?xml version=1.0?
configuration
appSettings
add key=FileServerBasePath value=TestModification/
/appSettings
/configuration

Pally Sandher wrote:
 XMLConfig  XMLFile don't make changes in the InstallUISequence, only in
 the InstallExecuteSequence so using the contents of Properties from the
 UI sequence should be fine. Are you setting your Properties to be
 Secure? If you want to pass information in Properties from the
 InstallUISequence to the InstallExecuteSequence you need to set
 Secure=yes on those Properties. If you're using XMLFile with
 Action=SetValue you should be able to use Properties in the Value
 attribute as it is of the Formatted type according to the documentation.

 Personally I prefer to use XMLConfig for modifying files I'm putting on
 the target machine but if you paste your code for your XMLFile Element 
 the appropriate Properties (and what you expect them to contain) myself
 or others on the list may be able to see where the problem lies or give
 suggestions on using XMLConfig.

 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: Stelios Kyprou [mailto:stelios.kyp...@formicary.net] 
 Sent: 07 July 2010 13:23
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] Editing config files after installation

 The file is installed by the installer, so i can use [#foo.config].
 When i thought of doing this approach (XMLConfig || XMLFile), i got
 stuck because:
 I want to do the foo.config editing after a specific dialog, i.e
 EnterConfigurationDlg, so that i can grab the PROPERTIES from that
 dialog and put them in foo.config.

 Following the WiX tutorial at:
 http://www.tramontana.co.hu/wix/lesson6.php#6.10
 did not really help with my senario...

 Any ideas?

 Stelios

 Pally Sandher wrote:
   
 If the file is installed as part of your installation you can simply 
 use it's Id as a Property e.g. [#foo.config] if you set 
 Id=foo.config in it's File element (see - 
 http://msdn.microsoft.com/en-us/library/aa368609.aspx). Use that 
 Property as the path for either XMLConfig or XMLFile to make your 
 changes to the file.

 If it's put on the target machine by some other means  you can locate
 

   
 the file using normal methods such as RegistrySearch 
 (http://wix.sourceforge.net/manual-wix3/wix_xsd_registrysearch.htm),
 DirectorySearch
 (http://wix.sourceforge.net/manual-wix3/wix_xsd_directorysearch.htm) 
 or FileSearch
 (http://wix.sourceforge.net/manual-wix3/wix_xsd_filesearch.htm) then 
 do so to set your Property for XMLConfig/XMLFile. You will need no 
 Custom Actions in either of these cases which should make your code 
 much more resilient.

 If you can't locate the file using normal methods then a Custom Action
 

   
 which sets a Property containing the path to the file is your only 
 option.

 How is this file installed on the target system initially? If it's by 
 another product you can usually use a RegistrySearch to find something
 

   
 like the InstallLocation  extrapolate the rest of the path from
 
 there.
   
 If you're really lucky  the other products authors thought about this
 

   
 ahead of time there may be a standard registry key set by their 
 installer for you to grab the location from.

 Avoid using Custom Actions unless you have no other option.

 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** 
 

[WiX-users] Using Heat.exe

2010-07-08 Thread FrankenInUSA
Hi,

I'm using 'heat.exe' to 'harvest' a directory with several hundred small 
files and some twenty DLLs.

- how long is that supposed to take? Currently it's running for 5hrs and 
still not done.
- When it starts, it uses up to 45MB for a while. Now it's down to 
450KB. Is that normal?

Here is the command line:
 heat.exe dir directory -v -gg -nologo -sw5150 -out ourproduct.wxs

I thought the -v would generate more information on what it is doing, 
but I get nothing after the DLLs are processed.
Is there a way to see, what it is doing?
-- 

Best regards,

  Andreas mailto:frankenin...@gmail.com


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


Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Neil Sleightholm
No an answer but have you seen this: http://wixcontrib.codeplex.com/, it
taught me quite a lot about writing an extension.

Neil

-Original Message-
From: Nick Ramirez [mailto:nickra...@hotmail.com] 
Sent: 08 July 2010 18:13
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Compiler extension - how to include a custom
action?


Oops. Sorry. I posted the wrong part of the code. Here's the part that I
use
to register the .wixlib:


public override Library GetLibrary(TableDefinitionCollection
tableDefinitions)
{
   if (this.library == null)
   {
  this.library = LoadLibraryHelper(
 Assembly.GetExecutingAssembly(), 
 SuperWixExtension.SuperWixExtensionLibrary.wixlib, 
 tableDefinitions);
   }

   return this.library;
}

Thank,
Nick
-- 
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Compiler-e
xtension-how-to-include-a-custom-action-tp5271086p5271098.html
Sent from the wix-users mailing list archive at Nabble.com.


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

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


Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Blair
Did you run the extension in the debugger and verify that it was really
returning an object (and not null)?

-Original Message-
From: Nick Ramirez [mailto:nickra...@hotmail.com] 
Sent: Thursday, July 08, 2010 10:13 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Compiler extension - how to include a custom
action?


Oops. Sorry. I posted the wrong part of the code. Here's the part that I use
to register the .wixlib:


public override Library GetLibrary(TableDefinitionCollection
tableDefinitions)
{
   if (this.library == null)
   {
  this.library = LoadLibraryHelper(
 Assembly.GetExecutingAssembly(), 
 SuperWixExtension.SuperWixExtensionLibrary.wixlib, 
 tableDefinitions);
   }

   return this.library;
}

Thank,
Nick
-- 
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Compiler-exten
sion-how-to-include-a-custom-action-tp5271086p5271098.html
Sent from the wix-users mailing list archive at Nabble.com.


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


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


Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Nick Ramirez

Thanks Blair and Neil for the help. I looked at the extension you gave a link
to, Neil, but I'm not able to see anything that they have that I don't. I'm
sure there's a piece to the puzzle I'm missing.

At the risk of sounding completely clueless, how does one debug an extension
project? It seems that the GetLibrary function's parameters are populated by
Candle. Do I debug Candle somehow? And then how do I get it to use my
extension outside of an installer project?

Thanks!
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Compiler-extension-how-to-include-a-custom-action-tp5271086p5271955.html
Sent from the wix-users mailing list archive at Nabble.com.

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


Re: [WiX-users] Using Heat.exe

2010-07-08 Thread Brian Rogers
Actually, heat.exe does look for certain file types such as
ax/dll/ocx/tlb/exe/olb. The code is in the UtilHarvesterMutator.cs file.

Your running time does seem awful slow. If the files are located on disk I
have seem much higher performance than the numbers you listed. I don't see a
problem with the 45MB to start as heat is building a collection of WiX
objects to go and sift through.

I would say that overall machine speed would have a large impact on heat.
The group I am is using heat for over 250K files and we aren't seeing nearly
that much of a slow response.

Thanks,

Brian Rogers
Intelligence removes complexity. - Me
http://blogs.msdn.com/icumove


On Thu, Jul 8, 2010 at 12:23 PM, Blair os...@live.com wrote:

 Heat does not use file extensions to determine file types, so each of those
 several hundred files is being processed as if they were binaries.

 -Original Message-
 From: FrankenInUSA [mailto:frankenin...@gmail.com]
 Sent: Thursday, July 08, 2010 11:32 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: [WiX-users] Using Heat.exe

 Hi,

 I'm using 'heat.exe' to 'harvest' a directory with several hundred small
 files and some twenty DLLs.

 - how long is that supposed to take? Currently it's running for 5hrs and
 still not done.
 - When it starts, it uses up to 45MB for a while. Now it's down to
 450KB. Is that normal?

 Here is the command line:
  heat.exe dir directory -v -gg -nologo -sw5150 -out ourproduct.wxs

 I thought the -v would generate more information on what it is doing,
 but I get nothing after the DLLs are processed.
 Is there a way to see, what it is doing?
 --

 Best regards,

  Andreas mailto:frankenin...@gmail.com



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



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

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


Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Neil Sleightholm
Where is your wixlib located? Is it in the root of your project? 

I my extension the wixlib is in a Data folder, so the full path is
MyNamespace.Data.Filename.wixlib.

From your I would expect your namespace to be SuperWixExtension and
the filename SuperWixExtensionLibrary.wixlib located in the root of
your project.

Hope this helps.

Neil

-Original Message-
From: Nick Ramirez [mailto:nickra...@hotmail.com] 
Sent: 08 July 2010 18:13
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Compiler extension - how to include a custom
action?


Oops. Sorry. I posted the wrong part of the code. Here's the part that I
use
to register the .wixlib:


public override Library GetLibrary(TableDefinitionCollection
tableDefinitions)
{
   if (this.library == null)
   {
  this.library = LoadLibraryHelper(
 Assembly.GetExecutingAssembly(), 
 SuperWixExtension.SuperWixExtensionLibrary.wixlib, 
 tableDefinitions);
   }

   return this.library;
}

Thank,
Nick
-- 
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Compiler-e
xtension-how-to-include-a-custom-action-tp5271086p5271098.html
Sent from the wix-users mailing list archive at Nabble.com.


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

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


Re: [WiX-users] Compiler extension - how to include a custom action?

2010-07-08 Thread Nick Ramirez

Oookay. So, now it's one of those situations where it didn't work and
magically...it does! What did I do? I messed around with flags for lit.exe,
removed them, changed things back to what they were orginally...rebuilt
everything and it worked. So, same code, different result. I'm not sure. I
think I'll try everything from scratch with a new solution and see what
happens. Thanks for the help!
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Compiler-extension-how-to-include-a-custom-action-tp5271086p5272081.html
Sent from the wix-users mailing list archive at Nabble.com.

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


Re: [WiX-users] Problems launching an application on finish

2010-07-08 Thread Sascha Beaumont
Try this... the user will see a UAC prompt, same as if the application
was manually launched. There's no way around this, but our users have
never complained.

Fragment
CustomAction Id=SetElevatedAppTarget
Property=WixShellExecTarget Value=[#ElevatedApp.exe] /
CustomAction Id=LaunchElevatedApp BinaryKey=WixCA
DllEntry=WixShellExec Impersonate=yes /
UI Id=Activation
Publish Dialog=NitroExitDialog Control=Finish 
Event=DoAction
Value=SetElevatedAppTarget
![CDATA[NOT Installed]]
/Publish
Publish Dialog=NitroExitDialog Control=Finish 
Event=DoAction
Value=LaunchElevatedApp
![CDATA[NOT Installed]]
/Publish
/UI
/Fragment



On Thu, Jul 8, 2010 at 4:29 PM, Thomas Due t...@scanvaegt.dk wrote:
 So what is the conclusion? That what I am trying is basically impossible?

 MSI will not launch an elevated process except as a deferred custom
 action and you can't use those from the UI.

 I read that as a yes.

 So, what is my options then? I will of course attempt the solution that 
 Palbinder Sandher suggested, but is that really the only solution?

 I have run out of time on the subject for the time being, so I have to resign 
 to the fact that people have to run the application manually on Windows Vista 
 and 7.
 But since I will be returning to the subject, I just want to know If the 
 custom action described in the manual is the only (possibly) way?

 In any event, thank you for your time.

 Med venlig hilsen / Best regards,
 Thomas Due - Software Developer
 Tel: +45 8678 5500 Fax: +45 8678 5210
 Johann Gutenbergs vej 5-9, Aarhus N, Denmark
 t...@scanvaegt.dk | www.scanvaegt.dk


 This e-mail and its attachments are intended for the named addressee only and 
 may contain information that is confidential and privileged. Unauthorized use 
 can instigate a claim for damages and constitute a criminal offence. If you 
 received this in error, please contact the sender and delete the material.



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


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


Re: [WiX-users] VS2010 automated build

2010-07-08 Thread John Robbins
As promised, here's an updated version of Paraffin that offers a new switch, 
-regExExclude to perform regular expression exclusions on files and 
directories. Here's all the detail: 
http://www.wintellect.com/CS/blogs/jrobbins/archive/2010/07/09/paraffin-3-13-and-an-ask-for-help.aspx.

Hope you find it useful!

-Original Message-
From: John Robbins [mailto:j...@wintellect.com] 
Sent: Friday, July 02, 2010 4:23 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] VS2010 automated build

Good points! I'm adding a regular expression exclude switch that'll make 
excluding .*\.vshost.exe easy. I probably should have had the option in the 
beginning. :)

I'll post back when I get the feature done.

-Original Message-
From: James Green [mailto:james.gr...@lalpac.com]
Sent: Thursday, July 01, 2010 5:07 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] VS2010 automated build

I was just about to ask the same question!

-Original Message-
From: wix-users-boun...@lists.sourceforge.net
[mailto:wix-users-boun...@lists.sourceforge.net] On Behalf Of Stelios 
Kyprou
Sent: 01 July 2010 12:59
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] VS2010 automated build

Good stuff!
@John:
A Paraffin question:
What if i want to exclude files lets say with extension: .vshost.exe, 
but not .exe files?
I think i am not able to do that am i?

Stelios

LalPac Limited registered in England No: 4211747

Partner in Licensing to over 120 UK local government authorities.

Temple Court, 8 The Causeway, Chippenham, Wiltshire, SN15 3BT, UK.
Tel: +44 (0)1249 660088Fax: +44 (0)1249 660099 - Technical Support: +44
(0)1249 462542
Web: www.lalpac.com - Email: i...@lalpac.com

This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they are 
addressed.
If an addressing or transmission error has misdirected this e-mail, 
please notify the author by replying to this e-mail. If you are not the 
intended recipient you may not use, disclose, distribute, copy, print 
or rely on this e- mail.

Opinions advice, conclusions and other information in this message that 
do not relate to the official business of LalPac Ltd shall be 
understood as neither given nor endorsed by it or on its behalf, and 
consequently LalPac Ltd shall bear no responsibility whatsoever in respect 
thereof.

This e-mail and any attachments have been checked by anti-virus 
software and are believed to be free of viruses but it is your 
responsibility to carry out all necessary virus checks and LalPac Ltd 
accepts no liability in connection therewith.

The Company actively monitors all incoming and outgoing e-mails to 
ensure a satisfactory level of customer service is maintained, to 
maintain Company security, and to prevent abuse of the Company systems.

Please do not print this e-mail unless absolutely necessary - SAVE 
PAPER


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

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

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