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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Try removing the erroneous backslash between the word 'Vodafone' and the closing bracket.
Answered 09/14/2009 by: VBScab
Red Belt

Please log in to comment
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?
Answered 09/14/2009 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
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"
Answered 09/14/2009 by: karshi
Purple Belt

Please log in to comment
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)
Answered 09/14/2009 by: benguil
Senior Yellow Belt

Please log in to comment
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.
Answered 09/14/2009 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
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.
Answered 09/14/2009 by: benguil
Senior Yellow Belt

Please log in to comment
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
Answered 09/14/2009 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
0
no at the first launch the apps is not self repaired.
Answered 09/14/2009 by: benguil
Senior Yellow Belt

Please log in to comment
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.
Answered 09/14/2009 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
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...
Answered 09/16/2009 by: PackageExpert
Blue Belt

Please log in to comment
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
Answered 09/17/2009 by: nheim
Tenth Degree Black Belt

Please log in to comment
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.
Answered 09/17/2009 by: VBScab
Red Belt

Please log in to comment
0
Hi Ian,
no problem at all!
One can point out this stuff not enough, i think.
Regards, Nick
Answered 09/17/2009 by: nheim
Tenth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity