Bingo! The <util:User> made the world a happy place.

I had added the xmlns:util as other people had mentioned but that wasn't
enough. After I added the <util:User> I was able to get things to link
with the command line of:

candle -o mystuff.wixlib mystuff.wxs -ext WixUtilExtension.dll

So, in summary the total changes were:

Add the following to my mystuff.wxs:

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>

Added the util: prefix to the user tag:

<util:User Id="SomeNewUser" Name="John Bigboote" Password="supersekrit"
/>

And just referenced the WixUtilExtension.dll on the command line:

candle -o mystuff.wixlib mystuff.wxs -ext WixUtilExtension.dll

And it appears to work (I haven't created the actual .msi and installed
on my VM yet but am optimistic).

Thanks folks! That should be enough to get me working on the other
tasks.

James

-----Original Message-----
From: Alexander Shevchuk [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2008 4:27 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Trying to create a user.

1. Start Wix.chm
2. Click on "Index" tab.
3. Type "user" in "Type in the keyword to find".
4. Click on "User Element" in the list box below.
5. Click "Locate" on the toolbar.

You will see that <User> element belongs to Util schema.

1. Add reference to WixUtilExtension
2. Add reference to <Wix> element to enable intellisense.

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
     xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>

3. Add namespace prefix to User element's name:

<util:User>

You should be good to go.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2008 2:04 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Trying to create a user.

Howdy! I'm in a rut that I'm trying to break out of.



I want to create a user with my .msi file. I have the following:



8<--------------------------------------

<Component Id="RequiredUser"
Guid="{7fac0cb7-19c2-4b63-a663-e1363722d27c}">

  <User Id="SomeUser" Name="SomeUserName" Password="supersekrit" />

</Component>

-------------------------------------->8



Of course, I get the following response when I try to link everything:



C:\SomeProduct\SP\Dist\SP.wxs(461) : error CNDL0005 : The Component
element contains an unexpected child element 'User'.



Ok. I'm cool with that. I need to specify the proper Wix*Extension.dll,
right?



I'm not sure which Wix*Exension.dll so I decided to try them all with
the following command line:



8<--------------------------------------

C:\SomeProduct\SP\Dist>candle -o SP.wixobj SP.wxs  -ext
WixDifxAppExtension.dll -ext WixDirectXExtension.dll -ext
WixFirewallExtension.dll -ext WixGamingExtension.dll -ext
WixIIsExtension.dll -ext WixMsmqExtension.dll -ext WixNetFxExtension.dll
-ext WixPSExtension.dll -ext WixSqlExtension.dll -ext WixUIExtension.dll
-ext WixUtilExtension.dll -ext WixVSExtension.dll

Microsoft (R) Windows Installer Xml Compiler version 3.0.4318.0
Copyright (C) Microsoft Corporation. All rights reserved.

SP.wxs

C:\SomeProduct\SP\Dist\SP.wxs(461) : error CNDL0005 : The Component
element contains an unexpected child element 'User'.

-------------------------------------->8



What is the proper command line and extension to use? I've been banging
my head up against this and just want to get this task done so I can
move on to the next WiX related task (creating vdir, AppPool, etc) and
feel that if I get the user created the rest should fall into place.



Thanks!





James Newsom

Senior Consultant

[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

Valtech
5080 Spectrum Drive, Ste 700W
Addison, TX 75001

USA
Tel: 972-789-1200
Fax: 972-789-1340

www.valtech.us



------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to