Page 1 of 3

Write Registry Persist - plugin (Freeware)

Posted: Thu Jan 19, 2006 11:40 pm
by stevew
If you noticed the built in Write Registry goes through Window's Installer and therefore the registry entries are removed when uninstalling. My plugin adds the registry string using WIN32 API and therefore the entries are not removed when uninstalling.

Please tell me any comments here. I am curious if this will make me famous or not.

Also, if anyone wants me to make them any custom plugin just let me know. I do it for $5 less than anyone else!

File Attached:

<a>WriteRegPersist.exe

Posted: Sun Jan 22, 2006 7:57 am
by K-ballo
I think that the best way to do it will be to create a new component on the MSI database and set the msidbComponentAttributesPermanent attribute, then add the registry values on the Registry table, as children of the new component.
I didn't try this, but seems to be the right way to go. Again, just guessing...

Re: ANN: Write Registry Persist - plugin (Freeware)

Posted: Sat Jan 28, 2006 9:42 pm
by jed
> Please tell me any comments here.

Doesn't work when you are trying to write a variables value to the registry.

Posted: Sat Jan 28, 2006 9:43 pm
by jed
[quote="K-ballo"]I think that the best way to do it will be to create a new component on the MSI database and set the msidbComponentAttributesPermanent attribute, then add the registry values on the Registry table, as children of the new component.
I didn't try this, but seems to be the right way to go. Again, just guessing...[/quote]

How do you do this in InstallAware?

var update

Posted: Sat Jan 28, 2006 9:46 pm
by stevew
this one is updated to write a single var.

This works:

$VAR$

This does not work:

$VAR$$VAR$

Just do concats beforehand.

Here it is:

File Attached:

WriteRegPersist.exe

Thanks!

Posted: Fri Feb 17, 2006 5:19 pm
by slickompressor
You're the man! This plug-in helped out a lot!

Posted: Fri Feb 17, 2006 11:05 pm
by stevew
i haven't tried yet, but i was reading that this feature is documented as now included on InstallAWARE 5.1.

Updated Scripting Commands

The Write Registry command can now persist the data it writes, surviving uninstalls.

Posted: Sat Feb 18, 2006 9:20 am
by MichaelNesmith
Hi Steve!

Yes, we added this as a standard feature to the Write Registry command. Thanks a lot for making your plug-in available in the meantime!

Still useful

Posted: Wed Jun 04, 2008 9:51 am
by ulrichard
Hi steve,
The plug in can still be useful, if you want immediate execution and not have the msi engine do the change. For example in the following scenario:
http://support.microsoft.com/kb/937624
I want to make the registry setting mentioned in the article a prerequisite on Vista installations. After I set the value, I need to reboot. If I use the regular "Write Registry" command, I have to call "Apply Install" immediately after, and then "Reboot Computer and Resume Setup".
After the reboot, the setup realizes that the product revision is registered and goes into maintenance mode. Not really what I wanted!
That's where your plugin comes into play. Too bad that it only writes String values (REG_SZ).

Could you extend the plugin to also write numeric values (DWORD), or share the source, so that I can extend it?
Anyway, thanks for your work.

Rgds,
Richi

Not Compiling after upgrading to IA9

Posted: Tue May 05, 2009 8:20 am
by tj
When compiling for Install Aware 9 I get:
Error: Could not compile action write registry persist


Does this plugin need to be updated?
I'm using it to drop/update a registry value pre-applyinstall

Error Message Correction

Posted: Tue May 05, 2009 8:28 am
by tj
Correction on that error message. The project compiles but when I try to build I get:

Error during build: Failed to compile plug-in action: Write Registry Persist

Posted: Tue May 05, 2009 12:09 pm
by MichaelNesmith
Dear Plug-In Author,

InstallAware 9 does let plug-ins abort the build, it uses a previously reserved function return value for this.

We're really sorry we missed you during our sweep of existing plug-ins - we had tried to contact each author for this update so plug-ins could be updated accordingly.

Please let us know if you need any help updating your plug-in! It is much valued by our community as you can see :)

Posted: Tue May 05, 2009 12:52 pm
by stevew
... oops ... okay, i'm on it ...

Here to help

Posted: Tue May 05, 2009 12:57 pm
by tj
That's great.

I'm available to help test. Send me a private message if you need anything from me.

Posted: Tue May 05, 2009 11:24 pm
by stevew
This updated plug-in is compatible with InstallAware version 9 as well.

File Attached:

WriteRegPersist.exe