Probem writing to registry

Got a problem you cannot solve? Try here.
Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Probem writing to registry

Postby Gareth Owen » Thu Dec 01, 2005 2:39 am

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?

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Thu Dec 01, 2005 6:46 am

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.

Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Postby Gareth Owen » Thu Dec 01, 2005 7:45 am

Unfortunately not, This was for the workaround because we could not tell if the key was present. :cry:

sinan
Site Admin
Posts: 1028
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Thu Dec 01, 2005 8:13 am

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 :)

Gareth Owen
Posts: 149
Joined: Fri Oct 21, 2005 8:42 am
Location: UK

Postby Gareth Owen » Fri Dec 02, 2005 3:53 am

:D Wonderful, will send you an email.

Thanks


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 190 guests