December 19, 200421 yr Hey everyone...I'm testing my WPI setup and when i am trying to run by batch file.... it keeps saying it can't find the files... eventhough i copied then over to the specified folder....attached is the error msgand here the code the WPI created....cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing System Tools & Software - Step 2 of" /f REG ADD %KEY%\080 /VE /D "Win Zip 9.0" /f REG ADD %KEY%\080 /V 1 /D "%systemdrive%\"program files"\WinZip\winzip32.exe" /frundll32.exe iernonce.dll,RunOnceExProcesspauseexitI think it has something to do with the space in the path for "program files" but im not sure... ive tried putting 2 sets of quotes around the path like:""%systemdrive%\program files\WinZip\winzip32.exe""but then it say i have too many command paramaters and exits.....any ideas???? i'm sorry if this is redundant but i am a newbieTHANKSPS I've also had this problem when office trys to install fromt he folder "MS office 2003" as well as when NAV tries to install from "norton systemworks 2003" think it might be the spaces in these folder names as well??????
December 19, 200421 yr I think the problem is comming from the double quote around "program files"maybe you can try:"%systemdrive%\program files\WinZip\winzip32.exe"EDIT: you get a CMDOW error because it is not present in the SYSTEM32 folder...
December 19, 200421 yr Author sorry i posted the wrong version of the code.... yes i have tried"%systemdrive%\program files\WinZip\winzip32.exe"that is where i am getting the error
December 20, 200421 yr I don't know why you are launching the installation from a distant folder like that. In my setup, I always launch from %systemdrive%\install\xxx...Anyway, I think there is a Program Files variable so you could go with:"%ProgramFiles%\WinZip\winzip32.exe"otherwise I think you need a special syntax for that space... and unfortunatly for you I am really not good at this! EDIT: or was it %ProgramFilesDir% . . ... . .. . .. . ...
December 20, 200421 yr Author i'm launching it from the program files directory as the silent install instructions for winzip say to have it copied over to that folder and then run the command to launch the pgm.and would my code be???REG ADD %KEY%\080 /V 1 /D "%ProgramFilesDir%WinZip\winzip32.exe /noqp /notip /autoinstall
December 20, 200421 yr hello friend... why not use Winrar instead?if not there is an entire thread dedicated to winzip u can search for it.in your statement u say that u are using batch, wpi but it looks like u are using runonceEx.cmd
December 20, 200421 yr there is a missing \try this first:REG ADD %KEY%\080 /V 1 /D "%ProgramFiles%\WinZip\winzip32.exe /noqp /notip /autoinstall" /fEDIT: I don't know if your swithes are good for WinZip since I never install this program...
December 20, 200421 yr REG ADD %KEY%\080 /V 1 /D "\"%systemdrive%\program files\winzip\winzip32.exe\" /noqp /notip /autoinstall" /f
December 20, 200421 yr Author ok tried it REG ADD %KEY%\080 /V 1 /D "%ProgramFiles%\WinZip\winzip32.exe /noqp /notip /autoinstalland i get an "invalid key name" erroralso i am using the WPI to create a batch file which will then run upon first logon just liek the runonceexand i use btoh winrar and winzip.... i seem to have this issue with any folder name that has spaces in it ie "ms office" "program files" etc
December 20, 200421 yr Sorry, I just edited my previous post, there was some stuff missing at the END!!!EDIT: you can give a try to nakira's syntax
December 20, 200421 yr Author thanks everyoneits workign now....NAKIRAso in the future when i have a folder that is two names witha a space ie "ms office" do i put the "\ before the first set of quotes then \" after the executable file before the switches in order for the folder to be recognized as per your example?"\"%systemdrive%\program files\winzip\winzip32.exe\" /noqp /notip /autoinstall" /fTHANKS AGAIN
December 20, 200421 yr Yeah, if the key you need extra quotation marks or /switches that conflict with REG's switches you escape them.
Create an account or sign in to comment