clivebuckwheat Posted August 31, 2011 Share Posted August 31, 2011 (edited) I am trying to kick off an installThe installation files reside inC:\Applications\AdobePhotoshopElements8REG ADD %KEY%\030 /VE /D "Installing Adobe Photshop Elements 8.0" /fREG ADD %KEY%\030 /V 1 /D C:\Applications\AdobePhotoshopElements8\Setup.exe" /f]I get an error cannot find the installer. I am trying to understand why the above doesn't work, yet calling it from a cmd file does.but if I run it from a cmd file located in C:\Applications REG ADD %KEY%\030 /VE /D "Installing Adobe Photshop Elements 8.0" /fREG ADD %KEY%\030 /V 1 /D C:\Applications\AdobePhotoshopElements8\PSE8.cmd" /f]in the cmd file it has the following commandscd \AdobePhotoshopElements8setup Edited August 31, 2011 by clivebuckwheat Link to comment Share on other sites More sharing options...
IcemanND Posted August 31, 2011 Share Posted August 31, 2011 If this is a direct copy and paste of the commands you are missing a " in the second line, or maybe a [ instead?REG ADD %KEY%\030 /VE /D "Installing Adobe Photshop Elements 8.0" /fREG ADD %KEY%\030 /V 1 /D C:\Applications\AdobePhotoshopElements8\PSE8.cmd" /f] Link to comment Share on other sites More sharing options...
clivebuckwheat Posted August 31, 2011 Author Share Posted August 31, 2011 (edited) The missing " is there in my script in my carelessness to post I didn't get the whole line sorryThe issue is this I have a directory called C:\Applications\AdobePhotoshopElements8\here are the lines that should kick off the installation, yet I get an error message cannot find installerREG ADD %KEY%\030 /VE /D "Installing Adobe Photoshop Elements 8" /fREG ADD %KEY%\030 /V 1 /D "C:\Applications\AdobePhotoshopElements8\Setup.exe" /f If I kick off the install like this it works.REG ADD %KEY%\030 /VE /D "Installing Adobe Photoshop Elements 8" /fREG ADD %KEY%\030 /V 1 /D "C:\Applications\AdobePhotoshopElements8\PSE8.cmd" /fThe contents of the PSE8.cmd is as follows. The PSE8.cmd is in C:\Applicationscd\AdobePhotoshopElements8setup.exeWhat I do not understand is why the commands below will not work?.REG ADD %KEY%\030 /VE /D "Installing Adobe Photoshop Elements 8" /fREG ADD %KEY%\030 /V 1 /D "C:\Applications\AdobePhotoshopElements8\Setup.exe" /f Edited August 31, 2011 by clivebuckwheat Link to comment Share on other sites More sharing options...
allen2 Posted August 31, 2011 Share Posted August 31, 2011 (edited) The cmd is most likely the problem:Do you have a folder "AdobePhotoshopElements8" inside the folder "C:\Applications\AdobePhotoshopElements8" ?Also you should just do :cd /d "C:\Applications\AdobePhotoshopElements8"or for more flexibilitycd /d %~dp0 in your batch. Edited August 31, 2011 by allen2 Link to comment Share on other sites More sharing options...
Guest Posted August 31, 2011 Share Posted August 31, 2011 The batch works as clicebuckwheat describes, allen2. The fact that it works appears to be the problem. The contents of the PSE8.cmd is as follows. The PSE8.cmd is in C:\Applicationscd\AdobePhotoshopElements8setup.exeAs written, "cd\AdobePhotoshopElements8" points to "C:\AdobePhotoshopElements8" because the target starts with a backslash (\). Does the setup.exe file reside there? Link to comment Share on other sites More sharing options...
allen2 Posted August 31, 2011 Share Posted August 31, 2011 That's right i misread his post.As i assumed the setup.exe should be in C:\Applications\AdobePhotoshopElements8, it would work with the code provided (the first one) and if the batch is in the same folder then the second should be used. Link to comment Share on other sites More sharing options...
clivebuckwheat Posted August 31, 2011 Author Share Posted August 31, 2011 (edited) Calling the installation from the batch does work fine. It always has.The issue is I get can't find installer if I try to kick it off with C:Applications\Adobephotoshopelements8\setup.exe in the regadd statement. The setup.exe runs fine if I manually double click it Edited August 31, 2011 by clivebuckwheat 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