Re: [WiX-users] variables not working...

2013-05-30 Thread Pelusin
Hi Steve! Excuse me where did you exactly put the solution? in the
Product.wxs or where?

Thanks!
Alfredo



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7586225.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] variables not working... [P]

2013-05-30 Thread Steven Ogilvie
Classification: Public
Yes in the Product.wxs file

-Original Message-
From: Pelusin [mailto:thisispowerfulmagik_magikmu...@hotmail.com]
Sent: May-30-13 3:03 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] variables not working...

Hi Steve! Excuse me where did you exactly put the solution? in the Product.wxs 
or where?

Thanks!
Alfredo



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7586225.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 
100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead Download 
for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



This message has been marked as Public by Steven Ogilvie on May-30-13 3:20:36 
PM.

The above classification labels were added to the message by TITUS Message 
Classification. 
For more information visit www.titus.com.

--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] variables not working... [P]

2013-05-30 Thread Pelusin Peluso
 --
CustomAction Id=MakeWepApp20 Directory=MYWEBWEBSITE 
ExeCommand=[ASPNETREGIIS] -norestart -s W3SVC/1/ROOT/[WEB_APP_NAME] 
Return=check/

InstallExecuteSequence
Custom Action=MakeWepApp20 After=InstallFinalizeASPNETREGIIS 
AND NOT Installed/Custom
/InstallExecuteSequence

!-- License and images --
WixVariable Id=WixUILicenseRtf 
Value=$(var.MyWebResourceDir)\License.rtf /

!-- Specify UI --
UIRef Id=MyWebUI /

/Product
/Wix

So i don't know if all the solution you found that is this:
CustomAction Id=CA_SetProperty_DATABASE_USERNAME 
Property=DATABASE_USERNAME Value=[%USERDOMAIN]\[LogonUser]/
UI
  ProgressText Action=CA_SetProperty_DATABASE_USERNAMECA: Setting 
database username.../ProgressText
/UI

placed in both execute and UI sequence:


InstallExecuteSequence
  Custom Action='CA_SetProperty_DATABASE_USERNAME' 
After='CA_SetProperty_DATABASE_NAME'/Custom

InstallUISequence
  Custom Action='CA_SetProperty_DATABASE_USERNAME' 
After='CA_SetProperty_DATABASE_NAME'/Custom
goes in the Product file or also in my ConfigurationInitialize file, is 
because i don't  understand so good what are your refering to when you say  
placed in both execute and UI sequence

Thanks!!

 From: steven.ogil...@titus.com
 To: wix-users@lists.sourceforge.net
 Date: Thu, 30 May 2013 19:20:37 +
 Subject: Re: [WiX-users] variables not working... [P]
 
 Classification: Public
 Yes in the Product.wxs file
 
 -Original Message-
 From: Pelusin [mailto:thisispowerfulmagik_magikmu...@hotmail.com]
 Sent: May-30-13 3:03 PM
 To: wix-users@lists.sourceforge.net
 Subject: Re: [WiX-users] variables not working...
 
 Hi Steve! Excuse me where did you exactly put the solution? in the 
 Product.wxs or where?
 
 Thanks!
 Alfredo
 
 
 
 --
 View this message in context: 
 http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7586225.html
 Sent from the wix-users mailing list archive at Nabble.com.
 
 --
 Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 
 100% visibility into your production application - at no cost.
 Code-level diagnostics for performance bottlenecks with 2% overhead Download 
 for free and get started troubleshooting in minutes.
 http://p.sf.net/sfu/appdyn_d2d_ap1
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
 
 This message has been marked as Public by Steven Ogilvie on May-30-13 3:20:36 
 PM.
 
 The above classification labels were added to the message by TITUS Message 
 Classification. 
 For more information visit www.titus.com.
 
 --
 Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
 Get 100% visibility into your production application - at no cost.
 Code-level diagnostics for performance bottlenecks with 2% overhead
 Download for free and get started troubleshooting in minutes.
 http://p.sf.net/sfu/appdyn_d2d_ap1
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
  
--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] variables not working... [P]

2013-05-30 Thread Steven Ogilvie
Classification: Public
Place the custom action elements in your product.wxs file with the 
installexecutesequence and installuisequence

You also need to include your ConfigurationInitialize.wxi in your product.wxs

Via:
?include the path to this file\ ConfigurationInitialize.wxi ?

-Original Message-
From: Pelusin Peluso [mailto:thisispowerfulmagik_magikmu...@hotmail.com]
Sent: May-30-13 6:05 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] variables not working... [P]

Hi Steve, i'm beginning with WIX and i don't have any experience, si  i hope 
you could help with some doubts i have:
i have some files one is called ConfigurationInitialize.wxi and it contains 
this ?xml version=1.0 encoding=utf-8? Include
!-- +++ VIRTUAL_DIR_VAL property initialize 
+++ --
Property Id=VIRTUAL_DIR_VAL Value=MyWeb /

!-- +++ web app name properties initialize 
+++ --
Property Id=WEB_APP_NAME Value=MyWeb /

!-- +++ app pool identity properties initialize 
+++ --
?define LogonAccount=$(env.USERDOMAIN)\$(env.USERNAME)? 
  
Property Id=WEB_APP_POOL_IDENTITY_DOMAIN Value=$(env.USERDOMAIN)/
Property Id=WEB_APP_POOL_IDENTITY_NAME Value=$(env.USERNAME)/
Property Id=WEB_APP_POOL_IDENTITY_PWD Hidden=yes /

!-- +++ Connection String 
+++ --
Property Id=CONNECTION_STRING Value=Data Source=|SERVER|;Initial 
Catalog=|Database name|;User Id=|LOGIN|;Password=|PASSWORD|;Persist Security 
Info=True /

/Include

And i have the Product.wxs file that contains this:
?xml version=1.0 encoding=UTF-8?
Wix xmlns=http://schemas.microsoft.com/wix/2006/wi;
 xmlns:iis=http://schemas.microsoft.com/wix/IIsExtension;
 xmlns:util=http://schemas.microsoft.com/wix/UtilExtension;
 xmlns:netfx=http://schemas.microsoft.com/wix/NetFxExtension;
 
Product Id={FA1B9338-B6F6-413e-B67F-86CA8BCED6E8} 
 Name=MyWeb.Setup 
 Language=1033 
 Version=1.0.0.0 
 Manufacturer=MyWeb.Setup 
 UpgradeCode={E5C9F391-5787-4fd1-81E6-D1A4A91D226D}

Package InstallerVersion=200 Compressed=yes /

Media Id=1 Cabinet=MyWeb.cab EmbedCab=yes /

!-- 
* Variables 
 --
!-- Configurable install location --
PropertyRef Id=NETFRAMEWORK30_SP_LEVEL /
Property Id=WIXUI_INSTALLDIR Value=INSTALLLOCATION /

!-- Creating directories --
Directory Id=TARGETDIR Name=SourceDir
!-- Install stuff into program files folder. --
Directory Id=ProgramFilesFolder
!-- In program files create folder with name MyWeb. --
Directory Id=INSTALLLOCATION Name=MyWeb
!-- This is the folder where the website content will be 
located -- 
Directory Id=MYWEBWEBSITE Name=Website
!-- Continue in DirectoryRef with specific name --
/Directory
!-- Here you can add another directories --
/Directory
/Directory
/Directory

!-- Complete feature which will be installed. --
Feature Id=Complete
 Title=MyWeb - My awesome web
 Level=1
 Display=expand
 ConfigurableDirectory=INSTALLLOCATION
 
 !-- Main content of the Complete feature. --
Feature Id=MainContent
 Title=MyWeb Website
 Description=The website content
 Level=1

!-- Include IIS Configuration. --
ComponentGroupRef Id=MyWebIssConfiguration /

!-- Include web content. --
ComponentGroupRef Id=MyWebWebComponents /

!-- Perform changes in the web.config file. --
ComponentRef Id=WebConfigCmp /

/Feature
/Feature

DirectoryRef Id=MYWEBWEBSITE
!-- Component handling the web.config --
Component Id=WebConfigCmp Guid=
!-- Copy web.config to MYWEBWEBSITE folder. --
File Id=WebConfigFile KeyPath=yes 
Source=$(var.publishDir)\Web.config Vital=yes /
util:XmlFile Id=ModifyConnectionString
 Action=setValue
 Permanent=yes
 
ElementPath=/configuration/connectionStrings/add[\[]@name='MyConnectionString'[\]]
 Name=connectionString
 File=[#WebConfigFile]
 Value=[CONNECTION_STRING]
 SelectionLanguage=XSLPattern
 Sequence=1 /
/Component
/DirectoryRef

!-- .NET

Re: [WiX-users] variables not working...

2012-09-21 Thread Steven Ogilvie
Using the env. Variable retrieves it from my local environment at build time... 
so if someone else runs the install on another machine they see my domain\my 
user logon :)

Which won't work

Thanks,

Steve

-Original Message-
From: MikeGa [mailto:mjgalla...@comcast.net] 
Sent: September-20-12 11:59 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] variables not working...

StevenOgilvie wrote
 I have these two set:
 
   ?define LogonUserName = [%USERNAME]?
   ?define LogonDomainName = [%USERDOMAIN]?
 
 Then this property:
 Property Id=DATABASE_USERNAME Secure=yes
 Value=$(var.LogonDomainName)\$(var.LogonUserName) / but when I use 
 it at runtime I see this:
 [%USERDOMAIN]\[%USERNAME]

Have you tried defining the variables this way:

?define LogonUserName=$(env.USERNAME)? ?define 
LogonDomainName=$(env.USERDOMAIN)?

I think you could even combine them and make one variable that you could
use:

?define LogonAccount=$(env.USERDOMAIN)\$(env.USERNAME)?
 
Property Id=DATABASE_USERNAME Secure=yes Value=$(var.LogonAccount) / 




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7580717.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] variables not working...

2012-09-21 Thread MikeGa
Steven Ogilvie wrote
 Using the env. Variable retrieves it from my local environment at build
 time... so if someone else runs the install on another machine they see my
 domain\my user logon :)
 
 Which won't work

Well, that was a doh moment *lol* Sorry about that.

The CA method posted earlier would work or you could use SetProperty which
creates the type 51 CA for you. Something like this would do it:

SetProperty Id=DATABASE_USERNAME Value=[%USERDOMAIN]\[%USERNAME]
Before=InstallInitialize Sequence=execute  /



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7580739.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] variables not working...

2012-09-21 Thread John Cooper
%Id is used to probe environment variables.  So your instinct about scripts was 
near the mark.

--
John Merryweather Cooper
Build  Install Engineer - ESA
Jack Henry  Associates, Inc.®
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com 




-Original Message-
From: Nick Ramirez [mailto:nickra...@hotmail.com] 
Sent: Thursday, September 20, 2012 7:17 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] variables not working...

That %VariableName syntax, I'm not familiar with that in WiX. It reminds me of 
parameter values in a Windows shell script? Are you wanting to collect the 
domain\username from the person who launches the installer? If that's the case, 
if you wanted them to pass that in on the command line, you could use the 
syntax:

msiexec /i myInstaller.msi DATABASE_USERNAME=thisdomain\Fred. 

I don't /think/ it will complain about using a backslash in the value. You 
would not need to declare the DATABASE_USERNAME in your WiX markup. Or add a UI 
to the installer where the user can enter in that info via a text box control. 
Or are you wanting to do something different?



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7580712.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] variables not working...

2012-09-21 Thread Nick Ramirez
Could you use a custom action to get the environment variables at install
time? In managed code:

System.Environment.GetEnvironmentVariable(String name)

I'm not sure if there's a declarative way of doing this in WiX.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7580750.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] variables not working...

2012-09-21 Thread Neil Sleightholm
Did you try my suggestion of LogonUser?
SetProperty Id=DATABASE_USERNAME Value=[LogonUser] 
Before=InstallInitialize Sequence=execute /

The problem is that this will only return the name and not the domain so you 
might have to resort to a custom action.

I don't think reading the environment variables will work as the MSI is in the 
context of the msiexec service not the user that is logged on.

Neil

-Original Message-
From: StevenOgilvie [mailto:sogil...@msn.com] 
Sent: 21 September 2012 16:37
To: wix-users@lists.sourceforge.net
Subject: -SPAM- Re: [WiX-users] -SPAM- variables not working...

Sigh, now I am getting nothing...

I have tried:


SetProperty Id=DATABASE_USERNAME Value=[%USERDOMAIN]\[%USERNAME]
Before=InstallInitialize Sequence=execute  /

where LogonDomainName is:
 ?define LogonDomainName = [%USERDOMAIN]?

how hard can it be to get a system variable at runtime?

Steve



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7580744.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] variables not working...

2012-09-21 Thread Hoover, Jacob
  Change Sequence to ui,  and then in the install execute sequence, you will 
probably want to abort if the property isn't assigned.  This means users double 
clicking the MSI would get the value assigned from the install ui sequence, but 
automated deployments or quiet/silent installs would be forced to pass the 
domain\username as a property on the command line. 

  I assume this is a per machine MSI not a per user MSI.

  If you need to get more extravagant, then you would be looking at passing 
UserSID to a CA and decoding the account info.

string userSid = session.CustomActionData[UserSID];
SecurityIdentifier sid = new SecurityIdentifier(userSid);
NTAccount ntAccount = 
(NTAccount)sid.Translate(typeof(NTAccount));
string username = ntAccount.ToString();

or you could look at some existing projects like http://msiext.codeplex.com/


-Original Message-
From: Neil Sleightholm [mailto:n...@x2systems.com] 
Sent: Friday, September 21, 2012 12:07 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] variables not working...

Did you try my suggestion of LogonUser?
SetProperty Id=DATABASE_USERNAME Value=[LogonUser] 
Before=InstallInitialize Sequence=execute /

The problem is that this will only return the name and not the domain so you 
might have to resort to a custom action.

I don't think reading the environment variables will work as the MSI is in the 
context of the msiexec service not the user that is logged on.

Neil

-Original Message-
From: StevenOgilvie [mailto:sogil...@msn.com] 
Sent: 21 September 2012 16:37
To: wix-users@lists.sourceforge.net
Subject: -SPAM- Re: [WiX-users] -SPAM- variables not working...

Sigh, now I am getting nothing...

I have tried:


SetProperty Id=DATABASE_USERNAME Value=[%USERDOMAIN]\[%USERNAME]
Before=InstallInitialize Sequence=execute  /

where LogonDomainName is:
 ?define LogonDomainName = [%USERDOMAIN]?

how hard can it be to get a system variable at runtime?

Steve



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7580744.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] variables not working...

2012-09-21 Thread MikeGa
Neil Sleightholm wrote
 I don't think reading the environment variables will work as the MSI is in
 the context of the msiexec service not the user that is logged on.
 
 -Original Message-
 From: StevenOgilvie [mailto:

 sogilvie@

 ] 
 Sent: 21 September 2012 16:37
 To: 

 wix-users@.sourceforge

 Subject: -SPAM- Re: [WiX-users] -SPAM- variables not
 working...
 
 Sigh, now I am getting nothing...

I tried this to verify it this morning and the install log shows that the
type 51 created by SetProperty fired off:

MSI (s) (0C:60) [10:36:29:726]: Doing action: SetDATABASE_USERNAME
Action 10:36:29: SetDATABASE_USERNAME. 
Action start 10:36:29: SetDATABASE_USERNAME.
MSI (s) (0C:60) [10:36:29:726]: PROPERTY CHANGE: Adding DATABASE_USERNAME
property. Its value is '32BitWin7\test_user'.
Action ended 10:36:29: SetDATABASE_USERNAME. Return value 1.
MSI (s) (0C:60) [10:36:29:726]: Doing action: InstallInitialize

and the property is found at the end of the install when the properties are
dumped:

Property(S): DATABASE_USERNAME = 32BitWin7\test_user

So you should see those sort of entries in your install log.

I didn't use any defines at all. I just added the SetProperty element under
Product so that it was included in the install:

SetProperty Id=DATABASE_USERNAME Value=[%USERDOMAIN]\[%USERNAME]
Before=InstallInitialize Sequence=execute  / 


In Orca, the CA's row in the CustomAction table looks like this:

SetDATABASE_USERNAME51  DATABASE_USERNAME   
[%USERDOMAIN]\[%USERNAME]

A set command shows that the values match that of the user and domain. 

USERDOMAIN=32BitWin7
USERNAME=test_user  

It worked with both a local account and a domain account.

Does the install log show the CA firing off? Is the CA visible in the
CustomAction table using Orca?




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7580761.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] variables not working...

2012-09-21 Thread StevenOgilvie
Finally got it to work

CustomAction Id=CA_SetProperty_DATABASE_USERNAME
Property=DATABASE_USERNAME Value=[%USERDOMAIN]\[LogonUser]/
UI
  ProgressText Action=CA_SetProperty_DATABASE_USERNAMECA: Setting
database username.../ProgressText
/UI

placed in both execute and UI sequence:

InstallExecuteSequence
  Custom Action='CA_SetProperty_DATABASE_USERNAME'
After='CA_SetProperty_DATABASE_NAME'/Custom

InstallUISequence
  Custom Action='CA_SetProperty_DATABASE_USERNAME'
After='CA_SetProperty_DATABASE_NAME'/Custom

thanks to all who helped!!

Steve




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7580766.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] variables not working...

2012-09-20 Thread StevenOgilvie
Hi all,

I have these two set:

  ?define LogonUserName = [%USERNAME]?
  ?define LogonDomainName = [%USERDOMAIN]?

Then this property:
Property Id=DATABASE_USERNAME Secure=yes
Value=$(var.LogonDomainName)\$(var.LogonUserName) /

but when I use it at runtime I see this:
[%USERDOMAIN]\[%USERNAME]

thanks,

Steve




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] variables not working...

2012-09-20 Thread Nick Ramirez
That %VariableName syntax, I'm not familiar with that in WiX. It reminds me
of parameter values in a Windows shell script? Are you wanting to collect
the domain\username from the person who launches the installer? If that's
the case, if you wanted them to pass that in on the command line, you could
use the syntax:

msiexec /i myInstaller.msi DATABASE_USERNAME=thisdomain\Fred. 

I don't /think/ it will complain about using a backslash in the value. You
would not need to declare the DATABASE_USERNAME in your WiX markup. Or add a
UI to the installer where the user can enter in that info via a text box
control. Or are you wanting to do something different?



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7580712.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] variables not working...

2012-09-20 Thread Hoover, Jacob
I'm trying to remember if the initial value of a property is formatted. It may 
be better to use a standard custom action to assign the value of the property 
at runtime.

Ex:
CustomAction Id=SetDATABASE_USERNAME Property= DATABASE_USERNAME  
Value=[%USERDOMAIN]\[%USERNAME] / 

And then in the install UI or install execute sequence, schedule the CA.

Custom Action= SetDATABASE_USERNAME  After=CostFinalize/

Note, there is no guarantee that those environment variables will always be 
there. (Local users will have PC name for the domain.)

Jacob

-Original Message-
From: StevenOgilvie [mailto:sogil...@msn.com] 
Sent: Thursday, September 20, 2012 4:27 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] variables not working...

Hi all,

I have these two set:

  ?define LogonUserName = [%USERNAME]?
  ?define LogonDomainName = [%USERDOMAIN]?

Then this property:
Property Id=DATABASE_USERNAME Secure=yes
Value=$(var.LogonDomainName)\$(var.LogonUserName) /

but when I use it at runtime I see this:
[%USERDOMAIN]\[%USERNAME]

thanks,

Steve




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free 
today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] variables not working...

2012-09-20 Thread MikeGa
StevenOgilvie wrote
 I have these two set:
 
   ?define LogonUserName = [%USERNAME]?
   ?define LogonDomainName = [%USERDOMAIN]?
 
 Then this property:
 Property Id=DATABASE_USERNAME Secure=yes
 Value=$(var.LogonDomainName)\$(var.LogonUserName) /
 but when I use it at runtime I see this:
 [%USERDOMAIN]\[%USERNAME]

Have you tried defining the variables this way:

?define LogonUserName=$(env.USERNAME)?
?define LogonDomainName=$(env.USERDOMAIN)?

I think you could even combine them and make one variable that you could
use:

?define LogonAccount=$(env.USERDOMAIN)\$(env.USERNAME)?
 
Property Id=DATABASE_USERNAME Secure=yes Value=$(var.LogonAccount) / 




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7580717.html
Sent from the wix-users mailing list archive at Nabble.com.

--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users