Runing WPI from USB drive What would replace %CDROM% in config.js?
#1
Posted 03 July 2012 - 08:18 AM
Until now I used DVD’s for my unattended Win7 and softwares. In my WPI v8.2.1 config.js I used the here bellow Command line example to launch the prog installation
cmds[pn]=['"%cdrom%\\Software\\Office2010\\OFFICE14FR.exe"'];
I finished preparing an unattended Win7 and softwares (16 GB) USB key thanks to Rufus utility
What will replace %cdrom%\\Software\\ in the command line to install the progs, since all progs are located into \Software folder of the same USB key as Win7?
I'll appreciate yr help
#2
Posted 03 July 2012 - 10:16 AM
First the "SETUPCOMPLETE.CMD" (and defined to run in your XML?) needs changed to find and set "WPIPATH", then change the affected JS to point to it, including any BAT/CMD that might have the variable passed to it, and possibly any of the BAT/CMD files to use instead that variable (WPIPATH).
WPIdotNET is temporarily out of commission, but the Manual should be in your Package and both the "XP $OEM$" Compressed file and the "Vista/Win7 SETUPCOMPLETE" Compressed file are still available on the Wayback Archive (Oct 2007) as "samples".
#3
Posted 03 July 2012 - 10:40 AM
In fact I'm not (never) using SETUPCOMPLETE.CMD to launch WPI.
To launch WPI I'm using the CDVD-Switcher (see my topic's Signature ).
CDVD-Switcher is an AutoIt script and here bellow a part of it for the WPI.exe launching.
Local $aDrives = DriveGetDrive('CDROM')
If Not @error Then
For $i = 1 To $aDrives[0]
If DriveStatus($aDrives[$i]) = 'READY' And FileExists($aDrives[$i] & '\Software\WPI\WPI.exe') Then
$FoundFile = StringUpper($aDrives[$i]) & '\Software\WPI\WPI.exe' ;Assign Value to $FoudFile
ExitLoop
EndIf
Next
EndIf
Sleep(10) ;nominal sleep time to ease process consumption but maintain control of the System
;Next line closes AutoRun Window
If WinExists('[REGEXPTITLE:AutoPlay; CLASS:#32770]', '') Then WinClose('[REGEXPTITLE:AutoPlay; CLASS:#32770]', '')
Until $FoundFile ;Exit Loop when correct file on a CDROM drive is found
ToolTip('') ;closes Tooltip
Run($FoundFile) ;Runs the File
#4
Posted 03 July 2012 - 11:53 AM
#5
Posted 03 July 2012 - 12:14 PM
Have you tried it...? I think it should work the same way...
Regards... ;-)
This post has been edited by alfreire: 03 July 2012 - 12:36 PM
#6
Posted 03 July 2012 - 12:19 PM
#7
Posted 03 July 2012 - 07:53 PM
WHY not use the %wpipath% variable as is and always has been shown in the exaples???
#8
Posted 11 April 2013 - 08:25 AM
#9
Posted 11 April 2013 - 06:48 PM
In other words:
You provided NOWHERE enough information for us to help you.
What we need:
OS of the system running
WPI log
Config file
File\folder layout....
This post has been edited by Kelsenellenelvian: 11 April 2013 - 06:49 PM
#10
Posted 11 April 2013 - 06:57 PM
Kelsenellenelvian, on 11 April 2013 - 06:48 PM, said:
In other words:
You provided NOWHERE enough information for us to help you.
What we need:
OS of the system running
WPI log
Config file
File\folder layout....
LOL! My **** crystal ball never worked.
#11
Posted 12 April 2013 - 05:58 PM



Help

Back to top









