Page 1 of 1

Write To Registry during update

Posted: Wed Nov 18, 2009 4:28 pm
by ParallaxiT
I am currently using your web based patch/update scenario and it is working great. Application checks for updates and leads user through the steps to install, all is well.

The problem is that i need to write some registry values during the update process to flag completion times etc but none are baing written. I know they have to be called before Apply Install but that is not called anywhere in the update script.

I also don't know how to debug a patch to even test it. Or is this possible?

I have attached a screenshot. I reach the messagebox no pronlem but the registry write never occurs.

Thanks!!

File Attached:

reg.jpg

Posted: Thu Nov 19, 2009 4:52 pm
by ParallaxiT
I figured it out. In the main script there is compiler code

[compiler if Variable BUILDMODE Equals PATCH]
Apply Patch (get result into variable SUCCESS)
[compiler else]

I set a few variables in the update script and read them just before the Apply Patch and all gets written to the registry as normal.

Hope this can help someone else

Posted: Fri Nov 20, 2009 2:51 pm
by ParallaxiT
didn't work.

Write Registry only actually writes after an apply install is called. So i added a second apply install after i call the writes and still no luck.

Any help?!

Posted: Sun Nov 22, 2009 5:31 pm
by neillans
Checkout Write Registery Persist :)

A large number of the operations listed in our IDE occur only on Apply Install as they get build into MSI commands. If you want something that occurs immediatly, you will need to use a native DLL command or a custom plugin.

Posted: Tue Nov 24, 2009 12:20 pm
by ParallaxiT
I understand that, so i added another Apply Patch but the registry entries still do not get written. Is this the correct way to do this?