Jump to content

Recommended Posts

Posted (edited)

How will I properly configure this script to silently install my winrar and foxit, Im having problem with winrar cause after installation it has some configurations after installation but the script would go to the next line which is foxit.

Second problem, as soon as foxit installer executes the script would end without waiting the installer to finish.

My goal is to make this both installer unattended cause this script will run in post windows installation.

Your help would be appreciated,,,

Heres my code:

@echo off
title Installing Applications

ECHO.
ECHO Thank You For Installing Windows XP SP3 Automated CD....

ECHO.
ECHO Installing Winrar 3.71
ECHO Please wait...
start /sleep %systemdrive%\install\apps\rar.exe /qn

ECHO.
ECHO Installing FoxIt PDF Reader
ECHO Please wait...
start /sleep %systemdrive%\install\apps\pdf.exe /qn

ECHO.
ECHO Restarting the PC in Few Seconds...
shutdown.exe -r -f -t 10 -c "Windows XP will now restart in a few seconds, this will give
enough time for the shortcuts to update and for the shell to fully load before it\'s ready to restart!"

ECHO.
ECHO Deleting Temp Installation Files...
RD /S /Q %systemdrive%\Drivers
RD /S /Q %systemdrive%\install

EXIT

Edited by heralva

Posted

I asume you are using a program called sleep.exe, which normally should be called with the time in seconds it will wait: sleep.exe XX

If you are not using that, try using start /wait instead. This will wait until every file is finished and is provided by windows itself.

About WinRAR: You can make you own SFX archive out of it. Just copy WinRAR folder from Program Files, and WinRAR folder in application data. Add them to a SFX file and that's it. You can add a start menu shortcut.

At first start, WinRAR will auto import its settings into the registry.

Posted

I know of no switch named /sleep for the start command. I do know of a /wait switch though.

The switch for WinRAR archives is /s. FoxIt likes to be added into an installer/archive that supports silent install.

:)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...