[WiX-users] FW: WiX using with MSBuild can't reference other project: error CNDL0150: Undefined preprocessor variable

2012-02-14 Thread Ruslan Albu
Hi, 

 

I use Votive (WiX 3.5) with VS 2008. I have added two projects in the
solution. One is a WiX project and another one is a library project
which implements a CustomAction. WiX project references the library:

 

ItemGroup

ProjectReference
Include=..\InstallDataBase\InstallDataBase.csproj

  NameInstallDataBase/Name

  Project{e67df855-60e0-4abf-abf7-46ecea4f64a1}/Project

  PrivateTrue/Private

  DoNotHarvestTrue/DoNotHarvest

 
RefProjectOutputGroupsBinaries;Content;Satellites/RefProjectOutputGro
ups

  RefTargetDirINSTALLLOCATION/RefTargetDir

/ProjectReference

  /ItemGroup

 

And I use the following:

Binary Id=DBScriptAction
SourceFile=$(var.InstallDataBase.TargetDir)$(var.InstallDataBase.Target
Name).CA.dll /

to call the custom action from the WiX project. It works ok when I build
the WiX project in Visual Studio.

 

But it doesn't work when I build it using MSBuild task. In my build
definition I use the following:

MSBuild Projects=@(WixProject) Condition='$(CreateSetup)'=='true'
Properties
=MsiInstallVersion=$(Major).$(Minor).$(Build).$(Revision);AutoBuild=Tru
e/

 

I'm getting this error when using MSBuild:

 

Product.wxs(361): error CNDL0150: Undefined preprocessor variable
'$(var.InstallDataBase.TargetDir)'.

 

I checked the build outputs from both VS and MSBuild and the difference
is that when building in MSBuild the candle.exe doesn't have the
properties for the library project (for instance
-dLibraryProjectName.ProjectDir, etc.).

 

It looks to me that when building wixproj from MSBuild task candle do
not provide the properties for the referenced project.

 

 

Thanks,

--

Ruslan Albu

 

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] The same Windows Service installed under different names

2011-01-14 Thread Ruslan Albu
I have created an installation for Windows Service and everything works
well. Next I need to allow the same service to be installed more times
under different names. For example, if I have the service 'MyService' I
need to install two services MyServiceChart and MyServiceImage. These
names will appear in MMC.

There are two issues with this:

1.  I need a way to specify the last bit (Chart or Image) for the
DisplayName attribute in the ServiceInstall element in .wxs file.  I'm
thinking to add a new dialog in UI with a textbox on it and append this
value to the DisplayName. Is this possible?

2.  When I start the MSI the 'Change repair or remove installation'
dialog pops up. I recon I can get rid of this and have the standard
dialog to allow to install a new instance by changing the Product GUID
to *. But in this case I will not be able to update/patch the current
installation.

Is it possible to implement this in WIX? How can I tackle these issues?

Thanks

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users