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
Write Registry Persist - plugin (Freeware)
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...
I didn't try this, but seems to be the right way to go. Again, just guessing...
Re: ANN: Write Registry Persist - plugin (Freeware)
> Please tell me any comments here.
Doesn't work when you are trying to write a variables value to the registry.
Doesn't work when you are trying to write a variables value to the registry.
[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?
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
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
This works:
$VAR$
This does not work:
$VAR$$VAR$
Just do concats beforehand.
Here it is:
File Attached:
WriteRegPersist.exe
-
- Posts: 1
- Joined: Mon Feb 13, 2006 3:21 pm
Thanks!
You're the man! This plug-in helped out a lot!
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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!
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!
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Still useful
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
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
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: 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
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
Error during build: Failed to compile plug-in action: Write Registry Persist
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
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
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
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Here to help
That's great.
I'm available to help test. Send me a private message if you need anything from me.
I'm available to help test. Send me a private message if you need anything from me.
This updated plug-in is compatible with InstallAware version 9 as well.
File Attached:
WriteRegPersist.exe
File Attached:
WriteRegPersist.exe
Return to “Plug-In Development”
Who is online
Users browsing this forum: No registered users and 11 guests