Jump to content

bobmiers

Member
  • Posts

    20
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by bobmiers

  1. I was able to solve the problem myself. Here is the code that works. {JSCRIPT}=if (isUserName("Rita")) RunCmd('cmd /c copy /y "%wpipath%Install\internet\Filezilla_stuff\RITAsitemanager.xml" "%USERPROFILE%\AppData\Roaming\FileZilla\sitemanager.xml"',false,true)
  2. I need some help in using the isUserName((”Robert” ) test. Some of the lines of code may be wrapped.)I’m using WPI to upgrade Filzellia FTP program on my wife’s and my machines. I have the following 3 lines of code in WPI that work: {JSCRIPT}=if(isUserName("Robert")) {JSCRIPT}=alert("conditional Test message-the user is Robert") {JSCRIPT}=if(!isUserName("Rita")) {JSCRIPT}=alert("conditional Test message-user is not Rita") When the %USERNAME% =“Robert” {FILECOPY} "%wpipath%Install\internet\Filezilla_stuff\sitemanager.xml" "%USERPROFILE%\AppData\Roaming\FileZilla\sitemanager.xml" These 2 lines fail: There are 2 files in the Filezilla_stuff folder; sitemanager.xml and RITAsitemanager.xml. The files contain different FTP sites: {JSCRIPT}=if(isUserName("Robert")) {FILECOPY} "%wpipath%Install\internet\Filezilla_ stuff\sitemanager.xml" "%USERPROFILE%\AppData\Roaming\FileZilla\sitemanager.xml" {JSCRIPT}=if(isUserName("Rita")) {FILECOPY} "%wpipath%Install\internet\Filezilla_stuff\RITAsitemanager.xml" " %USERPROFILE%\AppData\Roaming\FileZilla\sitemanager.xml" However when I attempt to select which “sitemanager.xlm” file to copy (depending upon the %USERNAME%, both lines fail with returned code 999. Monday, February 16, 2015 2:58:49 PM - cmd2 Success (returned code undefined): if(isUserName("Robert")) alert("conditional Test message-the user is Robert") Monday, February 16, 2015 2:58:51 PM - cmd3 Success (returned code undefined): if(!isUserName("Rita")) alert("conditional Test message-user is not Rita") Monday, February 16, 2015 2:58:54 PM - cmd5 Success (returned code 0): CMD /C COPY /Y "O:\Install\internet\Filezilla_stuff\sitemanager.xml" "C:\Users\Robert\AppData\Roaming\FileZilla\sitemanager.xml" Monday, February 16, 2015 2:58:54 PM - cmd6 *** Fail *** (returned code 999): !isUserName("Rita") {FILECOPY} "O:\Install\internet\Filezilla_stuff\RITAsitemanager.xml" " C:\Users\Robert\AppData\Roaming\FileZilla\RITAsitemanager.xml" I’m hoping that someone can supply me with the correct contax. Thanks, Bob
  3. Hello all I'm attempting to write a template for creating installs for about 30 similar applications and would like to use the setEnvVar and getEnvVar functions. Because I need to have the text string used in multiple WPI cmd lines, I would like to use the setEnvVar to inset a folder name into an Env Variable. This would allow me to edit the name in one place. (Creating the env var was accomplish with {JSCRIPT}=setEnvVar("FoxFolderName","Fox001",true) I've checked the environment for this variable and value is there and correct. However when I attempt to put the getEnvVar() in to other WPI cmds, such as: {JSCRIPT}=if (!FolderExists("%ProgramFiles(x86)%\FoxgloveMisc\getEnvVar("FoxFolderName")\")) RunCmd('cmd /c mkdir "%ProgramFiles(x86)%\FoxgloveMisc\"',false,true) the command fails. Any help/hint will be appreciated. BobMiers
  4. Ver 8.4.0d seems to have fixed my problem. Additional question: when I first ran program after copying the 5 *.js files, I got a message that theme "Windows 7" wasn't there and the program was reverting to "Win7". I looked at my 8.2.2 version and found the "Windows 7" theme there, so copied it to the "themes" folder. All is well. Is Windows 7 going to be outdated? Thanks, Bob Miers
  5. Hi Using 8.2.2 on WIN7Ultimate64bit. I have 4 pages of items. When I go to the last page and attempt to select an item's checkbox, the screen immediately reverts to the prevous page. I notice that you are working on a new Beta, should I just wait for that? (I did check the other posts first.) Bob Miers
  6. Would it be an easy mod to permit 'click and drag' to highlight items in the ALT+G tab items... i.e. things within the Variable & JSCRIPTS. Likewise, in the command editing box. Bob Miers
  7. mritter: Thanks for your suggestion. It was quite helpful. After a bit of testing to get the syntax correct, I came up with this statement: {JSCRIPT}=if (!FolderExists("%ProgramFiles(x86)%\misc\")) RunCmd('cmd /c mkdir "%ProgramFiles(x86)%\misc\"',false,true) Now, if the folder doesn't exist, the command creates it and issues the "Success" message. If the folder does exist, the command also issues the "Success" message. Just what I wanted. I'm now off to creating the shortcuts... Once again, thanks. Bob Miers PS. During this process, I discovered another system variable... i.e. %ProgramFiles(x86)%. It doesn't show up in the ALT+G command variables.
  8. I'm aware that FolderExists would return a False prior to the subdirectory being created and True if the subdirectory is there . However, if one were to use the negate function ("!") in front of FolderExists, then the final result should be True, so then the {MAKEDIR} should be executed. This a standard method in a variety of other languages.
  9. I think I screwed up and didn't post my last reply, so here goes again Thanks, I see what you are suggesting.... put each of my programs within its own subdirectory under my "misc" subdirectory (then the {MAKEDIR} command would always work without the "failed" message. Wouldn't that work with out the "/S" option,? To continue my education, can you please explain how one uses the "FolderExists" logical function. Bob Miers
  10. Thank you myselfidem for your reply. As usual, I failed to fully explain my problem. Your sample was helpful but doesn't address my problem, so I'll try once more to explain. I have multiple programs that I want to install into the SAME subdirectory. The Command code is quite similar - only the program name is different. The 1st install goes well without any "failed" messages. However, WPI issues a "failed" notification on the when the second (or later) {MAKEDIR} command is executed. What I want to accomplish is to use the FolderExists function to test if the target subdirectory already exists. If it does then simply go onto the next command, otherwise create the subdirectory. In other words, use an IF/Then structure. Thanks, Bob Miers
  11. Testing if Folder Exists code Please forgive me for asking such a simple question. I've started using WPI a couple of months ago. I think that it is a great program that really saves a lot of time. I have several freeware programs that don't have a normal install method – they are standalone EXE's. I normally create a subdirectory in the Program Files/Program Files (x86) subdirectories. I then place the programs there and create a shortcut to them. Creating the subdirectory, putting the programs there and creating the deskop shortcuts is easily accomplished via WPI. My desire is to avoid the "failed" message for command 1, by testing for the existence of the subdirectory, when I attempt to add a second program into the subdirectory via WPI. My code for program #1: {MAKEDIR} %programfiles% (x86)\misc Code to Copy the appropriate files etc. My code for program #2: {MAKEDIR} %programfiles% (x86)\misc Code to Copy the appropriate files etc. What I need is the correct syntax for using the FolderExists function: !FolderExists("%programfiles%\\ (x86)\\misc") {MAKEDIR} %programfiles% (x86)\misc Thanks, Bob Miers
  12. This may not be of any help, but.... 1st. credit where credit is due. JohnC was helpful to me 2nd. I was having the same problem as the OP. My problem turned out to be the setup I had in my BIOS. I have 5 drives on my system and had 4 set (in sequence) as boot drives. I was attempting to install onto the 2nd SATA drive. Once I changed that drive to the 1st boot drive and disabled all of the other drives from being boot drives, the install worked. However, as John explained, I didn't get the SATA drivers to install, my installation reverted back to the MS default drivers. bobmiers
  13. Fellows This will be a quick response as my wife and I are going to be gone today and will be leaving within the hour. Tomorrow I will write a full report and will try to be specific. Fernando: No I'm not using RAID. John: I also found the ECS site(s) to be extremely slow. I left the clock.avi removal as defaulted in nLite ie. to be removed and once again I do not get the error - a real weird condition. I only got the BSOD after the 1st reboot during the installation process ie. when the 1st Windows logo with the "please wait" should appear. More later, Bob Miers
  14. Well fellows: I got it to work. Turned the hard drive boot sequence to "disabled" for all drives except the 120gig drive. I then put the my orginal SP2 disk in and it went completely through the process.... there was no NLDVR subdirectory - which I expected. Then rebooted with the nLite CD in the drive and it also went all the way through and there was a NLDVR subdirectory with 7 subdirectories. The CD that I used may not be the one that I sent the *.ini for.... this one had the NIC drivers and some of the network setup on it.... all worked. Then I rebooted once more and re-activated and changed the order of the hard disk booting sequence back to my normal sequency and it appears that everything works. I get back to my 1000gig drive and see the selection for the Vista install. Anyway, I think that we've solved the problem. Thanks a bunch I would still like to know the suggested driver for my board. And by the way -- no clock.avi errors Bob Miers
  15. I also don't understand why the folders are numbered 015-021 (only 7, BTW) either. I think what nLite does is, using the .inf file you point to, copies all the referenced files so that when the .inf is executed by Windows, the files will be available. For me, I would like to see the link to the driver DL site of the main board you are using. I would also like to see the information on SATA to PATA adapter you are using and the link to the driver DL site, if there is one. NLite has the clock.avi in the [Delete Box] of the Advanced-Components Task. I do not know why it is there but it has never given me a problem but some seem to need it. You need to remove the clock.avi from the [Delete Box]. Are you sure you can install an OS on the SATA attached PATA drives? Enjoy, John. What I ment by *.EXE is that after the OS is installed, I then run the nVidia install EXE's to make the NIC card and audio work. The IDE to SATA is a hardware device that has no software (that I know about). I suspect that there is a parallel to serial converter inside. The EXE is from the ECS site and has the name: GF7100PVT-M3 as the main title... then the MCP73 part for XP and Vista. I downloaded this file on 06/10/2009 but it carrys a date of 12/13/2008 inside. To remove any possible confusion that I may have caused. The 1000gig working OS was NOT installed from a nLite generated CD. It was installed from my SP2 CD and then upgraded by the MS stand alone EXE file. This is the drive that has the 017-021 subdirectories. re: clock.avi as I said, only the last two times that I attempted a slipstream did I have the error. I haven't had time this afternoon to perform the other tests that I spoke about. And now you fellows have given me more testing to do - not that I mind. I'll have to shut the machine down to do the checking in the BIOS. But, yes, I do make sure that the correct drives are in the booting order - both places in the BIOS setup. There is a three postion order - I have this set for: 1) CD/DVD rom, 2) Hard disk; 3) floppy - yeah I know that it probably won't get to the floppy, but that is OK for most of the time for me. The other area lists all of the hard drives and you choose the order that you want the drives to be checked - you can also disable any of the 5 positions. I change that to reflect the drive that I'm going to attempt to install the OS on. I have left the others along, but I think that I will set all of the rest to 'disabled' - at least for a test. -X- What you said about the GUI is exactly what I'm experiencing. If one of you will suggest the set of drivers that I should use, I'll give it a try. I'll try to determine the answers to any of the questions that I have not answered here and report back later. Thanks everyone. Bob Miers
  16. John, First, let me thank you for your efforts. I looked at the \windows\nldrv subdirectory on my working drive. It contains 8 subdirectories. (This was setup using the normal *.EXE update after Windows was installed. The directories are: 015; 016; 017; 018; 019; 020; 021. They all have files; some of them have lots of files. I then looked at the \windows\nldrv subdirectory of the failing install. There is only 1 subdirectory, 003. 003 contains these files: idecoi.dll; nvgts.sys; nvide.nvu; nvraid.cat; nvraidco.dll; nvrd32.inf; nvrd32.sys I am using the drivers from: Fernando – a link that I found on this forum. http://www.msfn.org/board/index.php?showtopic=51140 I downloaded all of the sets he refers to. I then chose the: 32bit nForce SATARAID drivers v10.1.0.28 WHQL for nForce 630-620i-610i=MCP73 because my board uses the MCP73 chip set. I get no errors during the CD build. The last couple of builds I’ve made I do get an error about not being able to find: clock.avi. This is something that nLite had in itself when I installed nLite. Why it is just now giving me the error is a mystery. I simply press ESC to skip the file and went on with the install. As I stated before, I have run the ISO into VMware workstation. I also am now getting the clock.avi error there as well. I will give the F8 key a try. FYI and to make it clear. I burn the ISO to a CD (slower than the max speed) and boot the CD. I progress to the point of selecting my 120gig drive. I then delete the partition, create it anew – using the full drive. I normally do a Quick format, but one time I did the full format – no difference. Once the format is done, the install tests the drive and does the copy of files. At this point, I get the “reboot in 15 seconds” message. I normally press Enter to bypass the wait. The machine does a reboot – going through the normal BIOS check. When I get the “Press Any Key to boot from the CD”, I wait. After the wait time, the machine shows me my default multi OS boot menu with a new entry at the top for 1 second. At this point the machine attempts to go into the next stage of the install. This is where I get the BSOD. Nothing I do at this point, short of CTRL-ALT-Delete does anything. To get back up, I have to do the Vista thing. There is one other item that I have discovered. I went back to my SP2 disk and tried to install it. It does the same thing. Installs OK if the drive is on SATA#1 and fails if the drive is on SATA#2. I’ll conduct another test. Remove the IDE drive (the one with Vista) and also remove all of the SATA drives but the 120gig – I’ll put it on SATA#2 or 3 and see if I can install. Will let you know the results. Bob Miers
  17. After another failed attempt. I examined the Windows subdirectory, there is a NLDVR subdirectory, however, this time there is only one subdirectory - 003 with 7 files. Yes, I have been starting with a fresh copy of SP2 each time I make an ISO. FYI, it is quite a process to get back to a functioning OS after these attempts.... the failed attempt sets the time delay to 1 second, and I'm not quite fast enough to get to another drive before it attempts to boot back to the failed install. If I don't change the boot.ini file it simply goes back to the BSOD. (I have let the machine set there for over an hour, so it doesn't appear to be a slowed up process. Is there some place that I can change that time delay? What I do is: boot to my Vista CD and do the repair to the start up. That then lets me boot Vista and I can change the boot.ini file on the 1000gig drive to a saved copy. Your help is greatly appreciated. Bob Miers
  18. Some more info: On the correct install (when the drive was moved to SATA #1) there is a NLDVR subdirectory with 7 subdirectorys. Each has files. I will do another install with the drive on SATA #2 and look to see if there is a NLDVR directory. It will take about an hour for me to do that. Bob Miers
  19. Hopefully I'll get the attachement correct. The stuff about nVidia is near the end of the file. How do I get the BSOD code? Thanks for your help. Bob Miers Last_Session__2009.07.16_14.10.21_.ini
  20. I’m in need of some information and help. The following hardware: ECS GF7100PVT-M3 v1 motherboard 2g RAM – According to the manual this MB uses MCP73PV as the chip set. (This MB supports 1 Floppy, 2 IDE drives, 4 SATA drives, + the normal VGA, Audio, USB etc.) The board uses the nVidia chip set (LAN card etc). I have 1 SATA drive connected to SATA #1-1000gig, plus 3 IDE drives with IDE to SATA adaptors connected to SATA #2-120gig,3-200gig,4-200gig; 1 IDE CD/DVD writer and 1 IDE 250gig disk drive connected to the IDE port. I have XpProSP2 installed on SATA #1 and VistaU installed on the IDE 250gig with multi OS booting. I wanted to SlipStream sp3 into my XPproSp2, so I got nLite and successfully integrated SP3. I also put the nVidia MCP73 driver set into the CD via nLite. I wanted to test on the SATA#2-120gig drive. So booted my modified SP3 disk and selected the SATA#2 drive to install. Everything went OK until after the 1st reboot – BSOD. After much testing, I find that I can only get the install to work only if I move the 120gig drive to the SATA #1 position. When I did this and started the OS, I then checked the drivers for the various nVidia components. The Network seems to be set to the nVidia drivers, however, the disk drivers still seem to be Micorsoft’s. I have tried various setting for the MB BIOS (selecting different drives to boot from) without success. I’ll be happy to post the nLite file, but that may not be necessary. Did I do something wrong or is it just not possible to install to a drive connected to SATA #2, 3, or 4. Thanks for your time, Bob Miers PS, I’ve loaded the image into WMware – but that doesn’t show me the disk drivers – I may not know how to look beyond the WMware. I've also spent a lot of time reading this forum, but I didn't find this problem - did I miss it?
×
×
  • Create New...