Page 1 of 1

Probem writing to registry

Posted: Thu Dec 01, 2005 2:39 am
by Gareth Owen
As part of our install, we might need to install 3rd party drivers. In this case the only way of telling if these drivers are installed is by checking for a key in the reg.

I know this is not possible at the moment :( , but as a work around, I was going to write a value into this key when we install the drivers so it will only do it once.

Issue: I want this reg entry to be written if the drivers are installed (currently done after the end of the Apply Install) and I do NOT want it removed on uninstall.

If I add the reg entry into the main install, it gets removed on uninstall.
If I add the Write Reg Key at the same place I install the drivers, it does not seem to write anything to the Reg.

How would be the best way to do this?

Posted: Thu Dec 01, 2005 6:46 am
by sinan
It is possible to create a key (no values) and persist it. Would this work? If so, set the Value field to + and leave the Data field empty and choose the String type.

Posted: Thu Dec 01, 2005 7:45 am
by Gareth Owen
Unfortunately not, This was for the workaround because we could not tell if the key was present. :cry:

Posted: Thu Dec 01, 2005 8:13 am
by sinan
Not to worry, a new Check Registry command lets you test for the presence of keys, and returns specific conditions based on the type of data found :) Again, I have to ask you to contact me privately for the details :)

Posted: Fri Dec 02, 2005 3:53 am
by Gareth Owen
:D Wonderful, will send you an email.

Thanks