Re: [WiX-users] CertificatePath in Certificate element does not work

2011-07-14 Thread mylan
Hi boB,

thanks a lot for the hint. Now it works for me!

I'm new in the wix user group, so I don't know how to file a bug?

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CertificatePath-in-Certificate-element-does-not-work-tp6579192p6582461.html
Sent from the wix-users mailing list archive at Nabble.com.

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] CertificatePath in Certificate element does not work

2011-07-14 Thread Rob Mensching
http://wix.sourceforge.net/ link on the right to the bug database:
http://sourceforge.net/tracker/?group_id=105970atid=642714
On Thu, Jul 14, 2011 at 2:11 AM, mylan t.d...@gmx.net wrote:

 Hi boB,

 thanks a lot for the hint. Now it works for me!

 I'm new in the wix user group, so I don't know how to file a bug?

 --
 View this message in context:
 http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/CertificatePath-in-Certificate-element-does-not-work-tp6579192p6582461.html
 Sent from the wix-users mailing list archive at Nabble.com.


 --
 AppSumo Presents a FREE Video for the SourceForge Community by Eric
 Ries, the creator of the Lean Startup Methodology on Lean Startup
 Secrets Revealed. This video shows you how to validate your ideas,
 optimize your ideas and identify your business strategy.
 http://p.sf.net/sfu/appsumosfdev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
virtually, Rob Mensching - http://RobMensching.com LLC
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] unsubscribe

2011-07-14 Thread Ivo Stoyanov

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Creating a hotfix patch for an installer built with VS

2011-07-14 Thread Wilson, Phil
Creating an MSI that just replaced that file with a higher version will work as 
long as the component guid is the same. Visual Studio setups don't expose 
Component guids, so I'd guess that the component guids are not the same, that 
would explain it. 

Phil Wilson 

-Original Message-
From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] 
Sent: Wednesday, July 13, 2011 1:59 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Creating a hotfix patch for an installer built with 
VS

By the sound of it you created an MSI that contains only your hotfixed file ?
That would explain the behaviour you're seeing.

You could make:
Major upgrade
Hotfix patch
There's a minor update but it probably won't give you any advantages over a
major upgrade.

The easiest, if you have the original installer's source code, is to make a
Major upgrade. A major upgrade automatically removes the old version and
replaces it with the new one. However when you remove the new version, the
old version isn't reinstalled.

If you want a small update patch (.msp), this is more difficult to write and
requires that the Windows Installer rules are followed more closely in the
original and new installers. The patch can be removed to get back to the
original installation state.

There are some rules you have to follow for the different update types which
are documented in the MSDN
http://msdn.microsoft.com/en-us/library/aa370579%28v=VS.85%29.aspx
If you're making a major upgrade then you can have Wix write the upgrade
table entries for you using the MajorUpgrade 
element.

1. Yes you can with the Permanent attribute but it would be a bad way to fix
your problem.
2. If you create one of the two update types, the files will all uninstall
correctly.

-Original Message-
From: Ben Peikes [mailto:bpei...@gargoylestrategic.com] 
Sent: 12 July 2011 18:42
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Creating a hotfix patch for an installer built with VS

We have an old project whose installer was built using VS. I need to
replace one of the files, so I want to create an installer with WIX
which just installs a single file. The hotfix installer I've created
works fine when installed, but when it gets uninstalled, it removes the
file. I'd like it to replace the file that it updated when uninstalled
with the original, but I'm not sure how to accomplish that.

 

A couple of questions:

1)  Is there any way to mark a File or Component such that it
does not get uninstalled when you uninstall the product?

2)  Is there a way to tie my wxs to another product and version
such that if the other product gets uninstalled, the hotfix
automatically gets uninstalled as well?

 

 

-
-
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
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.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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

[WiX-users] Off Topic - MSI Setup Jobs EMail List?

2011-07-14 Thread Wendell Joost
I'm happily employed now, but keep getting pings from recruiters about setup
jobs being offered - what's a good email list for posting positions offered?
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Problem with Including under TFS 2010 Build Agent

2011-07-14 Thread John Cooper
Got a challenging problem.  I have an include file that has versioning 
constants in it.  Running from the Desktop, all goes well, the constants are 
defined, and the correct version number is set on the MSI.

However, on the TFS 2010 Build agent, the include doesn't seem to work.  I get 
the following error:

e:\Builds\35\639\Sources\main\FedLine\Source\Install\FedLineWix\Product.wxs 
(15): Undefined preprocessor variable '$(var.ProductMajor)'.

FedLineVersion.wxi:

Include xmlns=http://schemas.microsoft.com/wix/2006/wi;
  !-- the build template may update these --
  ?define ProductMajor = 1 ?
  ?define ProductMinor = 0 ?
  ?define BuildMajor = 674 ?
  !-- ignored by MSI API --
  ?define Release = 0 ?
/Include

Snippet from Product.wxs:

?xml version=1.0 encoding=UTF-8?
Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
 xmlns:iis=http://schemas.microsoft.com/wix/IIsExtension;
 xmlns:netfx=http://schemas.microsoft.com/wix/NetFxExtension;
 xmlns:util=http://schemas.microsoft.com/wix/UtilExtension;

  ?include $(sys.CURRENTDIR)FedLineVersion.wxi ?
  ?define Version = $(var.ProductMajor).$(var.ProductMinor).$(var.BuildMajor) 
?

  Product Id=*
   Name=!(loc.ProductName)
   Language=!(loc.LCID)
   Version=$(var.Version)
   Manufacturer=!(loc.ProductManufacturer)
   UpgradeCode=B73A1EEA-3509-4474-825A-E02C230B0424

Any clues why this breaks on the Build Agent, but not locally on my desktop?

--
John Merryweather Cooper
Jack Henry  Associates, Inc. (Premier Tech, Inc.)
Build  Install Engineer - jXchange
Office:  913-341-3434 x791011
jocoo...@jackhenry.commailto:jocoo...@jackhenry.com

NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Writing to ProgramFolder with Custom Action Dll in C++

2011-07-14 Thread Michael Ganz
Hello List,

 

I'm using WiX for creating a setup with a keyfile with openSSL. 

The keyfile has to be placed in the ProgramFolderDir.

 

After creating the key with the Custom Action, I push it in a Property
called LICENSE.

Another function should write this file to the products shortname with
.key extension.

 

If I start the Installer from an administrator shell, all went fine.

If I start it as user with administrator privileges, the Custom Action
returns an error.

 

-snip Custom Action code

/***
**/

bool writeToFile(const char *pcFileName, const char *pcData, DWORD szLen)

{

bool _bReturn = false;

 

int _iFile = _open(pcFileName, _O_WRONLY | _O_CREAT, _S_IWRITE );

if(_iFile  0)

{

if(_write(_iFile, pcData, szLen) == szLen)

{

_bReturn = true;

}

_close(_iFile);

}

 

return _bReturn;

}

 

/***
**/

UINT __stdcall writeKey(MSIHANDLE hInstall)

{

char _pcKeyPath[MAX_PATH];

DWORD _dKeyPathLen = MAX_PATH;

 

char _pcLicence[1024];

DWORD _dLicenceLen = 1024;

 

MsiGetPropertyA(hInstall, INSTALLDIR, _pcKeyPath, _dKeyPathLen);

MsiGetPropertyA(hInstall, LICENCE, _pcLicence, _dLicenceLen);

 

bool _bWriteSuccess = false;

if(_dLicenceLen  0)

{

if(_dKeyPathLen  0)

{

string _sLicenceFile = _pcKeyPath;

if(_sLicenceFile.size()  0

 !(_sLicenceFile[_sLicenceFile.size()-1] == '/'

|| _sLicenceFile[_sLicenceFile.size()-1] == '\\'))

{

_sLicenceFile += \\;

}

_sLicenceFile += mykey.key;

 

string _sLogMsg = Writing key file to dir: ;

_sLogMsg += _sLicenceFile;

 

MsiSetPropertyA(hInstall, LASTDLLACTION, _sLogMsg.c_str());

_bWriteSuccess = writeToFile(_sLicenceFile.c_str(), _pcLicence,
_dLicenceLen);

}

}

 

if(_bWriteSuccess)

{

MsiSetPropertyA(hInstall, KEYWRITESUCCESS, 0);

}

else

{

MsiSetPropertyA(hInstall, KEYWRITESUCCESS, -1);

MsiSetPropertyA(hInstall, LASTDLLACTION, Error writing key
file);

}

 

return ERROR_SUCCESS;

}

 

-snip end of Custom Action code

 

 

The dll is set by:

 Binary Id=myInstaller SourceFile=myInstaller.dll/

 

The function is specified by:

CustomAction Id=writeKey BinaryKey=myInstaller DllEntry=writeKey
Execute=deferred Impersonate=no/

 

 

The install sequence calls the custom action before InstallFinalize 

InstallExecuteSequence

  Custom Action=writeKey Before=InstallFinalize1/Custom

/InstallExecuteSequence

 

 

First I tried it after InstallFinalize and without the Execute and
Impersonate attribute, but that doesn't work.

In administrator shell, all action are done, so the code is fine, but
something with rights, I guess.

 

What I'm doing wrong ? 

How can I activate UAC or administrator privileges for running my function ?

Does the dll needs a special initialization routine ?

At linker section in Visual Studio I set the UACExecutionLevel=2
(administrator privileges), but nothing changed. I guess for dlls this is
needless.

 

Regards Michael

 

 

 

 

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Writing to ProgramFolder with Custom Action Dll in C++

2011-07-14 Thread Wilson, Phil
Custom actions need to be deferred to run with elevated privilege. 

Phil Wilson 


-Original Message-
From: Michael Ganz [mailto:michael_g...@t-online.de] 
Sent: Thursday, July 14, 2011 3:32 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Writing to ProgramFolder with Custom Action Dll in C++

Hello List,

 

I'm using WiX for creating a setup with a keyfile with openSSL. 

The keyfile has to be placed in the ProgramFolderDir.

 

After creating the key with the Custom Action, I push it in a Property
called LICENSE.

Another function should write this file to the products shortname with
.key extension.

 

If I start the Installer from an administrator shell, all went fine.

If I start it as user with administrator privileges, the Custom Action
returns an error.

 

-snip Custom Action code

/***
**/

bool writeToFile(const char *pcFileName, const char *pcData, DWORD szLen)

{

bool _bReturn = false;

 

int _iFile = _open(pcFileName, _O_WRONLY | _O_CREAT, _S_IWRITE );

if(_iFile  0)

{

if(_write(_iFile, pcData, szLen) == szLen)

{

_bReturn = true;

}

_close(_iFile);

}

 

return _bReturn;

}

 

/***
**/

UINT __stdcall writeKey(MSIHANDLE hInstall)

{

char _pcKeyPath[MAX_PATH];

DWORD _dKeyPathLen = MAX_PATH;

 

char _pcLicence[1024];

DWORD _dLicenceLen = 1024;

 

MsiGetPropertyA(hInstall, INSTALLDIR, _pcKeyPath, _dKeyPathLen);

MsiGetPropertyA(hInstall, LICENCE, _pcLicence, _dLicenceLen);

 

bool _bWriteSuccess = false;

if(_dLicenceLen  0)

{

if(_dKeyPathLen  0)

{

string _sLicenceFile = _pcKeyPath;

if(_sLicenceFile.size()  0

 !(_sLicenceFile[_sLicenceFile.size()-1] == '/'

|| _sLicenceFile[_sLicenceFile.size()-1] == '\\'))

{

_sLicenceFile += \\;

}

_sLicenceFile += mykey.key;

 

string _sLogMsg = Writing key file to dir: ;

_sLogMsg += _sLicenceFile;

 

MsiSetPropertyA(hInstall, LASTDLLACTION, _sLogMsg.c_str());

_bWriteSuccess = writeToFile(_sLicenceFile.c_str(), _pcLicence,
_dLicenceLen);

}

}

 

if(_bWriteSuccess)

{

MsiSetPropertyA(hInstall, KEYWRITESUCCESS, 0);

}

else

{

MsiSetPropertyA(hInstall, KEYWRITESUCCESS, -1);

MsiSetPropertyA(hInstall, LASTDLLACTION, Error writing key
file);

}

 

return ERROR_SUCCESS;

}

 

-snip end of Custom Action code

 

 

The dll is set by:

 Binary Id=myInstaller SourceFile=myInstaller.dll/

 

The function is specified by:

CustomAction Id=writeKey BinaryKey=myInstaller DllEntry=writeKey
Execute=deferred Impersonate=no/

 

 

The install sequence calls the custom action before InstallFinalize 

InstallExecuteSequence

  Custom Action=writeKey Before=InstallFinalize1/Custom

/InstallExecuteSequence

 

 

First I tried it after InstallFinalize and without the Execute and
Impersonate attribute, but that doesn't work.

In administrator shell, all action are done, so the code is fine, but
something with rights, I guess.

 

What I'm doing wrong ? 

How can I activate UAC or administrator privileges for running my function ?

Does the dll needs a special initialization routine ?

At linker section in Visual Studio I set the UACExecutionLevel=2
(administrator privileges), but nothing changed. I guess for dlls this is
needless.

 

Regards Michael

 

 

 

 

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


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

[WiX-users] Feedback on our new SiX toy?

2011-07-14 Thread Ted Shroyer
We put together a free experiment to create small installers using WiX. Just
upload a zip and it creates a basic MSI.

See: http://quickmsi.com

We'd love to hear what you guys think.

Thanks
-ted shroyer
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Feedback on our new SiX toy?

2011-07-14 Thread Christopher Painter
To be honest I only visited the site and didn't actually try it out.  On one 
hand I've often wondered what kind of Build And Release As A Service projects 
could catch on.   But I don't know if it ever could because why would I upload 
my files to a third party with now TOS in place.


---
Christopher Painter, Author of Deployment Engineering Blog
Have a hot tip, know a secret or read a really good thread that deserves 
attention? E-Mail Me

From: Ted Shroyer tedshro...@miraclelabs.com
To: wix-users@lists.sourceforge.net
Sent: Thursday, July 14, 2011 8:03 PM
Subject: [WiX-users] Feedback on our new SiX toy?

We put together a free experiment to create small installers using WiX. Just
upload a zip and it creates a basic MSI.

See: http://quickmsi.com

We'd love to hear what you guys think.

Thanks
-ted shroyer
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Off Topic - MSI Setup Jobs EMail List?

2011-07-14 Thread Rob Mensching
Should we create a wix-jobs list?

On Thu, Jul 14, 2011 at 1:02 PM, Wendell Joost wende...@gmail.com wrote:

 I'm happily employed now, but keep getting pings from recruiters about
 setup
 jobs being offered - what's a good email list for posting positions
 offered?

 --
 AppSumo Presents a FREE Video for the SourceForge Community by Eric
 Ries, the creator of the Lean Startup Methodology on Lean Startup
 Secrets Revealed. This video shows you how to validate your ideas,
 optimize your ideas and identify your business strategy.
 http://p.sf.net/sfu/appsumosfdev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
virtually, Rob Mensching - http://RobMensching.com LLC
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Feedback on our new SiX toy?

2011-07-14 Thread Rob Mensching
I also wondered if ingress/egress costs made build/release as a service work
as well. If the whole build system was in the cloud (to use the new
buzzwords) then having the output be a final setup (compressed and delivered
online) made a lot of sense to me.

But, Ted, don't let my random thoughts discourage you. It'll be fascinating
to see if this takes off.

On Thu, Jul 14, 2011 at 7:27 PM, Christopher Painter 
chr...@deploymentengineering.com wrote:

 To be honest I only visited the site and didn't actually try it out.  On
 one hand I've often wondered what kind of Build And Release As A Service
 projects could catch on.   But I don't know if it ever could because why
 would I upload my files to a third party with now TOS in place.


 ---
 Christopher Painter, Author of Deployment Engineering Blog
 Have a hot tip, know a secret or read a really good thread that deserves
 attention? E-Mail Me

 From: Ted Shroyer tedshro...@miraclelabs.com
 To: wix-users@lists.sourceforge.net
 Sent: Thursday, July 14, 2011 8:03 PM
 Subject: [WiX-users] Feedback on our new SiX toy?

 We put together a free experiment to create small installers using WiX.
 Just
 upload a zip and it creates a basic MSI.

 See: http://quickmsi.com

 We'd love to hear what you guys think.

 Thanks
 -ted shroyer

 --
 AppSumo Presents a FREE Video for the SourceForge Community by Eric
 Ries, the creator of the Lean Startup Methodology on Lean Startup
 Secrets Revealed. This video shows you how to validate your ideas,
 optimize your ideas and identify your business strategy.
 http://p.sf.net/sfu/appsumosfdev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

 --
 AppSumo Presents a FREE Video for the SourceForge Community by Eric
 Ries, the creator of the Lean Startup Methodology on Lean Startup
 Secrets Revealed. This video shows you how to validate your ideas,
 optimize your ideas and identify your business strategy.
 http://p.sf.net/sfu/appsumosfdev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
virtually, Rob Mensching - http://RobMensching.com LLC
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Problem with Including under TFS 2010 Build Agent

2011-07-14 Thread Rob Mensching
Giving the magic 8 ball a shake, I'll take a guess and say that the
$(sys.CURRENTDIR) is set differently on the build machine. $(sys.CURRENTDIR)
is a very volatile value. It is set to where you launch the build from.

Instead, I would recommend using a relative path to the .wxi file. The
Include will search relative to the .wxs file with the Include statement.

Alternaively, push all the variables up into the .wixproj file and get rid
of the .wxi file completely. This is what I would do personally. But I'm not
a fan of .wxi files. smile/


On Thu, Jul 14, 2011 at 1:39 PM, John Cooper jocoo...@jackhenry.com wrote:

 Got a challenging problem.  I have an include file that has versioning
 constants in it.  Running from the Desktop, all goes well, the constants are
 defined, and the correct version number is set on the MSI.

 However, on the TFS 2010 Build agent, the include doesn't seem to work.  I
 get the following error:

 e:\Builds\35\639\Sources\main\FedLine\Source\Install\FedLineWix\Product.wxs
 (15): Undefined preprocessor variable '$(var.ProductMajor)'.

 FedLineVersion.wxi:

 Include xmlns=http://schemas.microsoft.com/wix/2006/wi;
  !-- the build template may update these --
  ?define ProductMajor = 1 ?
  ?define ProductMinor = 0 ?
  ?define BuildMajor = 674 ?
  !-- ignored by MSI API --
  ?define Release = 0 ?
 /Include

 Snippet from Product.wxs:

 ?xml version=1.0 encoding=UTF-8?
 Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
 xmlns:iis=http://schemas.microsoft.com/wix/IIsExtension;
 xmlns:netfx=http://schemas.microsoft.com/wix/NetFxExtension;
 xmlns:util=http://schemas.microsoft.com/wix/UtilExtension;

  ?include $(sys.CURRENTDIR)FedLineVersion.wxi ?
  ?define Version =
 $(var.ProductMajor).$(var.ProductMinor).$(var.BuildMajor) ?

  Product Id=*
   Name=!(loc.ProductName)
   Language=!(loc.LCID)
   Version=$(var.Version)
   Manufacturer=!(loc.ProductManufacturer)
   UpgradeCode=B73A1EEA-3509-4474-825A-E02C230B0424

 Any clues why this breaks on the Build Agent, but not locally on my
 desktop?

 --
 John Merryweather Cooper
 Jack Henry  Associates, Inc. (Premier Tech, Inc.)
 Build  Install Engineer - jXchange
 Office:  913-341-3434 x791011
 jocoo...@jackhenry.commailto:jocoo...@jackhenry.com

 NOTICE: This electronic mail message and any files transmitted with it are
 intended
 exclusively for the individual or entity to which it is addressed. The
 message,
 together with any attachment, may contain confidential and/or privileged
 information.
 Any unauthorized review, use, printing, saving, copying, disclosure or
 distribution
 is strictly prohibited. If you have received this message in error, please
 immediately advise the sender by reply email and delete all copies.

 --
 AppSumo Presents a FREE Video for the SourceForge Community by Eric
 Ries, the creator of the Lean Startup Methodology on Lean Startup
 Secrets Revealed. This video shows you how to validate your ideas,
 optimize your ideas and identify your business strategy.
 http://p.sf.net/sfu/appsumosfdev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




-- 
virtually, Rob Mensching - http://RobMensching.com LLC
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users