srgsng25 Posted October 21, 2006 Share Posted October 21, 2006 How do i tell wpi to install a file located on a local file server i would like to hard encode the \\server\share\ or z:\share\file.exe any help would be great i am jsut a beginner at this so i am still doing lots of reading Link to comment Share on other sites More sharing options...
pmshah Posted October 22, 2006 Share Posted October 22, 2006 If you are going to use the wpi cd on the specific network ONLY you simply have to map the network resource to a specific letter like Z or N before starting WPI.I believe you could then hardcode the drive letter in your wpi scripts to install anything you want. Link to comment Share on other sites More sharing options...
ZcWorld Posted October 22, 2006 Share Posted October 22, 2006 yep i would preset a network drive letter for the WPI Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted October 22, 2006 Share Posted October 22, 2006 Try using this batch file to enable a network WPI installation:@ECHO OFFSETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSIONSET SHARE=\\SERVER\SHARETITLE Running WPI from "!SHARE!"...PUSHD "!SHARE!"ECHO.Mounting "!SHARE!" to "!CD!"...PUSHD WPIECHO.Starting WPI...START /wait wpi.htaPOPDECHO.Unmounting network-drive...POPD Link to comment Share on other sites More sharing options...
lawrenca Posted October 22, 2006 Share Posted October 22, 2006 In addition to Kel's comments on getting the network drive letter mounted and launching wpi.hta with the listed .bat file...you should still be able to use relative paths in your command lines for applications as they get initiated/resolved once wpi.hta gets launched, no need to hard code the paths! Well, unless you have them seperated from your WPI folder structure. I use the same folder structure for testing on my desktop, burning CD/DVDs, and my network shares.If your share is mapped to users when logged on (like many IT departments do), you would only have to point to the location of wpi.hta. Our departments actually include a link on Start Menu to wpi.hta for quick access to our server share. Link to comment Share on other sites More sharing options...
arabianhorse Posted October 23, 2006 Share Posted October 23, 2006 Try using this batch file to enable a network WPI installation:@ECHO OFFSETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSIONSET SHARE=\\SERVER\SHARETITLE Running WPI from "!SHARE!"...PUSHD "!SHARE!"ECHO.Mounting "!SHARE!" to "!CD!"...PUSHD WPIECHO.Starting WPI...START /wait wpi.htaPOPDECHO.Unmounting network-drive...POPD-----------MR KELI LOVE THIS CMAND IT IS BETER THEN RUNING WPI.htaESPESHELY THROW AUTORUNIT IS MUCH SMOTHER AND FASTERI RUN IT LIKE THIS[AutoRun]open=RunHiddenConsole.exe /W RUN_WPI_ON_network_drive.cmdICON=WPI\WPI.ICOSO THNKXXX BRO Link to comment Share on other sites More sharing options...
crezaee Posted October 27, 2006 Share Posted October 27, 2006 (edited) Where do I put this batch file so that it runs before WPI tries to run? Right now at first logon it's coming up and saying "can't find C:\WPI\wpi.hta" and it gives me the option to browse to the location......How can I get it to already know the location is a mapped drive? Does this batch file do that? If so, where do I put this batch file so it runs before the launching of wpi.hta at first logon?I hope I'm making sense EDITED: Windows cannot find 'c:\wpi\WPI.hta'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search.This is the exact error message I receive. Edited October 27, 2006 by crezaee Link to comment Share on other sites More sharing options...
crezaee Posted October 27, 2006 Share Posted October 27, 2006 (edited) EDIT: This is in my opinion much easier than how you all do it... I've just got done testing and it works perfectly.First make changes to your risstndrd.sif located in : ImageName\I386\Templates folder. Make sure to include these lines in the unattended section.OemPreinstall = YesUnattendSwitch= "yes"Next make sure you have your $oem$ folder located at same level as I386 folder.Inside the $oem$ folder create a directory called $1 Inside the $1 directory create another directory called DriversInside the Drivers directory COPY your WPI folder (the one that is located at same level as I386 Directory).Modify the RunWPI.cmd file and add in thisfor /f "delims=: tokens=1" %%i in ("%~dp0") do set drive=%%i:set wpipath=%drive%\Drivers\wpiSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY%\999 /V 1 /D "%wpipath%\WPI.hta" /fThat's IT. Now your RIS Server will install the OS move the files for WPI to your C:\Drivers\WPI and bring up your WPI-Screen with install options at first logon. (THE CHANGE You need to make in RunWPI.cmd is shown in bold)**IF you do have a lot of things that you install, this might not be ideal because it has to first transfer all thefiles remotely to the targeted machine (which is done at the time of install from RIS).... inthat case I might suggest using the other methods, or calling a map network drive function then pointing large installs to the specific location it is stored at. Edited October 27, 2006 by crezaee Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now