Avatar of hbpub
hbpub asked on

Running a batch file to install apllication for a bunch of user


I running a batch file to install cognos 7.4 for 1500 hundred users.
I  have written the batch file below. However whenever I run it on a test computer, I receive an error stating that the C:\ contain invalid path. My automatic installation would be aborted.
any ideas on how to fix this, or create an MSI package for GPO installation?




Echo Off
"\\Mangos\apples\Cognos\Cognos 7.4MR2 Installers\IMPUSER74MR2\setup.exe" /s "\\fifile\flatiron\Cognos\Cognos 7.4MR2 Installers\IMPUSER74MR2\response.ats"
Pause..
"c:\program files\cognos\cer5\bin\configcp.exe" -t "\\Mangos\apples\Cognos\Cognos 7.4MR2 Installers\Cognos 7.4MR2 Installers\IMPUSER74MR2\Cognosinstall.ccp"

 Echo on
Exit

Thanks
Hbpub
Software

Avatar of undefined
Last Comment
GMurad

8/22/2022 - Mon
GMurad

use 'CALL' before each of your commands executing a program. this May solve your problem.
oak2580

please post the error
ASKER
hbpub

The error says Cognos auto run has encountered a problem and would close. C or D invalid path.

Here is the script which I am running.

Echo off
\\Moon\Sky\Rollout\Cognos\IMPUSER74MR2\setup.exe /s "\\Moon\Sky\rollout\cognos\IMPUSER74MR2\response.ats"

Pause..

"c:\program files\cognos\cer5\bin\configcp.exe" -t "\\Moon\Sky\rollout\cognos\IMPUSER74MR2\Cognosinstall.ccp"

 Echo off.


Hbpub.
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
GMurad

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
oak2580

can you please post the exact error?
ASKER
hbpub

I have been able to get the file to work.
No I need to do the following,
1) to write a script or batch file to copy a folder  and the batch file to users C drive.
2) To run this batch file when the users logon

3) to reboot the computer when the installation is done.

Thanks
hbpub
ASKER
hbpub

good
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
GMurad

- To copy a folder use the following command
     xcopy /E /Y "[FolderPath]\*.*" c:\

- To launch an executable at the startup, you can add an entry under
     HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

and you can add a Domain Group Policy to achieve this as well.

- To reboot the computer use the following command ...
    shutdown -r