I'm new too, so I'm gonna be verbose. Here's the steps I took using VS2008.

Create a new WiX installer project.
Add a new project to the solution - C#/VB/C++ custom action project.
Add the code to the custom action project to generate the file you want.
Compile the custom action project.

Reference the custom action from within your WiX markup.

<Binary Id="myAction"
SourceFile="..\CustomAction1\bin\Debug\CustomAction1.CA.dll" />

Use the CustomAction element and specify the call.

<CustomAction Id="DoMyAction" BinaryKey="myAction" DllEntry="CustomAction1"
Execute="deferred" Return="check" Impersonate="no"/>

Ensure the call is only run on install.

<InstallExecuteSequence>
    <Custom After="InstallFiles" Action="DoMyAction">NOT Installed AND NOT
PATCH</Custom>
</InstallExecuteSequence>


-----Original Message-----
From: AxiomaticImpact [mailto:ke...@legendary-immersion.com] 
Sent: 11 November 2011 19:15
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Create files on install

Yeah, I want to generate a file upon installation.

--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Create-files-o
n-install-tp6986046p6986480.html
Sent from the wix-users mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to