Nucleus Posted September 2, 2005 Posted September 2, 2005 What's wrong with this entry?REG ADD %KEY%\014 /VE /D "Active Perl v5.8.7.813" /fREG ADD %KEY%\014 /V 1 /D "%CDROM%\Software\ActivePerl\ActivePerl.msi /qb TARGETDIR="%ProgramFiles%" /fWhen 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?
MHz Posted September 2, 2005 Posted September 2, 2005 Looks like you have an imbalance with the double quotes. Only 3 are shown. That is odd!
Acidhurl Posted September 3, 2005 Posted September 3, 2005 (edited) tryREG ADD %KEY%\014 /V 1 /D "%CDROM%\Software\ActivePerl\ActivePerl.msi /qb TARGETDIR="%ProgramFiles%"" /for maybe thisREG ADD %KEY%\014 /V 1 /D "%CDROM%\Software\ActivePerl\ActivePerl.msi /qb TARGETDIR=%ProgramFiles%" /f Edited September 3, 2005 by Acidhurl
Nucleus Posted September 5, 2005 Author Posted September 5, 2005 (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" /fREG ADD %KEY%\014 /V 1 /D "%CDROM%\Software\ActivePerl\ActivePerl.msi /qb TARGETDIR="%ProgramFiles%"\" /f Edited September 5, 2005 by Nucleus
eagle00789 Posted September 5, 2005 Posted September 5, 2005 (edited) no, but this willREG ADD %KEY%\014 /VE /D "Active Perl v5.8.7.813" /fREG ADD %KEY%\014 /V 1 /D "%CDROM%\Software\ActivePerl\ActivePerl.msi /qb TARGETDIR=\"%ProgramFiles%\"" /fjust 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 September 5, 2005 by eagle00789
Nucleus Posted September 6, 2005 Author Posted September 6, 2005 So for every quote inside quotes, i must have a backslash before it?
Yzöwl Posted September 6, 2005 Posted September 6, 2005 Yes!The backslash is an escape character, all 'internal quotations must use this syntax. It prevents the command closing when it reaches the next quotation mark. For the guide on this read » Applications that use Quotations
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