/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (14)

Posted by: artiahc_elay 18 years ago
Senior Yellow Belt
0
can you post your jscript
Posted by: MSIMaker 18 years ago
2nd Degree Black Belt
0
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
Posted by: viv_bhatt1 18 years ago
Senior Purple Belt
0
Hi Tim ,

Try Active setup .

I had resolved a similar issues by using Active setup .

try this link which I got from one of the app deploy forum members http://www.etlengineering.com/installer/activesetup.txt

Cheers ,
V
Posted by: artiahc_elay 18 years ago
Senior Yellow Belt
0
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
Purple Belt
0
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.
Posted by: silenceisfading 18 years ago
Senior Yellow Belt
0
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
Posted by: slb 18 years ago
Purple Belt
0
I understand that you are writing your batch file to include registry..in this case does your batch file has double quotes ("") for the entire registry hive that you create??

Am I in the wrong way..[:@] Apologies if i had misunderstood you..[8D]
Posted by: silenceisfading 18 years ago
Senior Yellow Belt
0
Haha, I realized about five minutes after I posted that I DID need to put my key inside ""s. Oops!
Posted by: silenceisfading 18 years ago
Senior Yellow Belt
0
The Active Setup works great, but the file that the Active Setup points to from the MSI is a JScript file. If a user logs on and has Macromedia Dreamweaver installed, it opens the JScript in Dreamweaver instead of executing the script. Does anyone know how to fix this?

- Tim
Posted by: slb 18 years ago
Purple Belt
0
May be the below command line could help you..

C:\Windows\system32>cscript.exe "path of your jscript"

In simple words.. use wscript/cscript.exe to execute your jscript file.[:D]

HTH,
Posted by: silenceisfading 18 years ago
Senior Yellow Belt
0
Too many command-line parameters :(
Posted by: MSIPackager 18 years ago
3rd Degree Black Belt
0
Sounds like another ""s issue! What is the exact command line you are using and does the command line you are using work if you type it manually at command prompt?

Cheers,
Rob.
Posted by: silenceisfading 18 years ago
Senior Yellow Belt
0
The command line worked in a cmd prompt.

Now I have the active setup pointing to another batch file, so the batch can run the script, because trying to have active setup open cscript and then opening the jscript didn't work so well.
Posted by: slb 18 years ago
Purple Belt
0
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.[:)]
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