The WinReducer Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

The WinReducer ForumLog in

FORUM

description[ANSWERED] Post Installer - start setup only after completed the previous Empty[ANSWERED] Post Installer - start setup only after completed the previous

more_horiz
Hi there,

im facing the problem, that my setups in the post installer are starting to quick, means sometimes i got 2 setups at the same time so one setup brings up the error "another installation is already running".

is there any batch command with which i can define to start the setup only if the previous is completed?


This is my .bat

Code:

@ECHO OFF
for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\sources\install.wim set CDROM=%%i:
if not defined CDROM goto :eof
echo Detected CDROM as drive %CDROM%
cd\

Title Standard Install
Color F0

@echo  **********     Welcome     **********
Color 0F

"%CDROM%\WinReducerPI\Standard\cdbxp.exe" /SP- /VERYSILENT /NORESTART
"%CDROM%\WinReducerPI\Standard\Firefox.exe" -ms /norestart
"%CDROM%\WinReducerPI\Standard\FoxitReader.exe" /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /SP-
"%CDROM%\WinReducerPI\Standard\FreeCommanderXE.exe" /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /SP-
"%CDROM%\WinReducerPI\Standard\WinmailOpener.exe" /S
"%CDROM%\WinReducerPI\Standard\OpenOffice.exe"
"%CDROM%\WinReducerPI\Standard\winter32.exe"
"%CDROM%\WinReducerPI\Standard\7z.msi"
"%CDROM%\WinReducerPI\Standard\sqlany12.msi" /qb
"%CDROM%\WinReducerPI\vlcwin64.exe" /S


thanks in advance

description[ANSWERED] Post Installer - start setup only after completed the previous EmptyRe: [ANSWERED] Post Installer - start setup only after completed the previous

more_horiz
Hello,

In the top right of the WinReducer oobe window tool, you should a menu. If you use it you will some options to add in your batch : like a "Pause" ... but if you want to add a pause in your actual file, you could just add the word Pause just after all executable, like this :

Code:

@ECHO OFF
for %%i in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\sources\install.wim set CDROM=%%i:
if not defined CDROM goto :eof
echo Detected CDROM as drive %CDROM%
cd\

Title Standard Install
Color F0

@echo  **********    Welcome    **********
Color 0F

"%CDROM%\WinReducerPI\Standard\cdbxp.exe" /SP- /VERYSILENT /NORESTART
PAUSE
"%CDROM%\WinReducerPI\Standard\Firefox.exe" -ms /norestart
PAUSE
"%CDROM%\WinReducerPI\Standard\FoxitReader.exe" /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /SP-
PAUSE
"%CDROM%\WinReducerPI\Standard\FreeCommanderXE.exe" /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /SP-
PAUSE
"%CDROM%\WinReducerPI\Standard\WinmailOpener.exe" /S
PAUSE
"%CDROM%\WinReducerPI\Standard\OpenOffice.exe"
PAUSE
"%CDROM%\WinReducerPI\Standard\winter32.exe"
PAUSE
"%CDROM%\WinReducerPI\Standard\7z.msi"
PAUSE
"%CDROM%\WinReducerPI\Standard\sqlany12.msi" /qb
PAUSE
"%CDROM%\WinReducerPI\vlcwin64.exe" /S
PAUSE

The only inconvenient is that : each time you finish installing a software you need to go the opened batch file to hit a key ... to start your next software installation.

I've already said that I'm working on improvements to the WinReducer OOBE tool, and this will be one of them (and also a fix for administrator rights) ... Wink

description[ANSWERED] Post Installer - start setup only after completed the previous EmptyRe: [ANSWERED] Post Installer - start setup only after completed the previous

more_horiz
Hi Xo

Do you know which ones are starting too quick?
You could use the start /wait command to force it to wait, for example

Code:

start /wait "%CDROM%\WinReducerPI\Standard\cdbxp.exe" /SP- /VERYSILENT /NORESTART
start /wait "%CDROM%\WinReducerPI\Standard\Firefox.exe" -ms /norestart
start /wait "%CDROM%\WinReducerPI\Standard\FoxitReader.exe" /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /SP-


Once the executable has finished it should automatically move onto the next one...

description[ANSWERED] Post Installer - start setup only after completed the previous EmptyRe: [ANSWERED] Post Installer - start setup only after completed the previous

more_horiz
Hi userXo,

I faced the exact problem myself a week ago. The solution is a bit tricky.

When running a command like you did the system implicitly calls the command "START". This has an optional parameter "/WAIT" (without the quotes) which does exactly what you want. There is only one thing you need to pay attention: Between the command and the wait-Parameter is another optional parameter for the title, which is supplied with surrounding quotes. You need to specify an empty title or otherwise the silent-switches are applied to the START-command and not to the called program.


Code:

START "" /WAIT "%CDROM%\WinReducerPI\jre-8u45-windows-i586.exe" /s


Best regards
BiberM

description[ANSWERED] Post Installer - start setup only after completed the previous EmptyRe: [ANSWERED] Post Installer - start setup only after completed the previous

more_horiz
BiberM wrote:
Hi userXo,

I faced the exact problem myself a week ago. The solution is a bit tricky.

When running a command like you did the system implicitly calls the command "START". This has an optional parameter "/WAIT" (without the quotes) which does exactly what you want. There is only one thing you need to pay attention: Between the command and the wait-Parameter is another optional parameter for the title, which is supplied with surrounding quotes. You need to specify an empty title or otherwise the silent-switches are applied to the START-command and not to the called program.


Code:

START "" /WAIT "%CDROM%\WinReducerPI\jre-8u45-windows-i586.exe" /s


Best regards
BiberM


just creating the new .iso and let's see if its working Very Happy
many thanks guys for your responses! i will post feedback asap!

description[ANSWERED] Post Installer - start setup only after completed the previous EmptyRe: [ANSWERED] Post Installer - start setup only after completed the previous

more_horiz
Its working gr8 Biber!!
Many thanks Wink
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum