Jump to content

Recommended Posts

Posted

What's wrong with this entry?

REG ADD %KEY%\014 /VE /D "Active Perl v5.8.7.813" /f
REG ADD %KEY%\014 /V 1 /D "%CDROM%\Software\ActivePerl\ActivePerl.msi /qb TARGETDIR="%ProgramFiles%" /f

When i run

ActivePerl.msi /qb TARGETDIR="%ProgramFiles%"

in windows, it installs just fine. In an unattended installation, it doesn't install. What I'm i doing wrong?


Posted (edited)

try

REG ADD %KEY%\014 /V 1 /D "%CDROM%\Software\ActivePerl\ActivePerl.msi /qb TARGETDIR="%ProgramFiles%"" /f

or maybe this

REG ADD %KEY%\014 /V 1 /D "%CDROM%\Software\ActivePerl\ActivePerl.msi /qb TARGETDIR=%ProgramFiles%" /f

Edited by Acidhurl
Posted (edited)

ok, can anynone explain to me how this quotes thing works?

-p\"-s /v\"/qn\"\"

how can i combine so many quotes with backslashes?

I'm suspecting that's why my perl installation is not working.

Will this do it?

REG ADD %KEY%\014 /VE /D "Active Perl v5.8.7.813" /f

REG ADD %KEY%\014 /V 1 /D "%CDROM%\Software\ActivePerl\ActivePerl.msi /qb TARGETDIR="%ProgramFiles%"\" /f

Edited by Nucleus
Posted (edited)

no, but this will

REG ADD %KEY%\014 /VE /D "Active Perl v5.8.7.813" /f

REG ADD %KEY%\014 /V 1 /D "%CDROM%\Software\ActivePerl\ActivePerl.msi /qb TARGETDIR=\"%ProgramFiles%\"" /f

just to explain it a bit, here's how it goes:

"initial quote \"qoute inside a qoute\" exit the inside qout, and the end quote for the first quote"

Edited by eagle00789

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...