writing to allusersprofile on registry
I apologie in advance if this is the dumbest question you've ever heard, but I'm new at this, and therefore know very little, but I'm trying!
So part of the batch file I have for a program tells the msi to run, and then it also calls a jscript file, and the both work. But the JScript file writes keys on the registry for HKEY_CURRENT_USER (HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\\AppData) only the account currently logged onto the machine, and I need it to write for every account that logs into the machine. Does anyone know how to edit this so that it does this for every person that logs onto the machine?
Any help would be appreciated and yeah sorry if I sound like a retard.
- Tim
So part of the batch file I have for a program tells the msi to run, and then it also calls a jscript file, and the both work. But the JScript file writes keys on the registry for HKEY_CURRENT_USER (HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders\\AppData) only the account currently logged onto the machine, and I need it to write for every account that logs into the machine. Does anyone know how to edit this so that it does this for every person that logs onto the machine?
Any help would be appreciated and yeah sorry if I sound like a retard.
- Tim
0 Comments
[ + ] Show comments
Answers (14)
Please log in to answer
Posted by:
MSIMaker
18 years ago
Hi Tim,
You might like to try Active Setup for this task.
More info here.
http://myitforum.techtarget.com/articles/6/view.asp?id=6842
You might like to try Active Setup for this task.
More info here.
http://myitforum.techtarget.com/articles/6/view.asp?id=6842
Posted by:
viv_bhatt1
18 years ago
Posted by:
artiahc_elay
18 years ago
To add HKCU registry entries to all profiles you must place your HKCU registry entries in a component by itself and make it the key path of this component. It is recommended to put this component in a feature by itself don't place any other items in this component or feature. You must also set your shortcuts to be "Advertised". Whenever a new users logs in, the missing entries will be "repaired".
Posted by:
slb
18 years ago
The method artiahc_elay has given might require your msi to be in a shared location accessible by all users whoever logins for their first time. As MSIMaker and Viv_bhatt1 had suggested using a activesetup to run a jscript or an exe to include your current user setting would be the best option to do it.
Hope it was useful.
Hope it was useful.
Posted by:
silenceisfading
18 years ago
So I'm trying Active Setup, and it requires adding an Active Setup key to the registry for this application.
I'm trying to get the w_post.bat file to add the registry key, but am having difficulty because "Active Setup" contains a space, and of course when I space, it thinks I'm trying to do something else. But if I leave out the space, it creates the another "ActiveSetup" folder in the registry instead of adding a key to "Active Setup."
Anyone know how I can add the key?
Thanks,
Tim
I'm trying to get the w_post.bat file to add the registry key, but am having difficulty because "Active Setup" contains a space, and of course when I space, it thinks I'm trying to do something else. But if I leave out the space, it creates the another "ActiveSetup" folder in the registry instead of adding a key to "Active Setup."
Anyone know how I can add the key?
Thanks,
Tim
Posted by:
slb
18 years ago
Posted by:
silenceisfading
18 years ago
Posted by:
silenceisfading
18 years ago
Posted by:
slb
18 years ago
Posted by:
MSIPackager
18 years ago
Posted by:
silenceisfading
18 years ago
Posted by:
slb
18 years ago
Just remembered...
If you want to reduce the number of command line executions then will it be possible or acceptable for the client to include the jscript extension registry keys so that it points to the wscript or cscript.. I believe it is how it works normally.[8D]
Hope this is informational.[:)]
If you want to reduce the number of command line executions then will it be possible or acceptable for the client to include the jscript extension registry keys so that it points to the wscript or cscript.. I believe it is how it works normally.[8D]
Hope this is informational.[:)]
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.