Hello guys I got another question. In my installer I need to create a
file in INSTALlDIR with inputs from the user using a custom action, I
want to have my CA generic enough so it gets a property and writes a
line each time it's called. Right now my code is as follows:
<Publish Dialog="VerifyReadyDlg" Control="Install" Event="[APPEND]"
Value="0" Order="4">OVERWRITE="1"</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Install" Event="[PROPERTY]"
Value="PLATFORM" Order="4">OVERWRITE="1"</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Install" Event="[VALUE]"
Value="[PLATFORM]" Order="4">OVERWRITE="1"</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Install" Event="DoAction"
Value="CreateAction" Order="6">NOT Installed AND OVERWRITE="1"</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Install" Event="[APPEND]"
Value="1" Order="7">OVERWRITE="1"</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Install" Event="[PROPERTY]"
Value="LOGLEVEL" Order="8">OVERWRITE="1"</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Install" Event="[VALUE]"
Value="[PLATFORM]" Order="8">OVERWRITE="1"</Publish>
<Publish Dialog="VerifyReadyDlg" Control="Install" Event="DoAction"
Value="CreateAction" Order="9">NOT Installed AND OVERWRITE="1" AND
OVERWRITE="1"</Publish>
And the custom action creates the file by using fstream.open(), and
depending on another property it will choose whether to open it with
append or not. But then I figured that at VerifyReadyDlg this method
will not work because INSTALLDIR was not created yet so open() always
fails and no file is created (I don't know if I remembered wrong, but
the code above worked for sometime then it stopped working, I think it's
just my head messing with me). So what I really want to do is to do the
things above (right now, just two lines of different property values)
and schedule it AFTER InstallFiles, or even BEFORE InstallFinalize. So
what should I do in order to achieve this while keeping my CA generic
enough? Is there anyway to schedule a segment of wix code like above in
InstallExecuteSequence? Thanks for helping!!!!
Roger Yen
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute non-public
information. Any use of this information by anyone other than the intended
recipient is prohibited. If you have received this transmission in error,
please immediately reply to the sender and delete this information from your
system. Use, dissemination, distribution, or reproduction of this transmission
by unintended recipients is not authorized and may be unlawful.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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