Thanks Rob. For me, this is a thought experiment in which I was trying to
learn more about rollback CAs. So, my scenario is (similar to editing an XML
file with XmlFile), I wanted to install a JSON file and edit it at
install-time. If the installation failed, I would rollback the file to what
it
1. No.
2. See #1
3. Since CA is going to open the file anyway, I would just handle the case in
the CA code, not using AppSearch. I'm doing this now with new CustomAction I'm
adding in WiX v4.
_
Short replies here. Complete answers
In a deferred custom action, I am changing some text in a file. I want to be
able to undo those changes in a rollback custom action. So, I'm attempting
to store the original contents of the file and then set the file back to
that data in the rollback CA.
The place where I've tried to store the
I wasn't able to find a way to pass data from a deferred CA to a rollback CA.
Nor could I access the session's database, which prevented me from storing
the data in a custom table.
The only way I found that worked was to store the original file in the TEMP
directory and, in the rollback, restore
The correct way is to read the file from the immediate custom action and
schedule the rollback and deferred actions with the appropriate data. The WiX
custom actions do this all the time.
_
Short replies here. Complete answers over
5 matches
Mail list logo