/build/static/layout/Breadcrumb_cap_w.png

Add Reg Key HKCU

Hi everybody,
I'am repackaging an application by using a MST with wise 6. I need to add a reg key in the HKCU.

When I install my package my key is there but the value is not taken. I try many things but the value is never ok.

add manually the key in wise, import reg files ...

If someone have any idea?

My regfile:


Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Vodafone\]
"LockingCode"="85197260"

0 Comments   [ + ] Show comments

Answers (13)

Posted by: anonymous_9363 15 years ago
Red Belt
0
Try removing the erroneous backslash between the word 'Vodafone' and the closing bracket.
Posted by: timmsie 15 years ago
Fourth Degree Brown Belt
0
so your saying that HKEY_CURRENT_USER\Software\Vodafone is created but there is no value?

what does your entry in the registry table look like?
Posted by: karshi 15 years ago
Purple Belt
0
ya as Ian mentioned removing the backslash works fine. your key should look like
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Vodafone\]
"LockingCode"="85197260"
Posted by: benguil 15 years ago
Senior Yellow Belt
0
Tank for your reply but that not resolve the matter.

I checked my registry and I see that the key vas writte on the HKU but not in the HKCU (and the value is never present)
Posted by: timmsie 15 years ago
Fourth Degree Brown Belt
0
Paste your registry table entry for the key here

Is it not appearing in HKCU because the package hasn't repaired yet for the current user.

i.e you've installed it as an admin user so the keys are there under that users HKU hive but you haven't run the app as a standard user yet so the keys aren't under that users hive.
Posted by: benguil 15 years ago
Senior Yellow Belt
0
The package have been installed by as runas with the admin account.

I checked my registry before and after launch with user account the apps. The key is present in the HKU of the user session but not in the admin session.
Posted by: timmsie 15 years ago
Fourth Degree Brown Belt
0
so, when you run the app as the user does it self repair?

If not check the component which your registry entry belongs to and see what it's keypath is
Posted by: benguil 15 years ago
Senior Yellow Belt
0
no at the first launch the apps is not self repaired.
Posted by: timmsie 15 years ago
Fourth Degree Brown Belt
0
The package probably isn't repairing because the key you've added isn't the keypath of the component you've added it to.

open your package identify the reg value you've added in the Registry table. Make a note of the component that it belongs to.
check that component in the component table to see what the keypath is.

you may also have a problem if you have multiple features (with child features) in your package. In which case a self repair may not be triggered. You are better off creating a CurrentUser feature (adding your components to this) and making all features children of this.
Posted by: PackageExpert 15 years ago
Blue Belt
0
check the Component table..make sure all components has a key path..if not..create a unique HKCU key for each component that doesn have a file\registry...for example..INI file entry etc...or better still...create a currentuser component as throw all the user profile files\reg chunks there....the latter method is the recommended one...
Posted by: nheim 15 years ago
10th Degree Black Belt
0
Hi Ben,
you need to understand, how this stuff works.
Please read this post from John McFadyen carefully:
http://itninja.com/question/distribution-message21&mpage=1&key=&#7766

You can use self healing, if you have only advertised entrypoints (shortcuts, file extensions).
If this can't be guaranteed, you should use Active Setup instead.
See: http://www.appdeploy.com/messageboards/tm.asp?m=32877

Hope, this brings you a few steps further.
Regards, Nick
Posted by: anonymous_9363 15 years ago
Red Belt
0
Some may dismiss this as pedantry but can I just correct your English, Nick? I realise of course that Englsih isn't your first language so no offence is intended. It's just that the way the sentence below reads currently could potentially mislead.

It comes down to the positioning of the word 'only'You can use self healing, if you have only advertised entrypoints (shortcuts, file extensions).That could be misconstrued to say that a self-healing package would consist ONLY of advertised entry-points. The meaning would be clearer asYou can use self-healing only if your package has advertised entry-points (shortcuts, file extensions).Better yetSelf-healing requires the use of advertised entry-points (shortcuts, file extensions). To continue the pedantry, the list of table targets for entry-points is Class, Extension, MIME, ProgID, Shortcut, TypeLib and Verb.
Posted by: nheim 15 years ago
10th Degree Black Belt
0
Hi Ian,
no problem at all!
One can point out this stuff not enough, i think.
Regards, Nick
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ