Link error for dutil.lib

18 messages Options
Embed this post
Permalink
Chunyan

Link error for dutil.lib

Reply Threaded More More options
Print post
Permalink
Hi wix-users,
 
I tried to compile the sampleListbox from Wix Tutorial 10.1. I
downloaded the source code and tried to build the dll. However, I got
the error:
 
1>dutil.lib(precomp.obj) : fatal error LNK1103: debugging information
corrupt; recompile module

I updated my wix install to the latest version 3.0.5419. But still the
error is there.

Could some one please give me a help on it?

 

Best regards,

 

Chunyan

 

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Rob Mensching-7

Re: Link error for dutil.lib

Reply Threaded More More options
Print post
Permalink
What version of the C++ compiler are you using?

On Mon, Nov 2, 2009 at 7:20 AM, Jiang, Chunyan (GE Healthcare) <
[hidden email]> wrote:

> Hi wix-users,
>
> I tried to compile the sampleListbox from Wix Tutorial 10.1. I
> downloaded the source code and tried to build the dll. However, I got
> the error:
>
> 1>dutil.lib(precomp.obj) : fatal error LNK1103: debugging information
> corrupt; recompile module
>
> I updated my wix install to the latest version 3.0.5419. But still the
> error is there.
>
> Could some one please give me a help on it?
>
>
>
> Best regards,
>
>
>
> Chunyan
>
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


--
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
DEÁK JAHN, Gábor-2

Link error for dutil.lib

Reply Threaded More More options
Print post
Permalink
On Mon, 2 Nov 2009 07:52:10 -0800, Rob Mensching wrote:

Rob,

> What version of the C++ compiler are you using?

Besides, *which* compiler? There are quite a few of them...

Bye,
   Gábor

-------------------------------------------------------------------
DEÁK JAHN, Gábor -- Budapest, Hungary
E-mail: [hidden email]

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Mike Carlson (DEV DIV)

Re: Link error for dutil.lib

Reply Threaded More More options
Print post
Permalink
In reply to this post by Chunyan
Did you try a clean build? i.e. Delete your build output directory and build again.

Thanks,
Mike Carlson

-----Original Message-----
From: Jiang, Chunyan (GE Healthcare) [mailto:[hidden email]]
Sent: Monday, November 02, 2009 7:20 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Link error for dutil.lib

Hi wix-users,
 
I tried to compile the sampleListbox from Wix Tutorial 10.1. I
downloaded the source code and tried to build the dll. However, I got
the error:
 
1>dutil.lib(precomp.obj) : fatal error LNK1103: debugging information
corrupt; recompile module

I updated my wix install to the latest version 3.0.5419. But still the
error is there.

Could some one please give me a help on it?

 

Best regards,

 

Chunyan

 

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Blair-2

Re: Link error for dutil.lib

Reply Threaded More More options
Print post
Permalink
Are you building 32-bit, or some flavor of 64-bit?

-----Original Message-----
From: Mike Carlson (DEV DIV) [mailto:[hidden email]]
Sent: Monday, November 02, 2009 1:52 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Link error for dutil.lib

Did you try a clean build? i.e. Delete your build output directory and build
again.

Thanks,
Mike Carlson

-----Original Message-----
From: Jiang, Chunyan (GE Healthcare) [mailto:[hidden email]]
Sent: Monday, November 02, 2009 7:20 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Link error for dutil.lib

Hi wix-users,
 
I tried to compile the sampleListbox from Wix Tutorial 10.1. I
downloaded the source code and tried to build the dll. However, I got
the error:
 
1>dutil.lib(precomp.obj) : fatal error LNK1103: debugging information
corrupt; recompile module

I updated my wix install to the latest version 3.0.5419. But still the
error is there.

Could some one please give me a help on it?

 

Best regards,

 

Chunyan

 

----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Chunyan

Re: Link error for dutil.lib

Reply Threaded More More options
Print post
Permalink

I am using

Microsoft Visual Studio 2005
Version 8.0.50727.762  (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727 SP1
Installed Edition: Professional

And I have tried clean build. But it doesn't work.

Sorry, I don't know what is 64-bit or 32-bit build. How to check them?


-----Ursprüngliche Nachricht-----
Von: Blair [mailto:[hidden email]]
Gesendet: Montag, 2. November 2009 23:00
An: 'General discussion for Windows Installer XML toolset.'
Betreff: Re: [WiX-users] Link error for dutil.lib

Are you building 32-bit, or some flavor of 64-bit?

-----Original Message-----
From: Mike Carlson (DEV DIV) [mailto:[hidden email]]
Sent: Monday, November 02, 2009 1:52 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Link error for dutil.lib

Did you try a clean build? i.e. Delete your build output directory and build again.

Thanks,
Mike Carlson

-----Original Message-----
From: Jiang, Chunyan (GE Healthcare) [mailto:[hidden email]]
Sent: Monday, November 02, 2009 7:20 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Link error for dutil.lib

Hi wix-users,
 
I tried to compile the sampleListbox from Wix Tutorial 10.1. I downloaded the source code and tried to build the dll. However, I got the error:
 
1>dutil.lib(precomp.obj) : fatal error LNK1103: debugging information
corrupt; recompile module

I updated my wix install to the latest version 3.0.5419. But still the error is there.

Could some one please give me a help on it?

 

Best regards,

 

Chunyan

 

----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Mike Carlson (DEV DIV)

Re: Link error for dutil.lib

Reply Threaded More More options
Print post
Permalink
That compiler version should work fine. It still sounds to me like you need to find the "precomp.obj" file, and delete it. Are you sure you deleted the .obj's as well as the actual output directory? I'd offer other suggestions, but I can't think of any other avenue of investigation.

-----Original Message-----
From: Jiang, Chunyan (GE Healthcare) [mailto:[hidden email]]
Sent: Tuesday, November 03, 2009 12:21 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Link error for dutil.lib


I am using

Microsoft Visual Studio 2005
Version 8.0.50727.762  (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727 SP1
Installed Edition: Professional

And I have tried clean build. But it doesn't work.

Sorry, I don't know what is 64-bit or 32-bit build. How to check them?


-----Ursprüngliche Nachricht-----
Von: Blair [mailto:[hidden email]]
Gesendet: Montag, 2. November 2009 23:00
An: 'General discussion for Windows Installer XML toolset.'
Betreff: Re: [WiX-users] Link error for dutil.lib

Are you building 32-bit, or some flavor of 64-bit?

-----Original Message-----
From: Mike Carlson (DEV DIV) [mailto:[hidden email]]
Sent: Monday, November 02, 2009 1:52 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Link error for dutil.lib

Did you try a clean build? i.e. Delete your build output directory and build again.

Thanks,
Mike Carlson

-----Original Message-----
From: Jiang, Chunyan (GE Healthcare) [mailto:[hidden email]]
Sent: Monday, November 02, 2009 7:20 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Link error for dutil.lib

Hi wix-users,
 
I tried to compile the sampleListbox from Wix Tutorial 10.1. I downloaded the source code and tried to build the dll. However, I got the error:
 
1>dutil.lib(precomp.obj) : fatal error LNK1103: debugging information
corrupt; recompile module

I updated my wix install to the latest version 3.0.5419. But still the error is there.

Could some one please give me a help on it?

 

Best regards,

 

Chunyan

 

----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
DEÁK JAHN, Gábor-2

Link error for dutil.lib

Reply Threaded More More options
Print post
Permalink
In reply to this post by Chunyan
On Mon, 2 Nov 2009 16:20:21 +0100, Jiang, Chunyan (GE Healthcare) wrote:

Chunyan,

> I tried to compile the sampleListbox from Wix Tutorial 10.1. I
> downloaded the source code and tried to build the dll.

For such simple jobs like this I don't like the overkill of an integrated development environment but makefiles or even simple batch files. The one I use to build the sample looks like this (of course, you will need to provide the paths):

cl.exe /nologo /O2 /WX /GF /EHsc /MD /Gy /I<compiler_include_folder> /I<WiX_SDK_include_folder> /c FillListbox.cpp

link.exe /nologo /subsystem:windows /dll /incremental:no /machine:I386 /libpath:<compiler_library_folder> /libpath:<WiX_SDK_library_folder> /out:FillListbox.dll FillListbox.obj kernel32.lib user32.lib gdi32.lib advapi32.lib msi.lib dutil.lib wcautil.lib

But, you can work the same parameters into an IDE based solution just as well...

Bye,
   Gábor

-------------------------------------------------------------------
DEÁK JAHN, Gábor -- Budapest, Hungary
E-mail: [hidden email]

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Tim Musschoot

Read ProductID (PIDKEY) from registry

Reply Threaded More More options
Print post
Permalink
Hello,

I've found a way of introducing a product serial in the Installer. This key
is set in the registry at the default location (as arranged by MSI). Now I
want to read the key of a previous installation (at upgrade for example)
into the PIDKEY variable of my WIX script (this is not done automatically).
Can someone tell me how this can be arranged?

TIA,
Tim


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Wilson, Phil

Re: Read ProductID (PIDKEY) from registry

Reply Threaded More More options
Print post
Permalink
It might be set in the registry (isn't everything?) but that seems to be an implementation detail. AFAIK the correct way to get this value for an installed product is to call MsiGetProductInfo(<product code guid, ....) passing "ProductID" as the property name.

Phil Wilson


-----Original Message-----
From: Tim Musschoot [mailto:[hidden email]]
Sent: Tuesday, November 03, 2009 11:32 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] Read ProductID (PIDKEY) from registry

Hello,

I've found a way of introducing a product serial in the Installer. This key
is set in the registry at the default location (as arranged by MSI). Now I
want to read the key of a previous installation (at upgrade for example)
into the PIDKEY variable of my WIX script (this is not done automatically).
Can someone tell me how this can be arranged?

TIA,
Tim


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users



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



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
saschabeaumont

Re: Read ProductID (PIDKEY) from registry

Reply Threaded More More options
Print post
Permalink
In reply to this post by DEÁK JAHN, Gábor-2
Assuming that PIDKEY is just a property you're setting, you'll
probably want to set the property to a default value (e.g. DEMO) and
do a RegistrySearch to overwrite it if you can find an existing PIDKEY
in the registry.


 <Property Id="PIDKEY" Admin="yes" Secure="yes" Value="DEMO">
      <RegistrySearch Id="RegSearch_PIDKEY" Root="HKLM"
Key="SOFTWARE\My Company\My App\1.0" Name="SerialNumber" Type="raw" />
    </Property>

Sascha


On Wed, Nov 4, 2009 at 6:31 AM, Tim Musschoot <[hidden email]> wrote:

> Hello,
>
> I've found a way of introducing a product serial in the Installer. This key
> is set in the registry at the default location (as arranged by MSI). Now I
> want to read the key of a previous installation (at upgrade for example)
> into the PIDKEY variable of my WIX script (this is not done automatically).
> Can someone tell me how this can be arranged?
>
> TIA,
> Tim
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Tim Musschoot

Re: Read ProductID (PIDKEY) from registry

Reply Threaded More More options
Print post
Permalink
In reply to this post by Wilson, Phil
Thx so far. I tried to do this from within C# code, and this works very
well.

Can someone tell me how I can call a method in "msi.dll" from WIX, passing a
number of parameters to the method?

TIA,
Tim

-----Oorspronkelijk bericht-----
Van: Wilson, Phil [mailto:[hidden email]]
Verzonden: dinsdag 3 november 2009 23:42
Aan: General discussion for Windows Installer XML toolset.
Onderwerp: Re: [WiX-users] Read ProductID (PIDKEY) from registry

It might be set in the registry (isn't everything?) but that seems to be an
implementation detail. AFAIK the correct way to get this value for an
installed product is to call MsiGetProductInfo(<product code guid, ....)
passing "ProductID" as the property name.

Phil Wilson


-----Original Message-----
From: Tim Musschoot [mailto:[hidden email]]
Sent: Tuesday, November 03, 2009 11:32 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] Read ProductID (PIDKEY) from registry

Hello,

I've found a way of introducing a product serial in the Installer. This key
is set in the registry at the default location (as arranged by MSI). Now I
want to read the key of a previous installation (at upgrade for example)
into the PIDKEY variable of my WIX script (this is not done automatically).
Can someone tell me how this can be arranged?

TIA,
Tim


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users



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



----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Tim Musschoot

Re: Read ProductID (PIDKEY) from registry

Reply Threaded More More options
Print post
Permalink
In reply to this post by saschabeaumont
It appears to be a property set by MSI in a location with a strange GUID. In
brief: I cannot find logic between the application and the place MSI puts
this parameter.

I need to make a customaction call to the "MsiGetProductInfo" method in
"msi.dll", passing some params. However, I've still not found how to call a
dll method, passing parameters :-s



-----Oorspronkelijk bericht-----
Van: Sascha Beaumont [mailto:[hidden email]]
Verzonden: donderdag 5 november 2009 0:53
Aan: General discussion for Windows Installer XML toolset.
Onderwerp: Re: [WiX-users] Read ProductID (PIDKEY) from registry

Assuming that PIDKEY is just a property you're setting, you'll
probably want to set the property to a default value (e.g. DEMO) and
do a RegistrySearch to overwrite it if you can find an existing PIDKEY
in the registry.


 <Property Id="PIDKEY" Admin="yes" Secure="yes" Value="DEMO">
      <RegistrySearch Id="RegSearch_PIDKEY" Root="HKLM"
Key="SOFTWARE\My Company\My App\1.0" Name="SerialNumber" Type="raw" />
    </Property>

Sascha


On Wed, Nov 4, 2009 at 6:31 AM, Tim Musschoot <[hidden email]>
wrote:
> Hello,
>
> I've found a way of introducing a product serial in the Installer. This
key
> is set in the registry at the default location (as arranged by MSI). Now I
> want to read the key of a previous installation (at upgrade for example)
> into the PIDKEY variable of my WIX script (this is not done
automatically).
> Can someone tell me how this can be arranged?
>
> TIA,
> Tim
>
>
>
----------------------------------------------------------------------------
--

> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

----------------------------------------------------------------------------
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Wilson, Phil

Re: Read ProductID (PIDKEY) from registry

Reply Threaded More More options
Print post
Permalink
Sascha's point is that you can save this yourself if you really want to get it from the registry. ProductID might be the better property to change because it's been through any verification that might be done by ValidateProductID. However if you've already shipped the original it's too late, which is why upgrades need a sanity test before the original actually gets out the door.

My point is that if you don't want to do that, then a custom action can call MsiGetProductInfo. You don't pass parameters anyway.

http://www.wixwiki.com/index.php?title=Simple_Custom_Action_Dll 

and you'll do a MsiGetProperty ("ProductCode" ...... ) and then MsiGetProductInfo for "ProductID" on that returned product code, then MsiSetProperty (handle.... "MYOLDPIDKEY" ....) to set the value into the MYOLDPIDKEY property, but there's no reason why you can't set PIDKEY. Since you're doing this on an upgrade of some kind you'd condition this CA call on the property in the Upgrade table.

Phil Wilson


-----Original Message-----
From: Tim Musschoot [mailto:[hidden email]]
Sent: Thursday, November 05, 2009 11:05 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Read ProductID (PIDKEY) from registry

It appears to be a property set by MSI in a location with a strange GUID. In
brief: I cannot find logic between the application and the place MSI puts
this parameter.

I need to make a customaction call to the "MsiGetProductInfo" method in
"msi.dll", passing some params. However, I've still not found how to call a
dll method, passing parameters :-s



-----Oorspronkelijk bericht-----
Van: Sascha Beaumont [mailto:[hidden email]]
Verzonden: donderdag 5 november 2009 0:53
Aan: General discussion for Windows Installer XML toolset.
Onderwerp: Re: [WiX-users] Read ProductID (PIDKEY) from registry

Assuming that PIDKEY is just a property you're setting, you'll
probably want to set the property to a default value (e.g. DEMO) and
do a RegistrySearch to overwrite it if you can find an existing PIDKEY
in the registry.


 <Property Id="PIDKEY" Admin="yes" Secure="yes" Value="DEMO">
      <RegistrySearch Id="RegSearch_PIDKEY" Root="HKLM"
Key="SOFTWARE\My Company\My App\1.0" Name="SerialNumber" Type="raw" />
    </Property>

Sascha


On Wed, Nov 4, 2009 at 6:31 AM, Tim Musschoot <[hidden email]>
wrote:
> Hello,
>
> I've found a way of introducing a product serial in the Installer. This
key
> is set in the registry at the default location (as arranged by MSI). Now I
> want to read the key of a previous installation (at upgrade for example)
> into the PIDKEY variable of my WIX script (this is not done
automatically).
> Can someone tell me how this can be arranged?
>
> TIA,
> Tim
>
>
>
----------------------------------------------------------------------------
--

> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> WiX-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

----------------------------------------------------------------------------
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users



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



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Chunyan

Re: Link error for dutil.lib

Reply Threaded More More options
Print post
Permalink
In reply to this post by DEÁK JAHN, Gábor-2
Hi Gábor,

Thanks for your help.

I tried to use the command as you said in one batch file. But when run the batch file, there is no action. No dll are generated, nor message return. The command line screen only shows the content as in batch file.

What is the problem?

There is still not working for Visual Studio 2005. The error message:

dutil.lib(precomp.obj) : fatal error LNK1103: debugging information corrupt; recompile module


Regards,


Chunyan

-----Ursprüngliche Nachricht-----
Von: DEÁK JAHN, Gábor [mailto:[hidden email]]
Gesendet: Dienstag, 3. November 2009 20:07
An: General discussion for Windows Installer XML toolset.
Betreff: [WiX-users] Link error for dutil.lib

On Mon, 2 Nov 2009 16:20:21 +0100, Jiang, Chunyan (GE Healthcare) wrote:

Chunyan,

> I tried to compile the sampleListbox from Wix Tutorial 10.1. I
> downloaded the source code and tried to build the dll.

For such simple jobs like this I don't like the overkill of an integrated development environment but makefiles or even simple batch files. The one I use to build the sample looks like this (of course, you will need to provide the paths):

cl.exe /nologo /O2 /WX /GF /EHsc /MD /Gy /I<compiler_include_folder> /I<WiX_SDK_include_folder> /c FillListbox.cpp

link.exe /nologo /subsystem:windows /dll /incremental:no /machine:I386 /libpath:<compiler_library_folder> /libpath:<WiX_SDK_library_folder> /out:FillListbox.dll FillListbox.obj kernel32.lib user32.lib gdi32.lib advapi32.lib msi.lib dutil.lib wcautil.lib

But, you can work the same parameters into an IDE based solution just as well...

Bye,
   Gábor

-------------------------------------------------------------------
DEÁK JAHN, Gábor -- Budapest, Hungary
E-mail: [hidden email]

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Bob Arnson-6

Re: Link error for dutil.lib

Reply Threaded More More options
Print post
Permalink
Jiang, Chunyan (GE Healthcare) wrote:
> There is still not working for Visual Studio 2005. The error message:
>
> dutil.lib(precomp.obj) : fatal error LNK1103: debugging information corrupt; recompile module
>  

Use dutil_2005.lib.

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



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Chunyan

Re: Link error for dutil.lib

Reply Threaded More More options
Print post
Permalink
Hi Bob,

I have tried dutil_2005.lib.
#pragma comment(lib, "dutil_2005.lib")

But there is still the problem

Regards,

Chunyan

-----Ursprüngliche Nachricht-----
Von: Bob Arnson [mailto:[hidden email]]
Gesendet: Dienstag, 10. November 2009 14:09
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] Link error for dutil.lib

Jiang, Chunyan (GE Healthcare) wrote:
> There is still not working for Visual Studio 2005. The error message:
>
> dutil.lib(precomp.obj) : fatal error LNK1103: debugging information
> corrupt; recompile module
>  

Use dutil_2005.lib.

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



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Chunyan

Re: Link error for dutil.lib

Reply Threaded More More options
Print post
Permalink
Hi Bob,

I changed both dutil.lib and wcautil.lib to _2005. Then the error is gone.

Thanks for your help.

Regards,

Chunyan

-----Ursprüngliche Nachricht-----
Von: Jiang, Chunyan (GE Healthcare)
Gesendet: Dienstag, 10. November 2009 14:20
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] Link error for dutil.lib

Hi Bob,

I have tried dutil_2005.lib.
#pragma comment(lib, "dutil_2005.lib")

But there is still the problem

Regards,

Chunyan

-----Ursprüngliche Nachricht-----
Von: Bob Arnson [mailto:[hidden email]]
Gesendet: Dienstag, 10. November 2009 14:09
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] Link error for dutil.lib

Jiang, Chunyan (GE Healthcare) wrote:
> There is still not working for Visual Studio 2005. The error message:
>
> dutil.lib(precomp.obj) : fatal error LNK1103: debugging information
> corrupt; recompile module
>  

Use dutil_2005.lib.

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



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now.  http://p.sf.net/sfu/bobj-july _______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now.  http://p.sf.net/sfu/bobj-july _______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users