Hey Bala,
Unfortunately I have never done this, I am actually very new to WIX as well.
It sounds reasonable though. I would email the
wix-users@lists.sourceforge.net<mailto:wix-users@lists.sourceforge.net> and ask
them.
Lindsay
From: Bala Shanmugam (Excell Data Corporation)
Sent: Monday, April 09, 2007 12:37 PM
To: Lindsay Harris
Subject: RE: Help need on <Registry> element
Hi Lindsay,
Hope they have killed the devwix alias L L L. I am doing something more in sql
installation using WIX.
Is it possible to pass input parameter to .sql file which is wrapped inside
<SqlScript> element in WIX.
I am having a .sql file and some of the stored procedure inside the .sql needs
input parameter to execute.
If you have any other way or solution to accomplish this, please let me know.
Thanks,
-Bala-
From: Lindsay Harris
Sent: Thursday, April 05, 2007 2:52 PM
To: Bala Shanmugam (Excell Data Corporation)
Subject: RE: Help need on <Registry> element
J
From: Bala Shanmugam (Excell Data Corporation)
Sent: Thursday, April 05, 2007 2:39 PM
To: Lindsay Harris
Subject: RE: Help need on <Registry> element
Lindsay, I am really sorry to disturb you often with my questions.
From: Lindsay Harris
Sent: Friday, March 30, 2007 10:35 AM
To: Bala Shanmugam (Excell Data Corporation)
Subject: RE: Help need on <Registry> element
Processor architecture refers to the architecture of your dev box. _BuildArch
refers to what kind of build you are doing... so it depends on your
requirements.l
From: Bala Shanmugam (Excell Data Corporation)
Sent: Thursday, March 29, 2007 5:50 PM
To: Lindsay Harris
Subject: RE: Help need on <Registry> element
Yes, I am able to see a lot.
I found PROCESSOR_ARCHITECTURE = x86.
So should I use this variable like $(evn.PROCESSOR_ARCHITECURE) = "" ?
Thanks,
-Bala-
From: Lindsay Harris
Sent: Thursday, March 29, 2007 5:43 PM
To: Bala Shanmugam (Excell Data Corporation)
Subject: RE: Help need on <Registry> element
If you have a razzle build window open, you can type "SET" and it will show
you all the different environment variables and their values.
Lindsay
From: Bala Shanmugam (Excell Data Corporation)
Sent: Thursday, March 29, 2007 5:41 PM
To: Lindsay Harris
Subject: RE: Help need on <Registry> element
Yes, this is my requirement.
BTW how the $(evn._BuildArch) variable has the value of x86 or ia64?
Just in curiosity would like to know how the environment variables are accessed
and where we can find the env variables?
Thanks a lot
-Bala-
From: Lindsay Harris
Sent: Thursday, March 29, 2007 5:26 PM
To: Bala Shanmugam (Excell Data Corporation)
Subject: RE: Help need on <Registry> element
Bala,
I'm not sure what you mean... do u mean that u want to conditionally set
whether or not it is a 64bit component?
You can do that like this:
<?xml version="1.0" encoding="UTF-8"?>
<?if $(env._BuildArch) = "x86" ?>
<?define Win64 = no ?>
<?elseif $(env._BuildArch) = "ia64" ?>
<?define Win64 = yes ?>
<?elseif $(env._BuildArch) = "amd64" ?>
<?define Win64 = yes ?>
<?endif?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi">
<product .....
<package .....
<directory ...
<Component Id="someComponent" DiskId="1" Guid="someGUID"
Win64="$(var.Win64)">
And that way you are setting the Win64 attribute to a variable.
Is that what you mean?
Lindsay
From: Bala Shanmugam (Excell Data Corporation)
Sent: Thursday, March 29, 2007 5:11 PM
To: Lindsay Harris
Subject: RE: Help need on <Registry> element
Hi Lindsay,
I have another scenario with 64 bit VS 32 bit server.
Some of the servers are 64 bit and some of them are 32 bit.
So the <component> should support for both the bits 64 & 32.
Is it possible to have a condition saying even if its 64 or 32 bit OS, it needs
to install?
I think I can add a <condition> above <Registry> and it should be " OR "
condition either 64 or 32.
Do u have any samples on this how to perform the <condition> in this case?
Thanks,
-Bala-
From: Lindsay Harris
Sent: Thursday, March 29, 2007 1:31 PM
To: Bala Shanmugam (Excell Data Corporation)
Subject: RE: Help need on <Registry> element
Haha glad its working. J
From: Bala Shanmugam (Excell Data Corporation)
Sent: Thursday, March 29, 2007 12:42 PM
To: Lindsay Harris
Subject: RE: Help need on <Registry> element
It is working now Lindsay.
We need to say Win64=yes inside the component.
Great J
Thanks for your support. You are really great.
-Bala-
From: Lindsay Harris
Sent: Thursday, March 29, 2007 12:31 PM
To: Bala Shanmugam (Excell Data Corporation)
Subject: RE: Help need on <Registry> element
Is this Vista? 32 bit or 64 bit?
Did u double check to make sure it isn't going in HKCU/yourSID/software....
From: Bala Shanmugam (Excell Data Corporation)
Sent: Thursday, March 29, 2007 12:25 PM
To: Lindsay Harris
Subject: RE: Help need on <Registry> element
Hi Lindsay,
It is NOT working. Also no sign of creating the folder "Server" in
HKLM\SOFTWARE\Microsoft
Even I have referred some other files and examples and hope I am doing the
correct thing but still not getting what I want L
Thanks ,
-Bala-
From: Lindsay Harris
Sent: Thursday, March 29, 2007 12:19 PM
To: Bala Shanmugam (Excell Data Corporation)
Subject: RE: Help need on <Registry> element
You don't need to use it anywhere, just paste that line into your wxs file,
somewhere inbetween your product tag and the beginning of your
directories/components.
I'm not sure this is going to solve your problem, just an idea..
Lindsay
From: Bala Shanmugam (Excell Data Corporation)
Sent: Thursday, March 29, 2007 12:17 PM
To: Lindsay Harris
Subject: RE: Help need on <Registry> element
Hi Lindsay,
Thanks for replying me.
After defining the property, where I should use this property ID? Or is it
just only the declaration purpose?
Please advice.
Thanks,
-Bala-
From: Lindsay Harris
Sent: Thursday, March 29, 2007 11:51 AM
To: Bala Shanmugam (Excell Data Corporation); DevDiv WiX; Windows Installer XML
Subject: RE: Help need on <Registry> element
Have u tried setting the allusers property to 1? (means a machine install
instead of per-user install).
<Property Id="ALLUSERS" Value="1" />
Although I am not sure this is the problem, because you are specifying HKLM...
Lindsay
From: Bala Shanmugam (Excell Data Corporation)
Sent: Thursday, March 29, 2007 11:39 AM
To: DevDiv WiX; Windows Installer XML
Subject: Help need on <Registry> element
Hi All,
I am using WIX 2.0 to create the MSI. I need to update some registry values in
HKLM\SOFTWARE\Microsoft\...
After running my MSI, the values are NOT updating in the specified registry
path. Am I missing something?
Below is my code
<Directory Id="TARGETDIR" Name="SourceDir">
<Component Id="Web_Registry" Guid="0f9dbc9f-6651-435a-9ef3-af90f3766250"
DiskId="1" KeyPath ="yes">
<Registry Root='HKLM' Id='CONNSTR'
Key='SOFTWARE\Microsoft\Server'
Name='ServerName'
Type='string'
Value='testserver' Action='write'>
</Registry>
</Component>
< Directory>
<Feature Id="Feature" Title=" Feature" Level="1">
<ComponentRef Id=" Web_Registry"/>
</Feature>
I have also tried to change few attribute properties of component and registry
element with different Action property, but still facing same issue.
Please help me to solve this soon as it needs to reach the PROD ASAP.
Thanks a lot
-Bala-
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users