Re: Rollout Registry Settings via SMS (w/Adv Clients)



If by an .exe you mean an Installshield script, which does NOT have an msi
imbedded in it, try
strInstall = "setup.exe /s /f2" & Chr(34) & "c:\Widgets.log" & chr(34)

If by an .exe you mean an MSI wrapped in a setup.exe by Installshield,
usually try this:
strInstall = "setup.exe /s /v" & chr(34) "/qb-! /l*v c:\widgets.log" & chr(34)

If by an .exe you mean something else, like an SMS installer compiled .exe,
or Wise, or innosetup, or one of the other .exe builders out there--then of
course it depends upon the log file switches available for those .exe
installations.

PS: looked up the command line parameters for Installshield stuff here:
http://helpnet.installshield.com/robo/projects/HelpLibDevStudio9/IHelpSetup_EXECmdLine.htm#f1Param

--
Standarize. Simplify. Automate.


"ttnet" wrote:

Sherry, do have a similar script that launches an exe with the /s command
line and also logs to a specific log file?

Any information would be greatly appreciated.

Tom T.

"ttnet" wrote:

Sherry, thanks for the script. I will give it a try.

"Sherry Kissinger [MVP-SMS]" wrote:

Here's a sample vbscript; runs an msi installation w/a transform, and if a
success code of 0 is returned post-install, then a reg import is run. I just
grabbed it from a production source folder (changed the names to 'widgets',
etc; for generic reasons); but it worked to rollout an application to ~2700
machines...

On Error Resume Next
Set sho = Wscript.CreateObject("Wscript.Shell")
strCurrentDir = Left(Wscript.ScriptFullName,
(InstrRev(Wscript.ScriptFullName, "\") -1))

strInstall = "msiexec.exe /i " & Chr(34) & strCurrentDir & "\Widgets.msi" &_
Chr(34) & " TRANSFORMS=" & Chr(34) & strCurrentDir &_
"\1033.mst" & Chr(34) &_
" /qb-! /l*v c:\Widgets.log"

intRetVal = sho.run(strinstall,0,True)

if intretval = 0 then
sho.Run "cmd /c reg import " & strCurrentDir & "\TheKeysToImport.reg", 0,
vbTrue
end if
wscript.quit(IntRetVal)

--
Standarize. Simplify. Automate.


"ttnet" wrote:

Sherry, thanks for the response. Do you have any idea how to tell the batch
file or script the path to the reg files if they are located in the package
on the DP? That always confused me, so I went with DFS.

"Sherry Kissinger [MVP-SMS]" wrote:

I don't know about "most people", but for regkeys I'll either use a reg
import, or because I'm a vbscript person, I'd probably write a vbscript to
drop in those regkeys. In both cases I would use the distribution points.
--
Standarize. Simplify. Automate.


"ttnet" wrote:

Kim, the I am trying to add the following reg settings listed below. I am not
sure about the credentials. I assume it is using the local system account
when running the advertisement. I do know that each computer account in AD
has access to the DFS share.

Kim, do people use batch files that point to the package folder on the DP? I
assume using DFS would be easier. Any advice or links to any articles or
websites that may be of interest would be appreciated.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Locations\Location1]
"Country"=dword:00000001
"Flags"=dword:00000001
"AreaCode"="215"
"DisableCallWaiting"=""
"LongDistanceAccess"=""
"Name"="New Location"
"OutsideAccess"="9"


[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TapiSrv]
"Type"=dword:00000120



"Kim Oppalfens [MVP]" <""Kim dot Oppalfen" wrote:

ttnet wrote:
I am attempting to rollout 3 registry files using a batch file through SMS
2003. SMS states the batch file completed successfully, but none of the
registry entries are applied. I am using DFS as the data source so that the
batch file can point to the DFS share where the registry entries are located.

Does anybody have an idea of why this will not work? or have a better way of
doing this?

Thank you.

Tom T.
What hive are you putting the reg keys in?
Is your batch file running using administrative credentials in the
program settings?

--
"Everyone is an expert at something"
Kim Oppalfens - Sms Expert for lack of any other expertise
Windows Server System MVP - SMS
http://www.blogcastrepository.com/blogs/kim_oppalfenss_systems_management_ideas/default.aspx

.



Relevant Pages

  • Re: How to deploy real cert in packaged .exe (VS 2005, .net cf 2.0 sp2, WM 5.0)
    ... ..exe for the mobile device I developed an app for. ... You can run a batch file after you've built your project/solution or as part ... Or do I do the signing using the the tools they send me? ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: TimeShift playable SP demo Monday - beware of download.com
    ... You'll laugh...when you run the .exe, ... on my fairly upper mid-range system, it grinds & grinds & grinds for well ... over a minute, before it actually kicks off the Installshield. ...
    (comp.sys.ibm.pc.games.action)
  • WMIPRVSE.exe locks a file
    ... I am having a Service Wrapper exe written using C++ utilizing ... Its job is to register and deregister s ... batch file as service as and when required. ...
    (microsoft.public.dotnet.general)
  • Re: inuse.exe - How to I distribute it legally?
    ... Why not make the entries ... > an exe created by InstallShield. ... > If some other people that uses my InstallShield created exe, ... how do they consent to ...
    (microsoft.public.win2000.general)
  • Re: VB component works correctly only in debug mode
    ... >I have a Vb component which internally uses an exe to create a batch file, ... >I call the method of this component from my asp page. ... When I debug throught ... Does the fact that I run an exe ...
    (microsoft.public.vb.general.discussion)