Re: Startup Script install software
- From: Paul Bergson [MVP-DS] <pbbergs@xxxxxxxxxxxxxx>
- Date: Thu, 30 Oct 2008 20:33:35 +0000 (UTC)
Hello Troy,
Yeah, sorry I caught that after I sent it. My bad.
--
Paul Bergson
MVP - Directory Services
MCTS, MCT, MCSE, MCSA, Security+, BS CSci
2008, 2003, 2000 (Early Achiever), NT4
http://www.pbbergs.com
Please no e-mails, any questions should be posted in the NewsGroup This posting is provided "AS IS" with no warranties, and confers no rights.
I don't have a msi of the program.
Yes Anthony, it does a silent install. How will I use the start/wait
in my script? I
"Paul Bergson [MVP-DS]" wrote:
Hello Troy,
Have you considered using Group Policy to distribute the package?
The link
below can give you details but it really isn't that difficult. Just
create
a global group and place those computers you want it distributed to
and give
them the apply policy to the software install policy and link it to
the ou
where the computers reside.
http://support.microsoft.com/kb/816102
--
Paul Bergson
MVP - Directory Services
MCTS, MCT, MCSE, MCSA, Security+, BS CSci
2008, 2003, 2000 (Early Achiever), NT4
http://www.pbbergs.com
Please no e-mails, any questions should be posted in the NewsGroup
This posting is provided "AS IS" with no warranties, and confers no
rights.
I have a very small exe program I need to install on several
workstations. I
do not have a msi nor do I want to journey into creating one. I
want
to use
the startup script so I can use the local system rights for the
install,
however it isn't working. My script works if you run it manually so
I
don't
think it's my script. I even tried creating a batch file and use
start \\servername\share\program.exe
and this didn't work either. It does allow my script to create a
flag
in
the registry though.
Const HKEY_LOCAL_MACHINE = &H80000002
Set oShell = CreateObject("WScript.Shell") strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &
_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Numara"
strValueName = "flag"
oReg.GetExpandedStringValue HKEY_LOCAL_MACHINE,strKeyPath, _
strValueName,strValue
Wscript.Echo "value is: " & strValue
'test for install using registry flag
'if flag isn't present, install numara host
'and create registry flag
if strValue = "installed" then
msgbox "Numara already installed"
else
oShell.Run "\\servername\install$\nrchost.exe"
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &
_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Numara"
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
strKeyPath = "SOFTWARE\Numara"
strValueName = "flag"
strValue = "installed"
oReg.SetStringValue _
HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
end if
.
- References:
- Re: Startup Script install software
- From: Troy
- Re: Startup Script install software
- Prev by Date: Re: Logon type?
- Next by Date: Re: AD transition to Windows 2008
- Previous by thread: Re: Startup Script install software
- Next by thread: Windows user name limit?
- Index(es):
Relevant Pages
|