I am new to WIX and found myself supporting it. It's a great tool and
I'm sure there are more fun to be had.

 

My question is 

 

At Uninstall, I want the msi to create a machine.config file and
populate with important registry settings

I used xmltask to get it to populate an existing file I created 

 

Connection.wxi

<Include>

   <Property Id="CONNECTION_STRING" Value="dummy1" >

        <RegistrySearch Id="IDConnectionString"
Key="SOFTWARE\My\App1\ClientAPI" Name="Location" Root="HKLM" Type="raw"
/>

    </Property>

   <Property Id="OUTPUTLOGFILE" >

        <RegistrySearch Id="IDOutString" Key="SOFTWARE\My\Debug\App1"
Name="OutputLogFile" Root="HKLM" Type="raw" />

    </Property>

   <Property Id="LOGDIRECTORY" >

        <RegistrySearch Id="IDCLogString" Key="SOFTWARE\My\Debug\App1"
Name="LogDirectory" Root="HKLM" Type="raw" />

    </Property>   

   <Property Id="MACHINE_CONFIG" Value="c:\mymachine.config" />

</Include>

 

xmlconfig.wxi

<Include>

<XmlConfig xmlns="http://schemas.microsoft.com/wix/UtilExtension";

        Id="BrianID3" 

        Action="create"

        ElementPath="//SOFTWARE/My/Debug/App1" 

        File="[MACHINE_CONFIG]"    

        Name="OutputLogFile"

        Node="value"

        Value="[OUTPUTLOGFILE]"

        On="uninstall"/>

</Include>

 

But in order for this to work, I need to create ="c:\mymachine.config
and populate it with xml tags <SOFTWARE\My\Debug\App1>

How can I get it msi to create a file c:\mymachine.config with those
values?

 

 

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to