Metzen Posted September 24, 2004 Share Posted September 24, 2004 Hey, I have a feature request:I'm using WinPE to software scores of systems and am now using WPI to setup optional software that the customer can purchase (things like PowerDVD, Nero, etc.) After softwaring a machine, Windows is setup to launch programs one after the other in a order I specify. I have WPI set to launch first then a script that automatically detects the hardware in your machine and install whatever software you need accordingly. The problem I have is that after I click "Begin Installation" and WPI terminates, the automatic hardware install script starts concurrently with the WPI software. The reason it does so is because WPI terminates.So... What I'm looking for can really be solved by some batch file writers that are more clever than me (extremely likely ) or for WPI to change it's behaviour to terminate once the install is finished.How hard could either be?For a batch file script, it will need to watch RunOnceEx key to make sure it's empty before continuing the hardware install.Can anyone help me with this, or can WPI be setup to terminate once all the selected installs complete? Link to comment Share on other sites More sharing options...
a06lp Posted September 24, 2004 Share Posted September 24, 2004 I have a similar problem, only mine is with my cleanup.cmd file.Cleanup.cmd kept running during WPI, and I have no way of forcing it to wait until WPI is DONE, since WPI closes after clicking "Begin Installation", and then RunOnceEx takes over (I think?).Any suggestions, programmers? Link to comment Share on other sites More sharing options...
gresh Posted September 24, 2004 Share Posted September 24, 2004 @a06lp:Start your cleanup.cmd file from prog[48] in your config.js file.@Metzen: You can comment out the socond last line in the generate.js file. This way wpi will close, but not start installing right away.Launch the code below in a cmd file later when you want the runonceex to start installing the selected applications.rundll32.exe iernonce.dll,RunOnceExProcessIf you havent started the runonceex process with the code abowe, the runonceex process will automaticly start after a reboot, just before the desktop is loaded. Link to comment Share on other sites More sharing options...
a06lp Posted September 24, 2004 Share Posted September 24, 2004 @a06lp:Start your cleanup.cmd file from prog[48]in your config.js file.That is my current solution, but not the best one.I don't want Cleanup to even be seen by the front-end user. Much in the same way that they don't see the $OEM$ folders get copied, I want cleanup to run silently when everything else is done.But, I guess this method is ok... (I can, at least, FORCE the option) Link to comment Share on other sites More sharing options...
DisabledTrucker Posted September 24, 2004 Share Posted September 24, 2004 Nice, thanks, going to check it out now Link to comment Share on other sites More sharing options...
Metzen Posted September 25, 2004 Share Posted September 25, 2004 @Metzen: You can comment out the socond last line in the generate.js file. This way wpi will close, but not start installing right away.Launch the code below in a cmd file later when you want the runonceex to start installing the selected applications.rundll32.exe iernonce.dll,RunOnceExProcessIf you havent started the runonceex process with the code abowe, the runonceex process will automaticly start after a reboot, just before the desktop is loaded.Wow... Thanks, worked like a charm Link to comment Share on other sites More sharing options...
a06lp Posted September 26, 2004 Share Posted September 26, 2004 ^bumpity bump^got a new solution for me, too? Link to comment Share on other sites More sharing options...
hoverhead Posted September 26, 2004 Share Posted September 26, 2004 Very Very Very Nice.. Dudes.I got the program... 2.7 .. But please help me out here. I see there is also a WPI 3.0 Beta version out. Is this from the same dudes setting up 2.7..Sorry but I am a bit confused because the name is the same but the ppl posting it is different... Must I now use 2.7 or 3.0.. I surely like the 2.7 so far for what I have looked through Link to comment Share on other sites More sharing options...
a06lp Posted September 26, 2004 Share Posted September 26, 2004 Very Very Very Nice.. Dudes.I got the program... 2.7 .. But please help me out here. I see there is also a WPI 3.0 Beta version out. Is this from the same dudes setting up 2.7..Sorry but I am a bit confused because the name is the same but the ppl posting it is different... Must I now use 2.7 or 3.0.. I surely like the 2.7 so far for what I have looked throughI'm pretty sure they are very different versions...3.0 Beta is totally different, it no longer even looks the same as this WPI.I like this one much more. A lot simpler, faster, and easier to use overall Link to comment Share on other sites More sharing options...
bishooman Posted September 26, 2004 Author Share Posted September 26, 2004 hoverheadWPI 2.7 is by bishooman and gresh and we didnt relesed our 3.0 version yet we are working on thatWPI 3.0 beta it is by coolsights2000 he did a very nice job but i think it is complictedfor allwe are thinking to make many changes in our version 3.0 we will make WPI easier to use with completly new interface and all the opption that any body needsso plz keep working in our version 2.7 and tell us what need to improvethank you all Link to comment Share on other sites More sharing options...
a06lp Posted September 26, 2004 Share Posted September 26, 2004 hoverheadWPI 2.7 is by bishooman and gresh and we didnt relesed our 3.0 version yet we are working on thatWPI 3.0 beta it is by coolsights2000 he did a very nice job but i think it is complictedfor allwe are thinking to make many changes in our version 3.0 we will make WPI easier to use with completly new interface and all the opption that any body needsso plz keep working in our version 2.7 and tell us what need to improvethank you allplease be careful how much you change...the coolsights 3.0beta is largely complicated, and therefore i dont use it (not that it doesnt have its uses...its just that mine are geared toward simple).also, remember that a LOT of us spend LARGE amounts of time coding our WPI's correctly with all the extra slashes, and quotes, and whatnots. Therefore it would be appreciated if our current code would still work on the newer versions. Link to comment Share on other sites More sharing options...
Coolsights2000 Posted September 27, 2004 Share Posted September 27, 2004 I'm getting ready to post version 3.1 you cried so I added a preoption setup application to itrun the file Preset.hta when you look it overwith a simple click of the mouse you can turn on and off the options you want to keep or throw away......http://www.msfn.org/board/index.php?act=ST...t=0#entry196085Mac! Link to comment Share on other sites More sharing options...
Coolsights2000 Posted September 27, 2004 Share Posted September 27, 2004 also, remember that a LOT of us spend LARGE amounts of time coding our WPI's correctly with all the extra slashes, and quotes, and whatnots. Therefore it would be appreciated if our current code would still work on the newer versions. This is why I put in my read me to use a cmd file to run the installations programs....Less headachesonce you proof out the installtion folder all you need to do is link to the CMD in the folder... Link to comment Share on other sites More sharing options...
epoke Posted September 29, 2004 Share Posted September 29, 2004 hi all,is the registry files support working properly ? coz i think none of my .reg fille are install ,don't know why..for exemple :prog[16]=['Sygate Personal Firewall']desc[16]=['']regb[16]=['cdrom','APPLICATIONS\\Sygate\\reg.reg']cmd1[16]=['cdrom','APPLICATIONS\\Sygate\\pspf.msi /qn REBOOT=Suppress']cmd2[16]=['','']cmd3[16]=['','']rega[16]=['','']dflt[16]=['no']...prog[18]=['Windows Tweaks']desc[18]=['']regb[18]=['cdrom','APPLICATIONS\\Tweak\\Tweak.reg']cmd1[18]=['','']cmd2[18]=['','']cmd3[18]=['','']rega[18]=['','']dflt[18]=['yes']files are in :C:\XPCD\APPLICATIONS\and all soft are installing without any pbsTIA Link to comment Share on other sites More sharing options...
bishooman Posted September 29, 2004 Author Share Posted September 29, 2004 yes it is workingin your exmple it will not work !!try to edit the command lins to this if you want to test it from hard driveprog[16]=['Sygate Personal Firewall']desc[16]=['']regb[16]=['systemdrive','XPCD\\APPLICATIONS\\Sygate\\reg.reg']cmd1[16]=['systemdrive','XPCD\\APPLICATIONS\\Sygate\\pspf.msi /qn REBOOT=Suppress']cmd2[16]=['','']cmd3[16]=['','']rega[16]=['','']dflt[16]=['no']but if you are going to burn to a cd or dvd you command line are ok and it should work. Link to comment Share on other sites More sharing options...
Recommended Posts