August 19, 200818 yr Hey Lads,New to the whole WPI and vLite setup.So I have WPI almost setup how I want, I just have a few questions.I have the &OEM& download, Do I just copy the contents to my local vLite directory structure, which will become the root of my DVD incorperating WPI?Also, I want to setup conditions, because when WPI finishes, I am running a batch file which will copy the contents of the WPI directory structure, onto the local disk root, so the user has the applications to go back to if they want.If they do run WPI from their HDD later on, I need a condition that basically disables an installation option if it is already installed, and will then use the javascript alert function in WPI 7 to say "%PRODUCTNAME% is already installed, you will need to uninstall it first before using WPI to install it"So WPI when ran from HDD will check for program, if it finds it installed, will disable it and display an alert
August 19, 200818 yr What you ask is already in WPI: if you check for the program being installed in the Condition line, it won't be shown if installed. If use the Grayed Condition, it will be disabled but still visible. There is no way to open an alert box with a message, though. So in your case, use Condition to hide the item.
August 20, 200818 yr Author Yeah, I know its capaple of doing it.But what do I enter?Just choosing the ifExists condition doesn't work, it seems to want more information then that aloneAs for alerts, v7 added the support of the Javascript alert, so I imagine that means you can add it in somehow--EDIT--Additionally, I am copying the entire WPI folder contents to the systemroot\folderI would like to create a shortcut to the wpi.hta on the users desktop.How can I go about that? Edited August 20, 200818 yr by Sgt. D. Pilla
August 20, 200818 yr isInstalled("Adobe Reader 8.1.2") -- or -- !isInstalled("Adobe Reader 8.1.2")You have to install the program at least once, go to Add/Remove Programs, and use the text that is displayed there. Must match exactly.
August 20, 200818 yr Author Ok cool.I'll check that outAdditionally, I am copying the entire WPI folder contents to the systemroot\folderI would like to create a shortcut to the wpi.hta on the users desktop.How can I go about that?Another question to the one above, is my install failed to remove the other windows installations *Home, Basic, business etc* so how do I span it across multiple DVDs
August 21, 200818 yr Author Ah, yeah, vLite switches CDs fine.Another issue, is WPI doesn't even start.I'm making a vLite MultiDVD Vista Ultimate x64 unattended install.Vista installs ok, but when it gets to booting WPI.hta, it comes back with the following error.."Windows cannot find '\WPI\WPI.hta'. Make sure you typed the name correctly, and then try again."I used the sources download from here http://www.wpiw.net/The_Dark_Side/help.htmlThe contents of the file I have is the following...@echo offfor %%A 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 %%A\bootmgr ( if not exist %%A\setup.exe ( echo. echo Installing to drive %%A echo. if exist %%A\menu.lst attrib %%A\menu.lst -h -r -s if exist %%A\menu.lst ren %%A\menu.lst menu_lst.bak if exist %%A\grldr attrib %%A\grldr -h -r -s copy %systemroot%\setup\scripts\grldr %%A\grldr attrib %%A\grldr +h +s +r %systemroot%\setup\scripts\bootinst /nt60 %%A ) ))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:echo Found CD-Rom as drive %CDROM%Start %cdrom%\WPI\wpi.htadel %0I had to copy and cut the contents of the sources "setupcomplete.cmd" file to the end of the pre existing "setupcomplete.cmd" fileHow do I correct this?
August 22, 200818 yr OK I see the issue but I am not sure how to correct it...Basically you need to reset the %Path% before calling WPI's part of the command file.Let me think who around here is the best at this sh*t? He has an owl for an avatar and hangs around the unnatended section ALL the time...YZOWL!!! Ask him he is a genius at cmd files. Becuase yours terribly needs rebuilt.
August 23, 200818 yr Could someone please try to explain to me what it is that's causing a problem and what you'd like me to try to help with.I cannot see any use of %Path% and therefore understand why it's being suggested as the root cause.Please bear in mind upon response that I've never used, or even seen WPI at work!
August 23, 200818 yr @echo offfor %%A 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 %%A\bootmgr (if not exist %%A\setup.exe (echo.echo Installing to drive %%Aecho.if exist %%A\menu.lst attrib %%A\menu.lst -h -r -sif exist %%A\menu.lst ren %%A\menu.lst menu_lst.bakif exist %%A\grldr attrib %%A\grldr -h -r -scopy %systemroot%\setup\scripts\grldr %%A\grldrattrib %%A\grldr +h +s +r%systemroot%\setup\scripts\bootinst /nt60 %%A)))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:echo Found CD-Rom as drive %CDROM%Start %cdrom%\WPI\wpi.htadel %0This cmd file here Yzowl if you could possibly look at. It is 2 combined cmd files but i think it ended up being a mess. Can you try to clean it up?This is the added section: 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:echo Found CD-Rom as drive %CDROM%Start %cdrom%\WPI\wpi.htadel %0 I only mentioned you because you are so good at cmd file and scripting. Edited August 23, 200818 yr by Kelsenellenelvian
August 24, 200818 yr I cannot see anything which should prevent the launch of wpi.htaThe file could obviously be tidied a little by restructuring it so I'll do that and see if it helps.@Echo offFor /f %%# In ('Mountvol^|Findstr [c-z]:\\') Do Call :_ %%#If Defined %CDROM% ( Echo:Found CD-Rom as drive %CDROM:~0,2%&Start %CDROM%WPI\wpi.hta)Del %0:_Dir/b/a-d %1bootmgr||Goto :EofIf Exist %1sources\install.wim (Set CDROM=%1&Goto :Eof)Pushd %1&Echo:&Echo Installing to drive %1&Echo:Dir/b/a-d menu.lst&&Echo:f|Xcopy menu.lst menu_lst.bak /c/q/h/r/k/x/y&&( Del/f/a menu.lst%)Dir/b/a-d grldr&&(Echo:f|Xcopy %systemroot%\setup\scripts\grldr grldr /c/q/h/r/y Attrib %%A\grldr +h +s +r)%systemroot%\setup\scripts\bootinst /nt60 %%APopdI've changed some commands around a little too! (I used xcopy just to show you that it can copy without having to use attrib).The batch file is just typed up, it is untested.You may also be better off not checking for the install.wim, but something like autorun.ini, after all autorun.ini is not likely to be together with bootmgr in the root of any other drive than the CD-ROM
Create an account or sign in to comment