[WiX-users] How to burn petrified wood? Upgrading from VS 2005 to 2010

2011-07-15 Thread Mark Modrall
Hi everybody...

I imagine I'll take some flak for this, but we still have 
installers being cobbled together by Wix 2.0.

Recently I was tasked with upgrading our product builds from VS 2005 to VS 2010 
(and moving our production environment from Windows Server 2003 to 2008).  I 
just got all the product build converted and running under VS 2010 (with a side 
nightmare thanks to Sourcegear Vault).  My Wix project cranked out .msis 
without complaint.

But when I went to install the msi on Windows 2008, it threw an 
exception 2765.  Not a lot of information on what the problem is.  Not sure if 
it's some kind of difference between W2003 and 2008, the version of the msi 
installer on the os or what.  It did say there was one specific merge module at 
the time, a .net assembly that was going to be put in the gac.

I'd run Wix under VS 2005 figuring that the bundling of the 
build product didn't need to be upgraded, but to start eliminating variables I 
upgraded the Wix solution to VS 2010 and tried the msi outcome of that.  Same 
error.

I went to install Wix 3 (baby steps), but that installer still 
only offered VS 2005 integration.

I haven't worked with Windows Server 2008 much and I haven't 
seen this installer error before.  Is this a Wix compatibility issue or an OS 
issue?

Thanks
Mark

--
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] Typical Wix conventions for displaying release notes?

2011-07-15 Thread Rob Mensching
No. $(var.Xxx) are preprocessor variables (replaced when the file is
compiled). [PropertyId] are properties, resolved when the Windows Installer
executes your MSI. You want the latter.

On Fri, Jul 15, 2011 at 9:46 AM, Brad Lemings  wrote:

> Haven't tried yet but would this work?
>
>  Value="[#ReleaseNotes$(var.UserLanguageID)]" />
>  BinaryKey="WixCA"
>  DllEntry="WixShellExec"
>  Impersonate="yes" />
>
> -Original Message-
> From: Rob Mensching [mailto:r...@robmensching.com]
> Sent: Friday, July 15, 2011 10:09 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Typical Wix conventions for displaying release
> notes?
>
> Lots of properties built in listed here:
> http://msdn.microsoft.com/en-us/library/aa370905(v=VS.85).aspx
>
> This one might be interesting:
> http://msdn.microsoft.com/en-us/library/aa372384(v=VS.85).aspx
>
>
> On Fri, Jul 15, 2011 at 9:03 AM, Brad Lemings  wrote:
>
> > And how can the current language/locale of the computer on which the
> > software is being installed be determined?
> >
> > Packaging/Installing multiple release notes, one for each supported
> > language is pretty straightforward.  Display a file is too.  But is
> > there a way to select and display the correct version depending on the
> > language of the target system?
> >
> > Thanks.
> >
> > -Original Message-
> > From: Bob Arnson [mailto:b...@joyofsetup.com]
> > Sent: Monday, July 11, 2011 11:42 AM
> > To: wix-users@lists.sourceforge.net
> > Subject: Re: [WiX-users] Typical Wix conventions for displaying
> > release notes?
> >
> > On 11-Jul-11 13:02, Brad Lemings wrote:
> > > Just wondering what the typical Wix conventions are for displaying
> > release notes near the end of an installation sequence.
> >
> > See "How To: Run the Installed Application After Setup" and replace
> > "myapplication.exe" with "myreleasenotes.html."
> >
> > --
> > sig://boB
> > http://joyofsetup.com/
> >
> >
> >
> > --
> >  All of the data generated in your IT infrastructure is
> > seriously valuable.
> > Why? It contains a definitive record of application performance,
> > security threats, fraudulent activity, and more. Splunk takes this
> > data and makes sense of it. IT sense. And common sense.
> > http://p.sf.net/sfu/splunk-d2d-c2
> > ___
> > 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
>
>
> --
> 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/

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

2011-07-15 Thread Michael Ganz
Yes, this is the solution. 
I have to use "CustomActionData" set by another CustomAction.

Thanks to all who helped me.

> -Ursprüngliche Nachricht-
> Von: Bob Arnson [mailto:b...@joyofsetup.com]
> Gesendet: Freitag, 15. Juli 2011 17:02
> An: wix-users@lists.sourceforge.net
> Betreff: Re: [WiX-users] Writing to ProgramFolder with Custom Action
> Dll in C++
> 
> On 14-Jul-11 18:31, Michael Ganz wrote:
> >  MsiGetPropertyA(hInstall, "INSTALLDIR",
> _pcKeyPath,&_dKeyPathLen);
> > ...
> >  MsiSetPropertyA(hInstall, "KEYWRITESUCCESS", "0");
> >
> Deferred custom actions can't read or write property values. See
> "Obtaining Context Information for Deferred Execution Custom Actions"
> for the pattern you need to use.
> 
> --
> sig://boB
> http://joyofsetup.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


--
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-15 Thread Castro, Edwin G. (Hillsboro)
> Should we create a "wix-jobs" list?

+1

Edwin G. Castro
Software Developer - Staff
Digital Channels
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail

--
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-15 Thread Bob Arnson
On 14-Jul-11 18:31, Michael Ganz wrote:
>  MsiGetPropertyA(hInstall, "INSTALLDIR", _pcKeyPath,&_dKeyPathLen);
> ...
>  MsiSetPropertyA(hInstall, "KEYWRITESUCCESS", "0");
>
Deferred custom actions can't read or write property values. See 
"Obtaining Context Information for Deferred Execution Custom Actions" 
for the pattern you need to use.

-- 
sig://boB
http://joyofsetup.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] Writing to ProgramFolder with Custom Action Dll in C++

2011-07-15 Thread Wilson, Phil
Ok, then you are not getting your properties correctly. You need to be using 
CustomActionData to get your property values from a deferred CA instead of 
accessing them directly. 

Phil Wilson 

-Original Message-
From: Michael Ganz [mailto:michael_g...@t-online.de] 
Sent: Friday, July 15, 2011 1:47 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Writing to ProgramFolder with Custom Action Dll in C++

Thought I've done this with:


Michael

> -Ursprüngliche Nachricht-
> Von: Wilson, Phil [mailto:phil.wil...@invensys.com]
> Gesendet: Freitag, 15. Juli 2011 01:43
> An: General discussion for Windows Installer XML toolset.
> Betreff: Re: [WiX-users] Writing to ProgramFolder with Custom Action
> Dll in C++
> 
> 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:
> 
>  
> 
> 
> 
> The function is specified by:
> 
>  DllEntry="writeKey"
> Execute="deferred" Impersonate="no"/>
> 
> 
> 
> 
> 
> The install sequence calls the custom action before InstallFinalize
> 
> 
> 
>   1
> 
> 
> 
> 
> 
> 
> 
> 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 Me

Re: [WiX-users] Typical Wix conventions for displaying release notes?

2011-07-15 Thread Brad Lemings
Haven't tried yet but would this work?




-Original Message-
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: Friday, July 15, 2011 10:09 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Typical Wix conventions for displaying release notes?

Lots of properties built in listed here:
http://msdn.microsoft.com/en-us/library/aa370905(v=VS.85).aspx

This one might be interesting:
http://msdn.microsoft.com/en-us/library/aa372384(v=VS.85).aspx


On Fri, Jul 15, 2011 at 9:03 AM, Brad Lemings  wrote:

> And how can the current language/locale of the computer on which the 
> software is being installed be determined?
>
> Packaging/Installing multiple release notes, one for each supported 
> language is pretty straightforward.  Display a file is too.  But is 
> there a way to select and display the correct version depending on the 
> language of the target system?
>
> Thanks.
>
> -Original Message-
> From: Bob Arnson [mailto:b...@joyofsetup.com]
> Sent: Monday, July 11, 2011 11:42 AM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Typical Wix conventions for displaying 
> release notes?
>
> On 11-Jul-11 13:02, Brad Lemings wrote:
> > Just wondering what the typical Wix conventions are for displaying
> release notes near the end of an installation sequence.
>
> See "How To: Run the Installed Application After Setup" and replace 
> "myapplication.exe" with "myreleasenotes.html."
>
> --
> sig://boB
> http://joyofsetup.com/
>
>
>
> --
>  All of the data generated in your IT infrastructure is 
> seriously valuable.
> Why? It contains a definitive record of application performance, 
> security threats, fraudulent activity, and more. Splunk takes this 
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> ___
> 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

--
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] Unknown WiX variables in Bundle with WiX 3.6.1908.0

2011-07-15 Thread Rob Mensching
Hah, now I know why I didn't update the documentation on creating managed
BAs. There is none! Okay, so not so much triumph as more work to do... but
it won't be in this week's build. Sorry.

On Tue, Jul 12, 2011 at 10:00 PM, Rob Mensching wrote:

> You need something like:
>
> 
>  />
>
>
> That's the code from wix\src\Setup\Bundle\Netfx.wxs how the WiX toolset
> uses it.
>
>
>
> On Tue, Jul 12, 2011 at 5:52 AM, Kryschan <
> christian.hennig@wincor-nixdorf.com> wrote:
>
>> Sorry but I still don't know what to do now to make my bootstrapper build
>> again. Can you please give me a hint on that or do I have to wait for the
>> documentation update?
>>
>> Best regards
>> Kryschan
>>
>>
>> Rob Mensching-7 wrote:
>> >
>> > Ug, sorry, I forgot to update the documentation about the breaking
>> change.
>> > Yes, that is expected. Those WixVariables replace the "MbaPreqNetfx"
>> > Bundle/Variables used to indentify the prerequisite package and license.
>> >
>> > I'll get the documentation fixed before the next build.
>> >
>>
>>
>> --
>> View this message in context:
>> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Unknown-WiX-variables-in-Bundle-with-WiX-3-6-1908-0-tp6574163p6574924.html
>> Sent from the wix-users mailing list archive at Nabble.com.
>>
>>
>> --
>> All of the data generated in your IT infrastructure is seriously valuable.
>> Why? It contains a definitive record of application performance, security
>> threats, fraudulent activity, and more. Splunk takes this data and makes
>> sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-d2d-c2
>> ___
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>
>
> --
> virtually, Rob Mensching - http://RobMensching.com LLC
>



-- 
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] Typical Wix conventions for displaying release notes?

2011-07-15 Thread Rob Mensching
Lots of properties built in listed here:
http://msdn.microsoft.com/en-us/library/aa370905(v=VS.85).aspx

This one might be interesting:
http://msdn.microsoft.com/en-us/library/aa372384(v=VS.85).aspx


On Fri, Jul 15, 2011 at 9:03 AM, Brad Lemings  wrote:

> And how can the current language/locale of the computer on which the
> software is being installed be determined?
>
> Packaging/Installing multiple release notes, one for each supported
> language is pretty straightforward.  Display a file is too.  But is there a
> way to select and display the correct version depending on the language of
> the target system?
>
> Thanks.
>
> -Original Message-
> From: Bob Arnson [mailto:b...@joyofsetup.com]
> Sent: Monday, July 11, 2011 11:42 AM
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Typical Wix conventions for displaying release
> notes?
>
> On 11-Jul-11 13:02, Brad Lemings wrote:
> > Just wondering what the typical Wix conventions are for displaying
> release notes near the end of an installation sequence.
>
> See "How To: Run the Installed Application After Setup" and replace
> "myapplication.exe" with "myreleasenotes.html."
>
> --
> sig://boB
> http://joyofsetup.com/
>
>
>
> --
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> ___
> 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] Typical Wix conventions for displaying release notes?

2011-07-15 Thread Brad Lemings
And how can the current language/locale of the computer on which the software 
is being installed be determined?

Packaging/Installing multiple release notes, one for each supported language is 
pretty straightforward.  Display a file is too.  But is there a way to select 
and display the correct version depending on the language of the target system?

Thanks.

-Original Message-
From: Bob Arnson [mailto:b...@joyofsetup.com] 
Sent: Monday, July 11, 2011 11:42 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Typical Wix conventions for displaying release notes?

On 11-Jul-11 13:02, Brad Lemings wrote:
> Just wondering what the typical Wix conventions are for displaying release 
> notes near the end of an installation sequence.

See "How To: Run the Installed Application After Setup" and replace 
"myapplication.exe" with "myreleasenotes.html."

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


--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
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] Problem with Including under TFS 2010 Build Agent

2011-07-15 Thread John Cooper
Well, that goes without saying ($(sys.CURRENTDIR) points to a very different 
path on the build agent).  :)  But making it relative didn't help much.  
Ultimately, shortening the command line (removing a bunch of long var defines) 
from candle helped.  The previous build engineer had apparently never heard of 
using either a wxi or wixproj to define path vars.

By the way, this problem existed on both 3.5 and 3.6.

The choice to use a wxi instead of embedding in wixproj is simple--there's a 
workflow build activity that regex's and adjusts the values in the wxi each 
build.  It WAS doing that to my Product.wxs with predictable fragility.  I have 
nightmares thinking about a build activity hacking a wixproj just before it 
builds.
--
jmc

-Original Message-
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: Friday, July 15, 2011 12:24 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Problem with Including under TFS 2010 Build Agent

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. 


On Thu, Jul 14, 2011 at 1:39 PM, John Cooper  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\Produc
> t.wxs
> (15): Undefined preprocessor variable '$(var.ProductMajor)'.
>
> FedLineVersion.wxi:
>
> http://schemas.microsoft.com/wix/2006/wi";>
> 1 ?>
>  
>  
> 
>
> Snippet from Product.wxs:
>
>   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";>
>
> $(var.ProductMajor).$(var.ProductMinor).$(var.BuildMajor) ?>
>
> 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.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
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, print

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

2011-07-15 Thread Christopher Painter
If you did, it should be over on LinkedIn.  ( Already a number of groups 
anyways... )
 
I don't write publically about this much but the problem is the nature of 
recruiting and hiring practices today.   Everyone is talking 'cloud' and the 
'recruiters' are using it to search far and wide for positions but at the end 
of the day they expect to find candidates with impossible skillsets working for 
peanuts on a 6 month contract and btw your going to have to move to  BFE with 
no relocation assistance because telecommute itsn't a possibility.   
 
And if that wasn't bad enough this recruiting firm probably doesn't even have 
an established relationship with the hiring manager and is competing with 
another dozen or more firms all following the same broken model.
 
Looking back over the last 15 years of my career I've worked for 6 employers 
and changed positions about 12 times.  Of all those a recruiter was used only 
once and that was because that firm had a relationship with the hiring manager, 
understood the skills that were important and was able to up the salary range 
to make it happen.   The rest of the recruiters I've dealt with have simply not 
worked out.
 
---
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: Rob Mensching 
To: General discussion for Windows Installer XML toolset. 

Sent: Friday, July 15, 2011 12:18 AM
Subject: Re: [WiX-users] Off Topic - MSI Setup Jobs EMail List?

Should we create a "wix-jobs" list?

On Thu, Jul 14, 2011 at 1:02 PM, Wendell Joost  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
--
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] WriteIIS7ConfigChanges:

2011-07-15 Thread Rajesh Chandra Varanasi (Infosys Technologies Ltd)
Hi ,

I am getting the following error when running the deployment 
using octopus
Please let me know if this is a known issue and how to address 
it.

I am unable to find this anywhere on the internet.

I am using the 3.5.2519.0 build.

MSI (s) (98:B8) [22:13:46:600]: Source for file 'Site1Vdir1Web.config' is 
compressed
MSI (s) (98:B8) [22:13:46:600]: Note: 1: 2318 2: C:\RXP 
Configuration\Sites\Site1\Configuration\Web.config
MSI (s) (98:B8) [22:13:46:616]: Executing op: CacheSizeFlush(,)
MSI (s) (98:B8) [22:13:46:616]: Executing op: 
ActionStart(Name=StartIIS7ConfigTransaction,Description=Starting IIS Config 
Transaction,)
MSI (s) (98:B8) [22:13:46:616]: Executing op: 
CustomActionSchedule(Action=StartIIS7ConfigTransaction,ActionType=11265,Source=BinaryData,Target=**,CustomActionData=**)
MSI (s) (98:7C) [22:13:46:678]: Invoking remote custom action. DLL: 
C:\Windows\Installer\MSI114C.tmp, Entrypoint: StartIIS7ConfigTransaction
MSI (s) (98:EC) [22:13:46:678]: Generating random cookie.
MSI (s) (98:EC) [22:13:46:694]: Created Custom Action Server with PID 4648 
(0x1228).
MSI (s) (98:60) [22:13:46:756]: Running as a service.
MSI (s) (98:60) [22:13:46:756]: Hello, I'm your 32bit Elevated custom action 
server.
MSI (s) (98:B8) [22:13:46:881]: Executing op: 
ActionStart(Name=RollbackIIS7ConfigTransaction,Description=Rolling back IIS 
Config Transaction,)
MSI (s) (98:B8) [22:13:46:881]: Executing op: 
CustomActionSchedule(Action=RollbackIIS7ConfigTransaction,ActionType=11521,Source=BinaryData,Target=**,CustomActionData=**)
MSI (s) (98:B8) [22:13:46:881]: Executing op: 
ActionStart(Name=CommitIIS7ConfigTransaction,Description=Committing IIS Config 
Transaction,)
MSI (s) (98:B8) [22:13:46:897]: Executing op: 
CustomActionSchedule(Action=CommitIIS7ConfigTransaction,ActionType=11777,Source=BinaryData,Target=**,CustomActionData=**)
MSI (s) (98:B8) [22:13:46:897]: Executing op: 
ActionStart(Name=ConfigureIIs7Exec,Description=Configuring IIS,)
MSI (s) (98:B8) [22:13:46:913]: Executing op: 
CustomActionSchedule(Action=ConfigureIIs7Exec,ActionType=11265,Source=BinaryData,Target=**,CustomActionData=**)
MSI (s) (98:F8) [22:13:46:991]: Invoking remote custom action. DLL: 
C:\Windows\Installer\MSI1276.tmp, Entrypoint: ConfigureIIs7Exec
MSI (s) (98:B8) [22:13:47:116]: Executing op: 
ActionStart(Name=WriteIIS7ConfigChanges,Description=Installing Config Keys and 
Values,)
MSI (s) (98:B8) [22:13:47:116]: Executing op: 
CustomActionSchedule(Action=WriteIIS7ConfigChanges,ActionType=11265,Source=BinaryData,Target=**,CustomActionData=**)
MSI (s) (98:A8) [22:13:47:162]: Invoking remote custom action. DLL: 
C:\Windows\Installer\MSI1342.tmp, Entrypoint: WriteIIS7ConfigChanges
WriteIIS7ConfigChanges:  Error 0x800700a1: Failed get AnonymousAuthentication 
section for DirProp
WriteIIS7ConfigChanges:  Error 0x800700a1: Failed set Authentication for 
DirProps
WriteIIS7ConfigChanges:  Error 0x800700a1: Failed to configure IIS 
DirProperties.
WriteIIS7ConfigChanges:  Error 0x800700a1: WriteIIS7ConfigChanges Failed.
MSI (s) (98:B8) [22:13:48:881]: User policy value 'DisableRollback' is 0
MSI (s) (98:B8) [22:13:48:881]: Machine policy value 'DisableRollback' is 0
Action ended 22:13:48: InstallFinalize. Return value 3.
MSI (s) (98:B8) [22:13:48:897]: Executing op: 
Header(Signature=1397708873,Version=400,Timestamp=1055633848,LangId=1033,Platform=589824,ScriptType=2,ScriptMajorVersion=21,ScriptMinorVersion=4,ScriptAttributes=1)

Thanks

Rajesh
--
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-15 Thread Michael Ganz
Thought I've done this with:


Michael

> -Ursprüngliche Nachricht-
> Von: Wilson, Phil [mailto:phil.wil...@invensys.com]
> Gesendet: Freitag, 15. Juli 2011 01:43
> An: General discussion for Windows Installer XML toolset.
> Betreff: Re: [WiX-users] Writing to ProgramFolder with Custom Action
> Dll in C++
> 
> 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:
> 
>  
> 
> 
> 
> The function is specified by:
> 
>  DllEntry="writeKey"
> Execute="deferred" Impersonate="no"/>
> 
> 
> 
> 
> 
> The install sequence calls the custom action before InstallFinalize
> 
> 
> 
>   1
> 
> 
> 
> 
> 
> 
> 
> 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 file

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

2011-07-15 Thread Peter Shirtcliffe
Have you set InstallPrivileges="elevated" on the Package element ?

-Original Message-
From: Michael Ganz [mailto:michael_g...@t-online.de] 
Sent: 14 July 2011 23:32
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:

 

 

The function is specified by:



 

 

The install sequence calls the custom action before InstallFinalize 



  1



 

 

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


[WiX-users] Error building patch msp with pyro :The cabinet 'setup.cab' does not contain any files

2011-07-15 Thread wix_newbie77
Hello everybody, 

I have a huge problem with creating a patch. 

I recieve the error "The cabinet 'setup.cab' does not contain any files". 

I tried to create the patch by using the following commands: 

candle.exe Patch.wxs -out Patch.wixobj 
light.exe Patch.wixobj -out Patch.wixmsp 

torch.exe -p -xi patch\old\SamplePatchProjectSetup.wixpdb
patch\new\SamplePatchProjectSetup.wixpdb -out Patch.wixmst 

pyro.exe Patch.wixmsp -out Patch.msp -t setup Patch.wixmst 


I am completely sure that the files within the MSI's have changed. Checked
that the size and file version of the files are different using Orca. 

When executing the commands above, the Patch.msp is built, but when examined
with 7.zip it seems to be empty. The last command (pyro) gives the following
warning: 

error PYRO0252 : No valid transforms were provided to attach to the patch.
Check to make sure the transforms you passed on the command line have a
matching baseline authored in the patch. Also, make sure there are
differences between your target and upgrade. 

I'm not sure if it's possible to create a patch, if the .wxs-File doesn't
change between the two versions but only the content of the files within the
.MSI. I Read in a forum, that torch.exe compares every file byte by byte to
specify if there is a difference. 

Am I on the wrong track or is there a way to create a patch if only the
content of the files have changed but the .wxs-File itself not? 

My Patch.wxs File 
 
http://schemas.microsoft.com/wix/2006/wi";>
http://www.SampleManufacturer.org";
  DisplayName="SamplePatchProject Update to 1.0.1.1" 
  Description="This is a small update to SamplePatchProject 1.0.1.1" 
  Classification="Update">


  



  
  





My Product.wxs File 
 
 
http://schemas.microsoft.com/wix/2006/wi";>
  





  


  

  
  

  


  



  
  



  


My config.wxi File 
 

   
   
   
  
   
   
   



Note: GUID's have been modified for this post. 


Dearly hope that someone can help me out, i've tried everything without
luck. 

Thanks in advance. 

wix_newbie77

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Error-building-patch-msp-with-pyro-The-cabinet-setup-cab-does-not-contain-any-files-tp6586162p6586162.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