Re: [WiX-users] Using Wix and Visual Studio

2009-04-03 Thread Eric Brown (REDMOND)
Tried using underscores and renaming; still get the same error (CNDL0150: 
Undefined preprocessor variable).

-Original Message-
From: Jason Ginchereau [mailto:jason...@microsoft.com] 
Sent: Thursday, April 02, 2009 5:55 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Using Wix and Visual Studio

Any characters in the project name that are invalid for WiX preprocessor 
variable names get automatically converted to underscores. So without renaming 
the project this should work:

$(var.My_Test_Project.TargetFilename)


-Original Message-
From: Alex Cater [mailto:alex.ca...@apdcomms.com] 
Sent: Thursday, April 02, 2009 4:28 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Using Wix and Visual Studio


I'm guessing that you cannot have spaces in a project reference variable...

$(var.My Test Project.TargetFileName)

Try renaming your test project to MyTestProject so the project reference 
variable becomes:

$(var.MyTestProject.TargetFileName)

-- 
View this message in context: 
http://n2.nabble.com/Using-Wix-and-Visual-Studio-tp2578030p2578131.html
Sent from the wix-users mailing list archive at Nabble.com.


--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Using Wix and Visual Studio

2009-04-03 Thread Eric Brown (REDMOND)
Also, there is that yellow warning icon on the project reference.  I don't know 
what that means, and I can't find a reference in the documentation.

-Original Message-
From: Christopher Karper [mailto:christopher.kar...@gmail.com] 
Sent: Friday, April 03, 2009 10:17 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Using Wix and Visual Studio

I use spaces in my project names and project references, and they're all
fine.
I suspect his problem is something else.  I'm not sure what that is, since
this exact scenario, even down to the environment seems to match.

Chris

On Fri, Apr 3, 2009 at 12:29 PM, Eric Brown (REDMOND) 
eric.br...@microsoft.com wrote:

 Tried using underscores and renaming; still get the same error (CNDL0150:
 Undefined preprocessor variable).

 -Original Message-
 From: Jason Ginchereau [mailto:jason...@microsoft.com]
 Sent: Thursday, April 02, 2009 5:55 PM
 To: wix-users@lists.sourceforge.net
 Subject: Re: [WiX-users] Using Wix and Visual Studio

 Any characters in the project name that are invalid for WiX preprocessor
 variable names get automatically converted to underscores. So without
 renaming the project this should work:

 $(var.My_Test_Project.TargetFilename)


 -Original Message-
 From: Alex Cater [mailto:alex.ca...@apdcomms.com]
 Sent: Thursday, April 02, 2009 4:28 PM
 To: wix-users@lists.sourceforge.net
 Subject: Re: [WiX-users] Using Wix and Visual Studio


 I'm guessing that you cannot have spaces in a project reference variable...

 $(var.My Test Project.TargetFileName)

 Try renaming your test project to MyTestProject so the project reference
 variable becomes:

 $(var.MyTestProject.TargetFileName)

 --
 View this message in context:
 http://n2.nabble.com/Using-Wix-and-Visual-Studio-tp2578030p2578131.html
 Sent from the wix-users mailing list archive at Nabble.com.



 --
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users



 --
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users



 --
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Using Wix and Visual Studio

2009-04-03 Thread Eric Brown (REDMOND)
Multiple times.   It always comes back yellow.  There's no tooltip to provide 
any further feedback.  (Also, I've tried this with a separate  dummy project - 
I get the same problem.)

-Original Message-
From: Christopher Karper [mailto:christopher.kar...@gmail.com] 
Sent: Friday, April 03, 2009 11:07 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Using Wix and Visual Studio

That is VS saying the reference is invalid somehow.   I'm not sure what the
specific problem is, but have you tried deleting the reference and
recreating it?  Sorry I can't do more to help right now, but I'm wrestling
TFS and Team Build, and it's winning.

Chris

On Fri, Apr 3, 2009 at 1:24 PM, Eric Brown (REDMOND) 
eric.br...@microsoft.com wrote:

 Also, there is that yellow warning icon on the project reference.  I don't
 know what that means, and I can't find a reference in the documentation.

 -Original Message-
 From: Christopher Karper [mailto:christopher.kar...@gmail.com]
 Sent: Friday, April 03, 2009 10:17 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] Using Wix and Visual Studio

 I use spaces in my project names and project references, and they're all
 fine.
 I suspect his problem is something else.  I'm not sure what that is, since
 this exact scenario, even down to the environment seems to match.

 Chris

 On Fri, Apr 3, 2009 at 12:29 PM, Eric Brown (REDMOND) 
 eric.br...@microsoft.com wrote:

  Tried using underscores and renaming; still get the same error (CNDL0150:
  Undefined preprocessor variable).
 
  -Original Message-
  From: Jason Ginchereau [mailto:jason...@microsoft.com]
  Sent: Thursday, April 02, 2009 5:55 PM
  To: wix-users@lists.sourceforge.net
  Subject: Re: [WiX-users] Using Wix and Visual Studio
 
  Any characters in the project name that are invalid for WiX preprocessor
  variable names get automatically converted to underscores. So without
  renaming the project this should work:
 
  $(var.My_Test_Project.TargetFilename)
 
 
  -Original Message-
  From: Alex Cater [mailto:alex.ca...@apdcomms.com]
  Sent: Thursday, April 02, 2009 4:28 PM
  To: wix-users@lists.sourceforge.net
  Subject: Re: [WiX-users] Using Wix and Visual Studio
 
 
  I'm guessing that you cannot have spaces in a project reference
 variable...
 
  $(var.My Test Project.TargetFileName)
 
  Try renaming your test project to MyTestProject so the project reference
  variable becomes:
 
  $(var.MyTestProject.TargetFileName)
 
  --
  View this message in context:
  http://n2.nabble.com/Using-Wix-and-Visual-Studio-tp2578030p2578131.html
  Sent from the wix-users mailing list archive at Nabble.com.
 
 
 
 
 --
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
 
 
 --
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
 
 
 --
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 

 --
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users



 --
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Using Wix and Visual Studio

2009-04-03 Thread Eric Brown (REDMOND)
ProjectReference Include=..\simple\simple.vcproj
  Namesimple/Name
  Project{51fd4fe2-5128-4557-b23c-be67ca3fe745}/Project
  PrivateTrue/Private
/ProjectReference

-Original Message-
From: Simon Dahlbacka [mailto:simon.dahlba...@gmail.com] 
Sent: Friday, April 03, 2009 11:22 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Using Wix and Visual Studio

how does the ProjectReference tag look in your .wixproj file?

On Fri, Apr 3, 2009 at 9:13 PM, Eric Brown (REDMOND)
eric.br...@microsoft.com wrote:
 Multiple times.   It always comes back yellow.  There's no tooltip to provide 
 any further feedback.  (Also, I've tried this with a separate  dummy project 
 - I get the same problem.)

 -Original Message-
 From: Christopher Karper [mailto:christopher.kar...@gmail.com]
 Sent: Friday, April 03, 2009 11:07 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] Using Wix and Visual Studio

 That is VS saying the reference is invalid somehow.   I'm not sure what the
 specific problem is, but have you tried deleting the reference and
 recreating it?  Sorry I can't do more to help right now, but I'm wrestling
 TFS and Team Build, and it's winning.

 Chris

 On Fri, Apr 3, 2009 at 1:24 PM, Eric Brown (REDMOND) 
 eric.br...@microsoft.com wrote:

 Also, there is that yellow warning icon on the project reference.  I don't
 know what that means, and I can't find a reference in the documentation.

 -Original Message-
 From: Christopher Karper [mailto:christopher.kar...@gmail.com]
 Sent: Friday, April 03, 2009 10:17 AM
 To: General discussion for Windows Installer XML toolset.
 Subject: Re: [WiX-users] Using Wix and Visual Studio

 I use spaces in my project names and project references, and they're all
 fine.
 I suspect his problem is something else.  I'm not sure what that is, since
 this exact scenario, even down to the environment seems to match.

 Chris

 On Fri, Apr 3, 2009 at 12:29 PM, Eric Brown (REDMOND) 
 eric.br...@microsoft.com wrote:

  Tried using underscores and renaming; still get the same error (CNDL0150:
  Undefined preprocessor variable).
 
  -Original Message-
  From: Jason Ginchereau [mailto:jason...@microsoft.com]
  Sent: Thursday, April 02, 2009 5:55 PM
  To: wix-users@lists.sourceforge.net
  Subject: Re: [WiX-users] Using Wix and Visual Studio
 
  Any characters in the project name that are invalid for WiX preprocessor
  variable names get automatically converted to underscores. So without
  renaming the project this should work:
 
  $(var.My_Test_Project.TargetFilename)
 
 
  -Original Message-
  From: Alex Cater [mailto:alex.ca...@apdcomms.com]
  Sent: Thursday, April 02, 2009 4:28 PM
  To: wix-users@lists.sourceforge.net
  Subject: Re: [WiX-users] Using Wix and Visual Studio
 
 
  I'm guessing that you cannot have spaces in a project reference
 variable...
 
  $(var.My Test Project.TargetFileName)
 
  Try renaming your test project to MyTestProject so the project reference
  variable becomes:
 
  $(var.MyTestProject.TargetFileName)
 
  --
  View this message in context:
  http://n2.nabble.com/Using-Wix-and-Visual-Studio-tp2578030p2578131.html
  Sent from the wix-users mailing list archive at Nabble.com.
 
 
 
 
 --
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
 
 
 --
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
 
 
 --
  ___
  WiX-users mailing list
  WiX-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wix-users
 

 --
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users



 --
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users

 --
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


 --
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https

Re: [WiX-users] Using Wix and Visual Studio

2009-04-03 Thread Eric Brown (REDMOND)
That does seem to be the problem; if I use a sample C# project, it works fine.

It would be nice if this was more obvious.  Sigh.

-Original Message-
From: Christopher Karper [mailto:christopher.kar...@gmail.com] 
Sent: Friday, April 03, 2009 11:56 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Using Wix and Visual Studio

Yeah, I believe that would be the problem.   That's the missing piece of the
puzzle.

Chris

On Fri, Apr 3, 2009 at 2:40 PM, Simon Dahlbacka
simon.dahlba...@gmail.comwrote:

 I seem to remember that VC++ projects are not supported as project
 references as they do not use msbuild. Please correct me if I'm wrong
 though..

 /Simon

 On Fri, Apr 3, 2009 at 9:31 PM, Eric Brown (REDMOND)
 eric.br...@microsoft.com wrote:
 ProjectReference Include=..\simple\simple.vcproj
   Namesimple/Name
   Project{51fd4fe2-5128-4557-b23c-be67ca3fe745}/Project
   PrivateTrue/Private
 /ProjectReference
 
  -Original Message-
  From: Simon Dahlbacka [mailto:simon.dahlba...@gmail.com]
  Sent: Friday, April 03, 2009 11:22 AM
  To: General discussion for Windows Installer XML toolset.
  Subject: Re: [WiX-users] Using Wix and Visual Studio
 
  how does the ProjectReference tag look in your .wixproj file?
 
  On Fri, Apr 3, 2009 at 9:13 PM, Eric Brown (REDMOND)
  eric.br...@microsoft.com wrote:
  Multiple times.   It always comes back yellow.  There's no tooltip to
 provide any further feedback.  (Also, I've tried this with a separate  dummy
 project - I get the same problem.)
 
  -Original Message-
  From: Christopher Karper [mailto:christopher.kar...@gmail.com]
  Sent: Friday, April 03, 2009 11:07 AM
  To: General discussion for Windows Installer XML toolset.
  Subject: Re: [WiX-users] Using Wix and Visual Studio
 
  That is VS saying the reference is invalid somehow.   I'm not sure what
 the
  specific problem is, but have you tried deleting the reference and
  recreating it?  Sorry I can't do more to help right now, but I'm
 wrestling
  TFS and Team Build, and it's winning.
 
  Chris
 
  On Fri, Apr 3, 2009 at 1:24 PM, Eric Brown (REDMOND) 
  eric.br...@microsoft.com wrote:
 
  Also, there is that yellow warning icon on the project reference.  I
 don't
  know what that means, and I can't find a reference in the
 documentation.
 
  -Original Message-
  From: Christopher Karper [mailto:christopher.kar...@gmail.com]
  Sent: Friday, April 03, 2009 10:17 AM
  To: General discussion for Windows Installer XML toolset.
  Subject: Re: [WiX-users] Using Wix and Visual Studio
 
  I use spaces in my project names and project references, and they're
 all
  fine.
  I suspect his problem is something else.  I'm not sure what that is,
 since
  this exact scenario, even down to the environment seems to match.
 
  Chris
 
  On Fri, Apr 3, 2009 at 12:29 PM, Eric Brown (REDMOND) 
  eric.br...@microsoft.com wrote:
 
   Tried using underscores and renaming; still get the same error
 (CNDL0150:
   Undefined preprocessor variable).
  
   -Original Message-
   From: Jason Ginchereau [mailto:jason...@microsoft.com]
   Sent: Thursday, April 02, 2009 5:55 PM
   To: wix-users@lists.sourceforge.net
   Subject: Re: [WiX-users] Using Wix and Visual Studio
  
   Any characters in the project name that are invalid for WiX
 preprocessor
   variable names get automatically converted to underscores. So without
   renaming the project this should work:
  
   $(var.My_Test_Project.TargetFilename)
  
  
   -Original Message-
   From: Alex Cater [mailto:alex.ca...@apdcomms.com]
   Sent: Thursday, April 02, 2009 4:28 PM
   To: wix-users@lists.sourceforge.net
   Subject: Re: [WiX-users] Using Wix and Visual Studio
  
  
   I'm guessing that you cannot have spaces in a project reference
  variable...
  
   $(var.My Test Project.TargetFileName)
  
   Try renaming your test project to MyTestProject so the project
 reference
   variable becomes:
  
   $(var.MyTestProject.TargetFileName)
  
   --
   View this message in context:
  
 http://n2.nabble.com/Using-Wix-and-Visual-Studio-tp2578030p2578131.html
   Sent from the wix-users mailing list archive at Nabble.com.
  
  
  
  
 
 --
   ___
   WiX-users mailing list
   WiX-users@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wix-users
  
  
  
  
 
 --
   ___
   WiX-users mailing list
   WiX-users@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wix-users
  
  
  
  
 
 --
   ___
   WiX-users mailing list
   WiX-users@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wix-users

[WiX-users] Using Wix and Visual Studio

2009-04-02 Thread Eric Brown (REDMOND)
I just installed Wix3.0.4805.0-x64-setup from Sourceforge, and I'm trying to 
build a very simple installer from Visual Studio 2008.

I've created a WIX project as well as my application project; however, when I 
add a reference to my application project, the 'references' item has a yellow 
warning icon , and the installer fails to build:

 C:\Program Files (x86)\Windows Installer XML v3\bin\candle.exe 
 -dDevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio 
 9.0\Common7\IDE\\ -dSolutionDir=C:\Users\erbrown\Documents\Visual Studio 
 2008\Projects\My Test Project\\ -dSolutionExt=.sln -dSolutionFileName=My 
 Test Project.sln -dSolutionName=My Test Project 
 -dSolutionPath=C:\Users\erbrown\Documents\Visual Studio 2008\Projects\My 
 Test Project\My Test Project.sln -dConfiguration=Release 
 -dOutDir=bin\Release\ -dPlatform=x86 
 -dProjectDir=C:\Users\erbrown\Documents\Visual Studio 2008\Projects\My Test 
 Project\Installer\\ -dProjectExt=.wixproj 
 -dProjectFileName=Installer.wixproj -dProjectName=Installer 
 -dProjectPath=C:\Users\erbrown\Documents\Visual Studio 2008\Projects\My Test 
 Project\Installer\Installer.wixproj 
 -dTargetDir=C:\Users\erbrown\Documents\Visual Studio 2008\Projects\My Test 
 Project\Installer\bin\Release\\ -dTargetExt=.msi 
 -dTargetFileName=WindowsAccelerators.msi -dTargetName=WindowsAccelerators 
 -dTargetPath=C:\Users\erbrown\Documents\Visual Studio 2008\Projects\My Test 
 Project\Installer\bin\Release\WindowsAccelerators.msi -out 
 obj\Release\Product.wixobj -arch x86 Product.wxs
1C:\Users\erbrown\Documents\Visual Studio 2008\Projects\My Test 
Project\Installer\Product.wxs(13,0): error CNDL0150: Undefined preprocessor 
variable '$(var.My Test Project.TargetFileName)'.
1Done building project Installer.wixproj -- FAILED.
1
1Build FAILED.


So, what am I doing wrong?  All the documentation suggests that this should 
just work.

I'm running Visual Studio 2008 Team Developer edition on 64-bit Windows.
--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users