**Dialog pop-up box after Install**

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: **Dialog pop-up box after Install**

#16 Post by foxidrive » 04 Jun 2012 07:39

Nope. Not according to microsoft.

This should be it.

%systemroot%\SysWoW64\regsvr32.exe /s xvid.ax
%systemroot%\System32\regsvr32.exe /s xvid.ax

SuzyQJax
Posts: 16
Joined: 05 Mar 2010 12:34

Re: **Dialog pop-up box after Install**

#17 Post by SuzyQJax » 04 Jun 2012 08:58

Foxi, As you know Windows always has about 3-4 ways to do the same thing...

The MSNF forum uses my shorter code and it WORKS great!

Your MS code is longer and requires more typing
%systemroot%\SysWoW64\regsvr32.exe /s xvid.ax
vs mine
regsvr32 /s %windir%\syswow64\xvid.ax

besides less can be more sometimes.. :lol:

Fawers
Posts: 187
Joined: 08 Apr 2012 17:11
Contact:

Re: **Dialog pop-up box after Install**

#18 Post by Fawers » 04 Jun 2012 09:59

SuzyQJax wrote:1.I know my script may be a little over the top but it does not require a file name for my .exe
2.The Supressmsgbox switch is from http://silentswitch.wordpress.com/a/
3.and CD because once everything in my directory is working I will then create a SelF eXtracting
(SFX) Archive File using WinRAR or 7-Zip for my silent unattended install.

I'm sorry for my last message as I might have been a little too rude.
Good to know that you now have a working code, but anyway.

What I wanted to point out is, regardless of what the website 'says', %CD% will always expand to the current working directory. So, if your batch file is working under %userprofile% (let's say it is "C:\Users\Suzy"), and there is no CD [/D] or PUSHD commands in it, that piece line will expand to the following:

Code: Select all

/suppressmessageboxes=C:\Users\Suzy

And I think, the correct value for this switch should be something "True" related, i.e., "True", "Y" or 1.

SuzyQJax
Posts: 16
Joined: 05 Mar 2010 12:34

Re: **Dialog pop-up box after Install**

#19 Post by SuzyQJax » 04 Jun 2012 12:34

Thanx for the response Fawers ...
after some Googling I rediscoverd the pipe command that does
what I need to run all my files in sequence..

:Execute programs simultaneously with the pipe (|) symbol and as oneliner.

XviD-Dec.exe /S | ping -n 1 127.0.0.1 >nul | taskkill /f /im XviD-Dec.exe>nul

start "" does the same but then you have everything on 3 lines of code.
instead of one..
start "" XviD-Dec.exe /S /VERYSILENT
ping -n 1 127.0.0.1 >nul
taskkill /f /im XviD-Dec.exe>nul

Squashman
Expert
Posts: 4465
Joined: 23 Dec 2011 13:59

Re: **Dialog pop-up box after Install**

#20 Post by Squashman » 04 Jun 2012 13:14

I don't believe you want to PIPE the output of those commands to the next command.
I believe what you meant to use was the AMPERSAND (&).

Fawers
Posts: 187
Joined: 08 Apr 2012 17:11
Contact:

Re: **Dialog pop-up box after Install**

#21 Post by Fawers » 04 Jun 2012 14:00

SuzyQJax wrote:Thanx for the response Fawers ...
after some Googling I rediscoverd the pipe command that does
what I need to run all my files in sequence..

:Execute programs simultaneously with the pipe (|) symbol and as oneliner.

XviD-Dec.exe /S | ping -n 1 127.0.0.1 >nul | taskkill /f /im XviD-Dec.exe>nul

start "" does the same but then you have everything on 3 lines of code.
instead of one..
start "" XviD-Dec.exe /S /VERYSILENT
ping -n 1 127.0.0.1 >nul
taskkill /f /im XviD-Dec.exe>nul

Squashman is right here. The pipe operator will append the output of command1 to the input of command2 in

Code: Select all

command1|command2

so that dir /b|find /i ".exe" will only show .exe files in the current folder.

You can use variations of the ampersand (&) operator:
command1&command2 - Both commands will try to run.
command1&&command2 - Command2 will only run if command1 is successful.
command1||command2 - Command2 will only run if command1 fails.

SuzyQJax
Posts: 16
Joined: 05 Mar 2010 12:34

Re: **Dialog pop-up box after Install**

#22 Post by SuzyQJax » 04 Jun 2012 15:51

I don't believe you want to PIPE the output of those commands to the next command.


NO THATS what I want to do..

Per MS the Pipe:" Reads the output from one command and writes it to the input of another command"

Which is exactley with I want to do..

run .exe file, then give 1 sec pause to allow taskkill to kill the pop-up that the program has been successfully installed.
(remember this all started from my 1st post about the dialog pop-up box
then foxi suggested the start command then give delay to allow time for
taskkill to kill the pop-up, I could do it with the start but the pipe does the samething and looks cleaner on one line.)

I tried using ampersand but it would never work, but the pipe does the job everytime..

Thanks again Guys for all your Help!! SuzyQ :P

Post Reply