Write To Registry during update

Got a problem you cannot solve? Try here.
ParallaxiT
Posts: 32
Joined: Tue Mar 10, 2009 12:10 pm

Write To Registry during update

Postby ParallaxiT » Wed Nov 18, 2009 4:28 pm

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

ParallaxiT
Posts: 32
Joined: Tue Mar 10, 2009 12:10 pm

Postby ParallaxiT » Thu Nov 19, 2009 4:52 pm

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

ParallaxiT
Posts: 32
Joined: Tue Mar 10, 2009 12:10 pm

Postby ParallaxiT » Fri Nov 20, 2009 2:51 pm

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?!

neillans
Posts: 536
Joined: Sat Nov 04, 2006 6:21 am
Location: Scottish Borders, UK
Contact:

Postby neillans » Sun Nov 22, 2009 5:31 pm

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.
Andy Neillans

ParallaxiT
Posts: 32
Joined: Tue Mar 10, 2009 12:10 pm

Postby ParallaxiT » Tue Nov 24, 2009 12:20 pm

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?


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 34 guests