Re: [WiX-users] Running WiX tools from Cygwin, environment variables

2009-04-04 Thread Heath Stewart
If you use a .wixproj, you can run msbuild /v:diag and it will show all the
variables for the process - whether environment variables or project
variables. Details about writing a .wixproj file (wraps all the candle,
light, etc. commands into a build project) can be found in wix.chm.

On Fri, Apr 3, 2009 at 6:59 PM, Geoff Kennedy geoff.kenn...@belcarra.comwrote:

 Hi, new to the group!

 My question is this:

 I have a Cygwin shell script which sets an environment variable called
 REVISION (set to anotherversion).

 My .wxs has the following code in it:

   ?define BUILD=none?

   !-- Override BUILD if the environment variable REVISION is preset
 --
   ?ifdef $(env.REVISION) ?
   ?define BUILD=$(env.REVISION) ?
   ?endif?

 I know the variable exists, but Candle doesn't seem to pick it up.

 The idea is that BUILD should be set to anotherversion.

 Has anyone else tried to run WiX in this way?  My job needs this, so
 any tips are welcome!
 I've had zero success exploring the usual avenues (Google, FAQs,
 etc.).

 I'm also new to XML, is there a way that I can show the incoming env.
 vars from within my .wxs file?

 Thanks to all.

 GLK

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




-- 
Heath Stewart
Deployment Technologies Team, Microsoft
http://blogs.msdn.com/heaths
--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] ShellNew/FileName

2009-04-04 Thread nathanjphillips

It seems like Wix doesn't support the ShellNew/FileName registry key under 
Extensions in order to allow Windows Explorer's New command to create a new 
file. Is it better to start with what Wix does provide using Extension and then 
add some extra registry keys to extend it or to do the whole setup using 
Registry entries for more complicated requirements like this?

TIA, Nathan
-- 
View this message in context: 
http://n2.nabble.com/ShellNew-FileName-tp2584703p2584703.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


Re: [WiX-users] How refer Binary file in CA

2009-04-04 Thread Michael
Thanks Rob Mensching,
   But, I don't want to copy this file to computer. I want to refer it 
from installer like bitmap image. Is it possible?

Regards,
-SMR
Rob Mensching wrote:
 You'd have to extract the Binary out with the CustomAction.

 Michael wrote:
   
 Hi,

  I'm new to Wix. I'm using Wix v2. I have dll CA. I need to pass a exe
 as dll CA data which is referred in binary.
 sample code snippet,

 CustomAction Id=ImportFile Property=ExecCmdLine Value='[UTIL]
 /import [TARGETDIR]Sample.txt' /
 I need to pass Binary UTIL to custom action
 CustomAction Id=FileImp BinaryKey=CustAction DllEntry=importFile
 Execute=immediate Return=check/
 CustomAction Id=FileImpProperty Property=FileImp
 Value=[ExecCmdLine]/

 Binary Id=UTIL src=Util.exe/
 Binary Id=CustAction src=custaction.dll/

 Please help me out.

 Thanks.

 Regards,
 -SMR

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


 No virus found in this incoming message.
 Checked by AVG - www.avg.com 
 Version: 8.0.238 / Virus Database: 270.11.40/2039 - Release Date: 04/03/09 
 06:19:00

   


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


Re: [WiX-users] Multiple file extensions per ProgID

2009-04-04 Thread nathanjphillips

To answer my own question, the bit that was causing the problem was, of course, 
the duplicated Verb, not the duplicated Extension. The Verb is stored under the 
ProgId, not under the extension, despite the way things are laid out in Wix and 
therefore there can only be one Verb per ProgId. The following code achieves 
what I was hoping for:

  Directory Id=ProgramFilesFolder SourceName=program files 
ShortSourceName=PROGRA~1
Directory Id=APPLICATIONFOLDER Name=MyApp 
ShortName=MyAppShortName DiskId=1
  Component Id=MainApplication Guid=MyGuid1
...
ProgId Id=MyApp.MyDocType Description=[ProductName] Document 
Icon=ID_MyGuid2 IconIndex=1
  Extension Id=wpl
Verb Id=Open Command=Open TargetFile=ID_MyGuid3 
Argument=/dde /
  /Extension
  Extension Id=wow-playlist /
/ProgId


The following code causes 
MyApp.wxs(MyLineNo) : error LGHT0130 : The primary key 
'regCEECC3C927D10BCB192BEE13F4F46715' is duplicated in table 'Registry'.  
Please remove one of the entries or rename a part of the primary key to avoid 
the collision.


-- 
View this message in context: 
http://n2.nabble.com/Multiple-file-extensions-per-ProgID-tp2580359p2585695.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


Re: [WiX-users] Register com objects

2009-04-04 Thread Alexey Khrulev
Use heat.exe tool to extract COM-related information.

2009/3/30 sandun css sandun...@gmail.com

 Hi,

 Is there a way in WiX, to register a COM object, without using custom
 actions?

 Thanks,
 Sandun.

 --
 ___
 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] Best Practice for using Variables

2009-04-04 Thread Brian Rogers
Hey Kai-Uwe,

I imagine that the varible definations are not correctly declared in your
wixproj file. What you have listed below should work with $(var.xxx). The
!(loc.xxx) and !(wix.xxx) is used later by lit or light to replace the
variables for localization or wixlibs.

Thanks,

Brian Rogers
Intelligence removes complexity. - Me
http://icumove.spaces.live.com


On Fri, Apr 3, 2009 at 3:00 AM, Kai-Uwe Teske kai-uwe.te...@inosoft.comwrote:

 Hi All,

 i am stumbling around with my first Wix Project using variables.
 Could someone explain when i had to use $(var.xyz) and !(loc.abc)?

 Why i couldn't write things like that in my Directory Attribute?
 Directory Id=unique
 ende?lp=endep=thMx..search=unique_id$(var.abc) Name=$(var.abc)
 Error: Undefined preprocessor variable '$(var.abc)'.

 Directory Id=unique
 ende?lp=endep=thMx..search=unique_id!(loc.abc) Name=!(loc.abc)
 Error: The Directory/@Id attribute's value, 'unique_id!(loc.abc)', is
 not a legal identifier.

 Why i couldn't write $(var.name) in my Source Attribute,
 File Id=_id Name=FileName.dll
 Source=$(var.name)\WPF.Controls\WPF.Controls.dll /
 but !(loc.name) works?
 File Id=_id Name=FileName.dll
 Source=!(loc.name)\WPF.Controls\WPF.Controls.dll /


 All vars are defined in a include.wxi  not in a .wixproj file
 All loc are defined in WixLocalization file.

 Wix Version 3.0.5120.0 3.0.5120.0/

 Best regards

 Kai-Uwe



 --
 ___
 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] ShellNew/FileName

2009-04-04 Thread nathanjphillips

OK, done this, which seems to work:

ProgId Id=MyApp.MyFileType Description=My File Type Icon=ID_GUID1 
IconIndex=4
  Extension Id=my-file-type
Verb Id=Open Command=open TargetFile=ID_GUID1 Argument=/dde /
  /Extension
/ProgId
File Id=ID_GUID2 Source=Sample.my-file-type Name=Sample.my-file-type /
RegistryValue Root=HKCR Key=.my-file-type\ShellNew Name=FileName 
Value=[#ID_GUID2] Type=string Action=write /


-- 
View this message in context: 
http://n2.nabble.com/ShellNew-FileName-tp2584703p2586782.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


Re: [WiX-users] Running WiX tools from Cygwin, environment variables

2009-04-04 Thread Geoff Kennedy
Thanks HeathI'll look into that.




Message: 2
Date: Sat, 4 Apr 2009 01:36:32 -0700
From: Heath Stewart clubs...@gmail.com
Subject: Re: [WiX-users] Running WiX tools from Cygwin, environment
   variables
To: General discussion for Windows Installer XML toolset.
   wix-users@lists.sourceforge.net
Message-ID:
   c59b73a0904040136l6cfa064dke88864342a2d1...@mail.gmail.com
Content-Type: text/plain; charset=UTF-8

If you use a .wixproj, you can run msbuild /v:diag and it will show all the
variables for the process - whether environment variables or project
variables. Details about writing a .wixproj file (wraps all the candle,
light, etc. commands into a build project) can be found in wix.chm.

On Fri, Apr 3, 2009 at 6:59 PM, Geoff Kennedy geoff.kenn...@belcarra.com
wrote:

 Hi, new to the group!

 My question is this:

 I have a Cygwin shell script which sets an environment variable called
 REVISION (set to anotherversion).

 My .wxs has the following code in it:

   ?define BUILD=none?

   !-- Override BUILD if the environment variable REVISION is preset
 --
   ?ifdef $(env.REVISION) ?
   ?define BUILD=$(env.REVISION) ?
   ?endif?

 I know the variable exists, but Candle doesn't seem to pick it up.

 The idea is that BUILD should be set to anotherversion.

 Has anyone else tried to run WiX in this way?  My job needs this, so
 any tips are welcome!
 I've had zero success exploring the usual avenues (Google, FAQs,
 etc.).

 I'm also new to XML, is there a way that I can show the incoming env.
 vars from within my .wxs file?

 Thanks to all.

 GLK


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




--
Heath Stewart
Deployment Technologies Team, Microsoft
http://blogs.msdn.com/heaths
--
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users