greg_285 Posted December 10, 2004 Share Posted December 10, 2004 HelloI have some problems to convert my start.cmd to a RunOnceEx.cmdHere is the content of my start.cmdECHO.ECHO Installation de CDex Echo Permet de ripper les cd audio en MP3ECHO Veuillez patienter......start /wait %systemdrive%\Install\Applications\CDex\cdex_151.exe /Secho installation termineeecho.echo Installation de Adobe acrobat readerecho Permet de lire les fichier PDFECHO Veuillez patienter......start /wait %systemdrive%\Install\Applications\AdobeReader\AdbeRdr60_fra_full.exe -p"-s /v\"/qn\""echo installation termineeecho.echo Installation de MSN messengerecho Outil de messagerie instantaneeECHO Veuillez patienter......start /wait %systemdrive%\Install\Msn\MsnMsgs.msi /QBecho installation termineeecho.echo Installation Pack Office 2003echo Suite bureautiqueECHO Veuillez patienter......start /wait %systemdrive%\install\Applications\Office2003\setup.exe TRANSFORMS="unattended.mst" /qb- echo installation termineeecho.echo Installation Norton Antivirus 2004echo Logiciel Antivirusecho Veuillez patienter...start /wait %systemdrive%\install\Applications\NAV2004\NAV\NAV.msi /QBecho installation termineeCan someone help me to convert these lines to RunOnceex ?Thanks a lotGreg Link to comment Share on other sites More sharing options...
Alanoll Posted December 10, 2004 Share Posted December 10, 2004 Why don't you attempt, then we correct? Link to comment Share on other sites More sharing options...
greg_285 Posted December 10, 2004 Author Share Posted December 10, 2004 HelloI've tried this :@echo offSET KEY= HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installation des Logiciels" /fREG ADD %KEY%\005 /VE /D "CdEx" /fREG ADD %KEY%\005 /V 1 /D "%systemdrive%\Install\Applications\CDex\cdex_151.exe /S" /fREG ADD %KEY%\010 /VE /D "Adobe Reader 6" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\Applications\AdobeReader\AdbeRdr60_fra_full.exe -p"-s /v\"/qn\"" /fREG ADD %KEY%\015 /VE /D "MSN Messenger" /fREG ADD %KEY%\015 /V 1 /D "%systemdrive%\Install\Msn\MsnMsgs.msi /qn" /fREG ADD %KEY%\020 /VE /D "Pack Microsoft Office 2003" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\Applications\Office2003\setup.exe TRANSFORMS="unattended.mst" /qb- /fREG ADD %KEY%\020 /VE /D "Norton Internet Security 2004" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\Applications\NAV2004\NAV\NAV.msi /QB" /fexitI'm a little lost with the "" and \", that's why I asked your help...but in fact i should had post my RunOnceExe file Can you also explain me what does the \015\ mean ?ThanksGreg Link to comment Share on other sites More sharing options...
Alanoll Posted December 10, 2004 Share Posted December 10, 2004 \015 simply puts an order to the process. Lower numbers are executed prior to larger ones.REG ADD %KEY%\010 /VE /D "Adobe Reader 6" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\Applications\AdobeReader\AdbeRdr60_fra_full.exe -p"-s /v\"/qn\"" /fshould beREG ADD %KEY%\010 /VE /D "Adobe Reader 6" /fREG ADD %KEY%\010 /V 1 /D "%systemdrive%\Install\Applications\AdobeReader\AdbeRdr60_fra_full.exe -p\"-s /v\"/qn\"\"" /fand REG ADD %KEY%\020 /VE /D "Pack Microsoft Office 2003" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\Applications\Office2003\setup.exe TRANSFORMS="unattended.mst" /qb- /fshould beREG ADD %KEY%\020 /VE /D "Pack Microsoft Office 2003" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\Applications\Office2003\setup.exe TRANSFORMS=\"unattended.mst\" /qb- /fThe question on the quotes really isn't.... with "" but just with embedded quotes in general.....like your offcie line...the outer quotes (the ones just after the /D and the ending ones just before the /f) don't get \ before them. ALL INNER QUOTES do. If you don't entire the \ with the inside quotes, then when importing the line is taken as two strings and imported wrong. the \ escapes the quotes and causes the line to be ONE string with the quotes inside. Link to comment Share on other sites More sharing options...
SiMoNsAyS Posted December 10, 2004 Share Posted December 10, 2004 1 more correctionREG ADD %KEY%\020 /VE /D "Pack Microsoft Office 2003" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\Applications\Office2003\setup.exe TRANSFORMS=\"unattended.mst\" /qb- /fshould beREG ADD %KEY%\020 /VE /D "Pack Microsoft Office 2003" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\Applications\Office2003\setup.exe TRANSFORMS=\"unattended.mst\" /qb-" /fnotice the " after qb- to end the command.it is easy to convert your commands, just take your time. once you start you can't finish Link to comment Share on other sites More sharing options...
BritishBulldog Posted December 10, 2004 Share Posted December 10, 2004 mind you the quotes around the mst you can leave out.REG ADD %KEY%\020 /VE /D "Pack Microsoft Office 2003" /fREG ADD %KEY%\020 /V 1 /D "%systemdrive%\Install\Applications\Office2003\setup.exe TRANSFORMS=unattended.mst /qb-" /f Easier to look at and not tending to make mistakes. Link to comment Share on other sites More sharing options...
greg_285 Posted December 10, 2004 Author Share Posted December 10, 2004 Hello,Thanks an all of you !!!Is it possible to set a percentage of the installtion or a timer, in order to know how long it will take ?example : MSN messenger |--- 55% completedThanksGreg Link to comment Share on other sites More sharing options...
prathapml Posted December 10, 2004 Share Posted December 10, 2004 Well, with RunOnceEX method you have a vertical list on-screen, showing the total and how many is finished - so you don't really need a percentage display. But if you do want it, check out the XPlode tool. Link to comment Share on other sites More sharing options...
Whampoom Posted December 10, 2004 Share Posted December 10, 2004 You also got two ... %KEY%\020 , change the first one to anything between 16 and 19 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