Jump to content

Why won't this run


Recommended Posts

I am trying to kick off an install

The installation files reside in

C:\Applications\AdobePhotoshopElements8

REG ADD %KEY%\030 /VE /D "Installing Adobe Photshop Elements 8.0" /f
REG 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" /f
REG ADD %KEY%\030 /V 1 /D C:\Applications\AdobePhotoshopElements8\PSE8.cmd" /f]

in the cmd file it has the following commands

cd \AdobePhotoshopElements8
setup

Edited by clivebuckwheat
Link to comment
Share on other sites


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" /f

REG ADD %KEY%\030 /V 1 /D C:\Applications\AdobePhotoshopElements8\PSE8.cmd" /f]

Link to comment
Share on other sites

The missing " is there in my script in my carelessness to post I didn't get the whole line sorry

The 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 installer

REG ADD %KEY%\030 /VE /D "Installing Adobe Photoshop Elements 8" /f
REG 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" /f
REG ADD %KEY%\030 /V 1 /D "C:\Applications\AdobePhotoshopElements8\PSE8.cmd" /f

The contents of the PSE8.cmd is as follows. The PSE8.cmd is in C:\Applications

cd\AdobePhotoshopElements8
setup.exe

What I do not understand is why the commands below will not work?.

REG ADD %KEY%\030 /VE /D "Installing Adobe Photoshop Elements 8" /f
REG ADD %KEY%\030 /V 1 /D "C:\Applications\AdobePhotoshopElements8\Setup.exe" /f

Edited by clivebuckwheat
Link to comment
Share on other sites

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 flexibility

cd /d %~dp0 

in your batch.

Edited by allen2
Link to comment
Share on other sites

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:\Applications

cd\AdobePhotoshopElements8
setup.exe

As 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

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

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 by clivebuckwheat
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...