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:
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)
Please log in to answer
Posted by:
anonymous_9363
15 years ago
Posted by:
timmsie
15 years ago
Posted by:
karshi
15 years ago
Posted by:
benguil
15 years ago
Posted by:
timmsie
15 years ago
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.
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
Posted by:
timmsie
15 years ago
Posted by:
timmsie
15 years ago
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.
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
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
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=Ṗ
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
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=Ṗ
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
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'
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 as
You can use self-healing only if your package has advertised entry-points (shortcuts, file extensions).Better yet
Self-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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.