I started to figure out the sound copying issue. As of now, there are no boot nor major copying problems left. Only a few minor bugs left.
It is almost complete. However I have yet to fix Media Center Edition components on x64. MCE uses .NET Framework 1.x and not compatible with NT 5.2's Net Framework 2.0.
There is simple way Usage: Code: %WinDir%\System32\wscript.exe //nologo %WinDir%\setup\scripts\invisible.vbs YourBatch WithAny NumberOf Parameters Too Invisible.vbs Code: Dim Args() ReDim Args(WScript.Arguments.Count - 1) For i = 0 To WScript.Arguments.Count - 1 Args(i) = """" & WScript.Arguments(i) & """" Next CreateObject("WScript.Shell").Run Join(Args), 0, True It run's and wait until given process terminate. 0/1 = Hide / Show True/False = Wait/Continue
Unfortunately, I tried everything possible. Checking SVCPACK.INF syntax and even converting .vbs to .exe. All results are the same. Installation ends without installing .NET Framework 1.1 nor Media Center components.
You may try the great nircmd from nirsoft that has the option to launch any cmd command as hidden (and maximized/minimized...)
Easy, build SFX installer with WinRAR, and run that command from there using Setup=. For example extract to %TEMP%\sfxtest and command Code: "%WinDir%\System32\wscript.exe" //nologo "%TEMP%\sfxtest\invisible.vbs" YourBatch WithAny NumberOf Parameters Too
Surely using internal commands is somewhat more elegant, but the nircmd is something that is generic, deadly simple to use even for a newbie, and useful for a number of other things aside the install steps, starting from hiding a scheduled task script. Also given the hidden thing is a switch, is pretty practical to test a command without the hidden switch, then add it when you're sure that everything works as expected.
It is not working. I tried everything including nircmd and iexpress.exe. Setup still does not run the file during installation. Code: [Version] Signature="$Windows NT$" [SetupData] CatalogSubDir="\AMD64\svcpack" [SetupHotfixesToRun] Setup=install.exe [ProductCatalogsToInstall] mediactr.cat Another example: Code: [Version] Signature="$Windows NT$" [SetupData] CatalogSubDir="\AMD64\svcpack" [SetupHotfixesToRun] nircmdc exec hide install.exe [ProductCatalogsToInstall] mediactr.cat Another example: Code: [Version] Signature="$Windows NT$" [SetupData] CatalogSubDir="\AMD64\svcpack" [SetupHotfixesToRun] nircmdc exec hide cscript script.vbs [ProductCatalogsToInstall] mediactr.cat Using Setup= or not does not make any difference.
@example12345678912345678 Setup= is in mentioned WinRAR SFX .. You simply add your SFX EXE to SVCPACK
about nircmd, like I said, try first with the show switch to see what's going on. (nircmd sends errors to a pupup windows, nircmdc to the console) also there is a further way using nircmd win show/hide that hides a window launched, before, by something else (cmd.exe for example), less elegant but if everything else fails may be an option.
I think the problem is related to svcpack. Setup simply bypasses the file and continues to install Windows. There's no problem when running the file manually. But it has to be installed automatically and since Setup registers components RunOnce is not a solution. @George King, @acer-5100
I thought your problem was that the thing worked, automatically, using cmd but you wanted to do that silently.
I got an idea. Why don't I try to install MCE via sysoc.inf and NetFx 1.1 via svcpack.inf? Update: It didn't work.
I don't really understand why does this happens. If there're no syntax errors in the examples I've provided, then it is supposed to work. It skips right into 10 minutes left part without even running the file. I wonder if it can't find the file even though it's there. Ok this is what happens if Net Framework is installed after Media Center Edition: