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

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
can you post your jscript
Answered 10/21/2005 by: artiahc_elay
Senior Yellow Belt

Please log in to comment
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
Answered 10/22/2005 by: MSIMaker
Second Degree Black Belt

Please log in to comment
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
Answered 10/22/2005 by: viv_bhatt1
Senior Purple Belt

Please log in to comment
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".
Answered 10/24/2005 by: artiahc_elay
Senior Yellow Belt

Please log in to comment
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.
Answered 10/24/2005 by: slb
Purple Belt

Please log in to comment
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
Answered 10/25/2005 by: silenceisfading
Senior Yellow Belt

Please log in to comment
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]
Answered 10/25/2005 by: slb
Purple Belt

Please log in to comment
0
Haha, I realized about five minutes after I posted that I DID need to put my key inside ""s. Oops!
Answered 10/25/2005 by: silenceisfading
Senior Yellow Belt

Please log in to comment
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
Answered 10/27/2005 by: silenceisfading
Senior Yellow Belt

Please log in to comment
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,
Answered 10/28/2005 by: slb
Purple Belt

Please log in to comment
0
Too many command-line parameters :(
Answered 10/28/2005 by: silenceisfading
Senior Yellow Belt

Please log in to comment
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.
Answered 10/28/2005 by: MSIPackager
Third Degree Black Belt

Please log in to comment
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.
Answered 10/28/2005 by: silenceisfading
Senior Yellow Belt

Please log in to comment
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.[:)]
Answered 10/31/2005 by: slb
Purple Belt

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