
midiboy
MemberContent Type
Profiles
Forums
Events
Everything posted by midiboy
-
Check for OS Version in a script
midiboy replied to midiboy's topic in Unattended Windows 2000/XP/2003
Hi gunsmokingman ! Thanks for the compliment (spent some time in the USA once ) and I have updated the profile ! And sorry for drawing the wrong conclusions! Have a nice day ! Alex -
Check for OS Version in a script
midiboy replied to midiboy's topic in Unattended Windows 2000/XP/2003
HI ! I did not mean any disrespect ! The script just did not work here, after I changed endlocal&goto :eof to endlocal&goto :OSis it did. But anyway, you gave me lots of options to solve the problem so Thanks again ! -
Check for OS Version in a script
midiboy replied to midiboy's topic in Unattended Windows 2000/XP/2003
You are good and so very helpful ! Thanks a lot, gunsmokingman ! PS: The first cmd has a little error: endlocal&goto :eof should be endlocal&goto :OSis Thanks so much ! Bye, Alex -
Check for OS Version in a script
midiboy replied to midiboy's topic in Unattended Windows 2000/XP/2003
Hi gunsmokingman ! You are great (as usual!) Thanks ! Just two more questions ... 1. since I am not good in vbs ... how can I add the OS Name into a variable from inside the vbs and use that variable in a cmd ? (I would start the vbs from inside that cmd) 2. Would it be possible to just strip the output to XP, Vista, 2003 or 2000 for the 4 major OSes and not have all the subversions (like Home, Standard, build numbers etc.) in the name ? Thats because I would simply like to do different stuff for Vista than for XP/2000/2003 so I just need to know if the OS is Vista or XP or 2000/2003. Thanks for your help ! Alex -
Hi ! Is it possible to check for the installed Windows version in a small cmd script ? I would like to check if the OS is either Windows Server 2003, Windows XP, Windows 2000 or Windows Vista. However the variable "OS" is returning Windows_NT in all 3 cases. Any ideas ? Thanks for your help ! Alex
-
Hi everyone ! I am very curious why this has not come up yet (at least I could not find anything). Obviously all those cmd files used to install applications, set/change registry values and copy system/program files do not work in Vista anymore because Vista has something called "Windows File protection". As far as I was able to find out so far, only the "trusted installer group" is able to change anything in the Programfiles or Windows folders including the registry so any cmd that will include codes like "regedit /S example.reg" will fail in Vista. Is there any way to keep my cmds that work fine in Windows XP and just add some logic to be able to use it for Vista and Windows XP ? So far I have been using Wihu to install all my applications. Wihu simply called cmds for each application that I selected for installation so I was able to install the application right after the Windows installation or later on by calling Wihu or the cmd itself. How can I change the cmds so that all registry and file operations run silently in WindowsXP and Vista when run from an Administrators account ? Any ideas ? Thanks for your help ! Alex
-
Why the need to capture ?
midiboy replied to midiboy's topic in Unattended Windows Vista/Server 2008
Hi again, I just found a simple guide to do what I want but it´s in German: Integrate autounattend.xml into DVD - German I will try that now. No need to inject the xml into the wim obviously, which makes me wonder why Microsoft recommends to capture images even more. Whats the benefit ? Bye, Alex -
Hi guys, I have spent the last 2 days reading through most of the BDD and WAIK documentation, viewing webcasts by Microsoft etc. But I don´t get it ... In almost all the step by step documentations available Microsoft recommends to build a deployment base, then installing a reference computer using Windows PE and later on capturing that image using Windows PE and ImageX again. Then, this reference image should be syspreped and deployed to all the computers. To me this sounds like a completely redundant step. Vista already comes as a wim image on the Microsoft DVDs. Why not simply build an answer file, inject this file in the root of the boot.wim file and start deployment of the original install.wim by MS ? Why is this nowhere documented ? (At least I haven´t found any guide that describes depoyment in such a way). BDD 2007 RC1 also seems to only support the capturing way of doing this although it seems redundant. I would like to skip capturing but I am having trouble creating a working installdvd using the original wim files. Any guides around for this somewhere ? Thanks for your help, Alex
-
Hi guys, I hope you can help me here. I tried Rico.JohnnYs autoit script but it did not copy the old ieronce.dll on my systems. I have no idea why. So my new idea was to add a few more lines to the PendingFileRenameOperations registry key hoping that Windows would copy the old dll back to dllcache and system32 directories after it copied the new one. However I cannot figure out how I can add a few lines to an existing PendingFileRenameOperations key without deleting the entries in there. If I add this command: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager" /v PendingFileRenameOperations /t REG_MULTI_SZ /d "\??\%systemroot%\ie7\iernonce.dll" /f reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager" /v PendingFileRenameOperations /t REG_MULTI_SZ /d "!\??\%systemroot%\dllcache\iernonce.dll" /f reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager" /v PendingFileRenameOperations /t REG_MULTI_SZ /d "\??\%systemroot%\ie7\iernonce.dll" /f reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager" /v PendingFileRenameOperations /t REG_MULTI_SZ /d "!\??\%systemroot%\system32\iernonce.dll" /f Those entries just overwrite each other and the entries that were there already. Is there a way to add those entries without overwriting the existing ones ? Thanks for your help ! Alex
-
Guys, thanks a lot for your replies ! maxXPsoft: Are you talking about VistaUA ? I would have to check it out but does it allow you to check/uncheck applications to be installed after Vista setup similar to Wihu etc. ? Felix: Thanks for those keys: BUT ... isn´t a restart required for them to take affect ? If not that would be cool but I fear that it won´t work if I simply add those keys into every cmd ... Thanks, Alex
-
Hi ! I am starting to create a Vista Unattended DVD but there are a few things that I haven´t been able to figure out yet even though I have read quite a few Microsoft documents etc. 1. How can we turn off UAC temporarily for a scripted installation ? Currently I have a cmd for each application that I install silently and which is called in Wihu. The cmd contains commands to install applications, import reg files etc. A quick check in Vista shows that all the scripts immediately require an elevation prompt because UAC is active and therefore the script is not silent anymore. 2. Reg files do not get imported either, maybe thats because administrators do not have registry access anymore ? I read in a MS document somewhere that only the system account has full registry access in Vista. How can a scripted installation of various applications be executed in Vista ? Since the installation DVD should be a WindowsXP/Vista dualboot DVD, it would be great if the commands added in the cmd´s would not disturb installation under XP. Completely disabling UAC would require a restart and is not the goal here at least if possible. Does anyone have some experience yet with scripted installations in Vista ? Also, I would like to know if some post installer tools like Wihu are compatible with Vista yet. Wihu unfortunately is not going to be updated anymore so I would have to find some alternative programs, any ideas ? Thanks for your help ! Alex
-
problem with for/tokens/delims etc.
midiboy replied to midiboy's topic in Unattended Windows 2000/XP/2003
Hey ! Jesus you 2 are good ! Thanks a lot for this one Yzöwl and gunsmokingman! Bye, Alex -
problem with for/tokens/delims etc.
midiboy replied to midiboy's topic in Unattended Windows 2000/XP/2003
Hi Yzöwl, actually I did that already as you can see in the pic. I am gonna change the code example in the first post to reflect that. Does not help though .. Bye, ALe x -
problem with for/tokens/delims etc.
midiboy replied to midiboy's topic in Unattended Windows 2000/XP/2003
Hi Yzöwl, Thanks for helping out ! mhh, first, %APPDATA% points to "%Profiles%\Appdata" not to "%Profiles%\Local settings\Appdata" :-) Second, I just tested it again and the line works fine in Windows XP but not in Windows 2003 Server even though the registry keys look identical. Any ideas why it does not work ? It seems like the whole line is not even processed. In Windows XP I can see a line "set LocalAppData=C:\...." before the echo statement, which is missing in Windows 2003 Server. Thanks, Alex PS: That is a <TAB> in there -
Hi guys, looking for a way to query the Local appdata folder from the registry FOR /F "TOKENS=3 DELIMS= " %%i in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Local AppData"') do set LocalAppData=%%i However that does not work. This line works fine for extracting the personal folder but not for the local appdata folder. Any ideas, why ? Thanks a lot for your help ! Alex
-
Office 2007, Unattended Setup & Fine-tuning
midiboy replied to prathapml's topic in Microsoft Office
Hi guys, has anyone found a way to integrate the Technical refresh into the Office 2007 installation base ? If the TR is run, it expands a bunch of msp files into the temp folder. However, those msp files do not directly correspond with the installation msi files except for the ProWW.msp so I don´t know which msp I should be running against which msi. edit: Running an msiexec /p ProWW.msp /a ProWW.msi does not work at all. The process quits right at the beginning. Has anyone found a solution yet ? Thanks, Alex -
Hi Guys, downloaded RC1 build 5600 and the BDD beta 1 but somehow I cannot get things to work very well. First, the WAIK included in the BDD cannot load the wim´s catalog file, second creating a new catalog file always results in an error message (Exception from HRESULT: 0x800F0808) edit: Seems to be a compatability problem with the WAIK and RC1. MS Newsgroups report that a new version of the WSIM is needed. Second I am a bit lost when it comes to the whole process of making Vista unattended. Maybe someone can explain how the BDD, WAIK, XImage etc. interact to create an unattended Vista DVD. I have tried reading the help files but I still don´t understand. edit: Getting clearer now after reading the WAIK Users Guide. I still don´t know why the BDD is needed at all but maybe someonce can clear that up ... Third, I realize that an xml based answer file is being used to automate the Windows installation but how can we import registry tweaks to the default profile, install updates, applications etc. ? Does runonceex still exist or is it done differently in Vista ? Adding applications and even drivers seems to be possible using the same answer file but I still have not found a way to edit the default profile or add registry tweaks to it ... And last but not least, does an application installer like Wihu already work for Vista ? thanks, Alex
-
Hi again, well, I have already based a small backupscript upon your idea. Maybe it helps someone else too. I also found a small freeware smtp send app here which I am using inside the script to email the logfile- @ECHO OFF &SETLOCAL ENABLEEXTENSIONS REM define variables: REM variable path eg: D: or D:\Backup (without "\" at the end!) set DL=D:\Backup REM DELETE OLD BACKUP LOGS ( Only works on a german system. On an english system change "Anwendungsdaten" into "program data" (I think) if exist "%TMP%\..\Anwendungsdaten\Microsoft\Windows NT\NTBackup\data\*.log" del "%TMP%\..\Anwendungsdaten\Microsoft\Windows NT\NTBackup\data\*.log" REM FIND weekday SET "TM_=%TEMP%\_TMP$.VBS" >%TM_% ECHO/WSCRIPT.ECHO WEEKDAYNAME(WEEKDAY(DATE),TRUE) FOR /F %%? IN ('CSCRIPT //NOLOGO %TM_%') DO (SET "WD_=%%?" &&(DEL %TM_%)) REM CREATE FOLDERS if not exist "%DL%\%WD_%" md "%DL%\%WD_%" REM START NTBACKUP (BKS SELECTION FILE HAS TO BE CREATED BEFORE !) "%WINDIR%\System32\NTBACKUP.EXE" backup "@C:\Unbenannt.bks" /d "Description" /v:yes /r:no /rs:no /hc:off /m normal /l:s /f "%DL%\%WD_%\Sicherung_Test_%WD_%.bkf" REM MOVE LOGFILE TO BACKUPLOCATION ( Only works on a german system. On an english system change "Anwendungsdaten" into "program data" (I think) move /Y "%TMP%\..\Anwendungsdaten\Microsoft\Windows NT\NTBackup\data\*.log" "%DL%\%WD_%\Sicherung_Test_%WD_%.bkf.log" REM MAIL THE LOGFILE USING BMAIL bmail.exe -s mailserveradress -t toemailadress -f fromemailadress -a "Test Backup Results" -m "%DL%\%WD_%\Sicherung_Test_%WD_%.bkf.log" -c REM REPEAT THE ABOVE STEPS FOR A SECOND BACKUPJOB "%WINDIR%\System32\NTBACKUP.EXE" backup systemstate /d "Systemstate" /v:yes /r:no /rs:no /hc:off /m normal /l:s /f "%DL%\%WD_%\Systemstate_%WD_%.bkf" move /Y "%TMP%\..\Anwendungsdaten\Microsoft\Windows NT\NTBackup\data\*.log" "%DL%\%WD_%\Systemstate_%WD_%.bkf.log" bmail.exe -s mailserveradress -t toemailadress -f fromemailadress -a "Test Backup Results" -m "%DL%\%WD_%\Systemstate_%WD_%.bkf.log" -c ENDLOCAL &GOTO :EOF It works here. But maybe it could be refined. For instance it would be nicer if all the backupjobs including the moving of the backuplog and the mailing could run in some loop with variables for the bks, bkf, logfilenames and backup description. However, I am not very good at loops (yet) :-) I am not good at scripting at all Bye, Alex
-
Hey Yzöwl! wow, you are such a genius !!! This idea of using a temp vbscript is soo cool, thanks a lot ! your skills are wonderful, I wish I could do something like this ! Thanks very much ! Alex
-
Hi everyone. I am trying to develop a backup script using the command line. I am thinking of something like this: Script should check the day of the week, then create (if not already exist) a folder with that variable and then start ntbackup with the bkf file set in that folder. That way I only have one script but it runs Mo-Sa and drops bkf files into separate folders. (which overwrites the one inside). Only problem is ... how do I get the day of the week into a variable ? The %date% var. does not seem to help here. any ideas ? Ah ... and as a bonus it would be nice if the script could email the backup logs afterwards. Any small comandline smtp program available somewhere ? Thanks for your help ! Alex
-
Office 2007, Unattended Setup & Fine-tuning
midiboy replied to prathapml's topic in Microsoft Office
Hi again, I adapted some other script I found on the net. This one works for me: dim WshShell, iLoopTimeWait Set WshShell = CreateObject("WScript.Shell") iLoopTimeWait = 800 Set FileSysObj = CreateObject("Scripting.FileSystemObject") ScriptPath = FileSysObj.GetFile(WScript.ScriptFullName).ParentFolder Cmd = Chr(34) & "setup.exe" WshShell.Run Cmd Call Main() Set WshShell = Nothing WScript.quit() Sub Main() Connect2Window iLoopTimeWait, "Microsoft Office Professional Plus 2007 (Beta)" WshShell.SendKeys ("{ENTER}") End Sub Function Connect2Window(iTime, sWindowName) Do until WshShell.AppActivate (sWindowName) WScript.Sleep iTime loop End function -
Office 2007, Unattended Setup & Fine-tuning
midiboy replied to prathapml's topic in Microsoft Office
Hi ! thanks for the script. Will try it soon ! Here´s an adapted config.xml that will install EVERYTHING except Japanese font and New/open document links. <Configuration Product="Pro"> <Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" /> <PIDKEY Value="ENTER CODE" /> <USERNAME Value="0wner" /> <COMPANYNAME Value="0wn Inc." /> <OptionState Id="ACCESSFiles" State="local" Children="force" /> //access <OptionState Id="OUTLOOKFiles" State="local" Children="force" /> //outlook <OptionState Id="EXCELFiles" State="local" Children="force" /> //excel <OptionState Id="PubPrimary" State="local" Children="force" /> //publisher <OptionState Id="PPTFiles" State="local" Children="force" /> //Powerpoint <OptionState Id="AceRepl" State="local" Children="force" /> //access db Engine replication <OptionState Id="CAGFiles" State="Local" Children="force" /> //Clip Organizer <OptionState Id="MSSOAP3" State="local" Children="force" /> //SOAP toolkit <OptionState Id="WISPFiles" State="local" Children="force" /> //handwriting <OptionState Id="DocServicesFiles" State="local" Children="force" /> //docu update util <OptionState Id="HTMLSourceEditing" State="local" Children="force" /> //script editor <OptionState Id="DocumentImagingUtils" State="local" Children="force" /> //scanning,ocr,indexing <OptionState Id="OISFiles" State="local" Children="force" /> //picture manager <OptionState Id="OSESupp" State="local" Children="force" /> //sharepoint support <OptionState Id="QueryFiles" State="local" Children="force" /> //msQuery <OptionState Id="VisioPreviewerFiles" State="local" Children="force" /> //visio viewer <OptionState Id="XDOCSFiles" State="local" Children="force" /> //infopath <OptionState Id="OsaNonBoot" State="absent" Children="force" /> //new,open office docu lnks </Configuration> Bye, Alex Hi again, mhh, if I start your script with this line wscript "path.to\script.vbs" I get a Windows XP Setup message !! Maybe the path to the setup.exe is wrong. I have found these lines Set FileSysObj = CreateObject("Scripting.FileSystemObject") ScriptPath = FileSysObj.GetFile(WScript.ScriptFullName).ParentFolder in some other script but they do not work in your script (and I am not good at vbs scripting at all) MAybe something else is wrong too because the same thing happens if I double click on the vbs ... Thanks for your help, Alex -
Office 2007, Unattended Setup & Fine-tuning
midiboy replied to prathapml's topic in Microsoft Office
Hi! I have the same problem. The config.xml is obviously being used but I get the same dialog window. By the way ... is there a way to tell Office in the config.xml to install ALL components, not just the default ones ? Thanks, Alex -
Hey! thats nice, thanks. While we already knew that avp.exe causes the reboot at least in the other thread no one simply killed avp.exe. Instead the msi was modified to not start the avp.exe after installation. Your solution is easier of course ;-) If you find a way to install a profile silently, please tell us ;-) Also it would be nice to trigger the post install wizard silently. Currently, if you start avp.exe after a silent installation it just reboots instead of starting the post install wizard. Thanks, Alex
-
Hi ! I am fine without W2K support if that makes the new version appear faster It can still be added later on. But Bashrat is the guru here so I am fine with whatever he decides Bye, Alex