I believe that the problem lies in your "SetTargetPath" event. What
you're actually doing ,say the website name is "MyWebsite", is to set
the target path to be "MyWebsite"...

That's not what you want. What you should do is:

 

<Publish Event="SetTargetPath"
Value="[ProgramFilesFolder][NEW_WEBSITENAME]">1</Publish>

 

Hope that'll fix the error.

 

MP.

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of dB.
Sent: Sunday, January 06, 2008 12:58 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] SetTargetPath event before CustomizeDlg

 

I am trying to set the target path based on previous input from the
user. In my case, I want to ask the user for a website name (eg.
MyWebsite) and set the default target path to C:\Program
Files\MyWebsite.

 

I built the dialog that asks for the website name, then I tried this,
but whatever I put in the value I get a DEBUG: Error 2872 error message:
The argument of the CheckPath control event on dialog WebsiteNameDlg is
invalid.

 

    <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
Height="17" Default="yes" Text="!(loc.WixUINext)">

     <Publish Event="SetTargetPath"
Value="[NEW_WEBSITENAME]">1</Publish>

    </Control>

 

Can this be done?

 

Thx

dB.

 

-dB.

dblock.org <http://www.dblock.org/>  / foodcandy.com
<http://www.foodcandy.com/> 

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to