Re: Startup Script install software



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




.



Relevant Pages

  • Re: Startup Script install software
    ... I granted the computer account everything but full permissions. ... the startup script so I can use the local system rights for the install, ... My script works if you run it manually so I ... It does allow my script to create a flag in ...
    (microsoft.public.windows.server.active_directory)
  • Re: Startup Script install software
    ... it does a silent install. ... the startup script so I can use the local system rights for the ... strValueName = "flag" ...
    (microsoft.public.windows.server.active_directory)
  • Re: Deploying Office 07 with Group Policy
    ... computer I tested it on took 30 minutes to install. ... the following script to the Computer Startup Script. ... REM Get ProductName from the Office product's core Setup.xml file. ... REM Set ConfigFile to the configuration file to be used for deployment REM ...
    (microsoft.public.office.setup)
  • Re: Startup Script install software
    ... the startup script so I can use the local system rights for the install, ... My script works if you run it manually so I don't ... It does allow my script to create a flag in ...
    (microsoft.public.windows.server.active_directory)
  • Re: Startup Script install software
    ... 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. ... It does allow my script to create a flag ...
    (microsoft.public.windows.server.active_directory)

Loading