buzzman2005 Posted December 19, 2004 Share Posted December 19, 2004 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?????? Link to comment Share on other sites More sharing options...
Incroyable HULK Posted December 19, 2004 Share Posted December 19, 2004 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... Link to comment Share on other sites More sharing options...
buzzman2005 Posted December 19, 2004 Author Share Posted December 19, 2004 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 Link to comment Share on other sites More sharing options...
Incroyable HULK Posted December 20, 2004 Share Posted December 20, 2004 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% . . ... . .. . .. . ... Link to comment Share on other sites More sharing options...
buzzman2005 Posted December 20, 2004 Author Share Posted December 20, 2004 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 Link to comment Share on other sites More sharing options...
Astalavista Posted December 20, 2004 Share Posted December 20, 2004 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 Link to comment Share on other sites More sharing options...
Incroyable HULK Posted December 20, 2004 Share Posted December 20, 2004 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... Link to comment Share on other sites More sharing options...
nakira Posted December 20, 2004 Share Posted December 20, 2004 REG ADD %KEY%\080 /V 1 /D "\"%systemdrive%\program files\winzip\winzip32.exe\" /noqp /notip /autoinstall" /f Link to comment Share on other sites More sharing options...
buzzman2005 Posted December 20, 2004 Author Share Posted December 20, 2004 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 Link to comment Share on other sites More sharing options...
Incroyable HULK Posted December 20, 2004 Share Posted December 20, 2004 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 Link to comment Share on other sites More sharing options...
buzzman2005 Posted December 20, 2004 Author Share Posted December 20, 2004 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 Link to comment Share on other sites More sharing options...
nakira Posted December 20, 2004 Share Posted December 20, 2004 Yeah, if the key you need extra quotation marks or /switches that conflict with REG's switches you escape them. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now