MSFN Forum: Runing WPI from USB drive - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Runing WPI from USB drive What would replace %CDROM% in config.js? Rate Topic: -----

#1 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 03 July 2012 - 08:18 AM

Hello,

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 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,249
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 03 July 2012 - 10:16 AM

It appears that several things are involved.

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 User is offline   coucou 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 825
  • Joined: 01-January 04

Posted 03 July 2012 - 10:40 AM

TNX for yr reply but it doesn't help.
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 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,249
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 03 July 2012 - 11:53 AM

Nonetheless, the remainder of the concept is the same.

#5 User is offline   alfreire 

  • Member
  • PipPip
  • Group: Members
  • Posts: 120
  • Joined: 07-August 11
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 July 2012 - 12:14 PM

Sorry, I misunderstood the question... :blushing:

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 User is offline   submix8c 

  • Inconceivable!
  • Group: Patrons
  • Posts: 3,249
  • Joined: 14-September 05
  • OS:none specified
  • Country: Country Flag

Posted 03 July 2012 - 12:19 PM

Thx, alfreire, but the OP still wants to use an AutoIT - the method/changes nonetheless remains the same. I will assume that the "drive" variable will auto-insert into the WPI and still work? AFAIK, the Scripts will have to use that Variable, nonetheless (instead of the built-in variables). Take a look inside your JavaScript "list" and see what I mean... :unsure:

#7 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,326
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 03 July 2012 - 07:53 PM

Hmmmm lemme ask:

WHY not use the %wpipath% variable as is and always has been shown in the exaples???

#8 User is offline   apachedezign 

  • Group: Members
  • Posts: 1
  • Joined: 11-April 13
  • OS:XP Pro x86
  • Country: Country Flag

Posted 11 April 2013 - 08:25 AM

I use the standard v8.6.3 WPI, after I sett, when install error, I use external hardisc, can you please help me

#9 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,326
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 11 April 2013 - 06:48 PM

I have summoned the technical support demons because my crystal ball is broken. The told me that when you last used WPI the offering you gave them was no-where near the amount they wanted. So the best thing I can tell you is to place your tower near the CPU god idol and pray harder next time...

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 User is offline   Siginet 

  • Windows XP PowerPacker Creator
  • PipPipPipPipPip
  • Group: Members
  • Posts: 736
  • Joined: 22-January 05

Posted 11 April 2013 - 06:57 PM

View PostKelsenellenelvian, on 11 April 2013 - 06:48 PM, said:

I have summoned the technical support demons because my crystal ball is broken. The told me that when you last used WPI the offering you gave them was no-where near the amount they wanted. So the best thing I can tell you is to place your tower near the CPU god idol and pray harder next time...

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. :( And my CPU god sucks!! Time to offer up a sacrafice!

#11 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 8,326
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 12 April 2013 - 05:58 PM

View PostSiginet, on 11 April 2013 - 06:57 PM, said:


LOL! My **** crystal ball never worked. :( And my CPU god sucks!! Time to offer up a sacrafice!


It got to the point where they were demanding a sacrifice of at least three apple product or a single windows 8 license though.




Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy