Settings and files for each new user
Hello all.
I'm interested to know how people have solved the problem with settings and files which needs to be created for each new user in their profile/registry for first time they use the program. It is possible to do with MSI using rather complex registry/filekey + duplicate file and msi self repair combination, but that is so complex that if I try to explain it to someone else they do not understand it and I get my brains into knot.
So: how do you do those things? Any easy way to do it? Custom action based on file/registrykeypath?
Timo Pietilä
I'm interested to know how people have solved the problem with settings and files which needs to be created for each new user in their profile/registry for first time they use the program. It is possible to do with MSI using rather complex registry/filekey + duplicate file and msi self repair combination, but that is so complex that if I try to explain it to someone else they do not understand it and I get my brains into knot.
So: how do you do those things? Any easy way to do it? Custom action based on file/registrykeypath?
Timo Pietilä
0 Comments
[ + ] Show comments
Answers (9)
Please log in to answer
Posted by:
Yaduveer
14 years ago
Add below registry, in your package. After Installation, whenever user will log-inn for the 1st time, your application will get repaired with favous, and that perticular user will get settings.
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode]]
"StubPath"="msiexec /favous [ProductCode]"
"Version"="1.0.0"
Posted by:
anonymous_9363
14 years ago
Posted by:
TimoP
14 years ago
Active Setup works only at first login. I would rather have it work immediately after program has been installed, because it is not guaranteed that user logs out and in in next week or so after installation has happened. Othervise I would use Active Setup as it is, like all of you have said, easy method of creating those settings / fixing missing files.
So: any other "easy" ways to do that?
So: any other "easy" ways to do that?
Posted by:
jinxngoblins
14 years ago
Posted by:
TimoP
14 years ago
Posted by:
anonymous_9363
14 years ago
So...you're installing per-machine.
Go for an advertised entry-point, whose "parent" feature is a child of another (I tend to call this feature 'CurrentUser') which contains the HKCU junk.As soon as the e/p is triggered (e.g. a shortcut is double-clicked), the package "repairs" and will write the appropriate registry entries and/or files.
Go for an advertised entry-point, whose "parent" feature is a child of another (I tend to call this feature 'CurrentUser') which contains the HKCU junk.As soon as the e/p is triggered (e.g. a shortcut is double-clicked), the package "repairs" and will write the appropriate registry entries and/or files.
Posted by:
TimoP
14 years ago
Posted by:
anonymous_9363
14 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.