lundi 29 décembre 2014

preprocessor variables aren't defined WIX VS2010 from HEAT generated Code


Vote count:

0




Struggling with following scenario:


Wanna create msi package win service installer package using WIX - I'd like to write reusable code as there is possibility, ill be creating more Wix projects of similar type.


So far - i looked at way where you can wix HeatDirectory ServiceInstall use XLST after Heat picked up files from release directory. Now where i keep strugling is: if i set in XSLT transformation some fields $(var.ServiceName) -> in my other include .wxi file i got variable defined, though i receive error:


Error 3 Undefined preprocessor variable '$(var.SERVICENAME)'. L:\Projekty\CSSZ\KZR\KZR - Copy\ZMRwixInstaller\filesToBeInstalledService.wxs 64 1 ZMRwixInstaller



  • i tried add variables via Votive at visual studio as well, however both ways failed and dunno why - in case of VS2010 in project->define preprocessor variables; i checked .wixproj file, however there wasn't anything saved what i wrote in VS2010.


What's more weird is that I'm using variable called BINFOLDER, which is used in HEAT generated file as WELL, but doesn't make any problems.


I saw that you can pass parameters throught Votive calling MSbuild candle( defining params in wix proj file directly - i don't like this for as spreading my variables all around thousands places - all with different syntax. It worked that way...maybe iam missing some kinda knowledge or smth, for better understanding i provide code if needed...


how to automate wix installer project



asked 51 secs ago







preprocessor variables aren't defined WIX VS2010 from HEAT generated Code

Aucun commentaire:

Enregistrer un commentaire