Dragon_985 Posted April 7, 2007 Posted April 7, 2007 Hello Guys This may sound strange but i am new to this forum and i need help regarding a issue i am facing when integrating the application using RunOnceEx.cmd.Here is the steps i followed let me know where i am going wrong First i created a cmdlines.txt and saved this file inside $OEM$.Also removed the entry [GuiRunOnce] in winnt.sifI downloaded RunOnceEx program and this is what i got when i saved it as RunOnceEx.cmdcmdow @ /HID@Echo OffSET PP=%SystemDrive%\Install\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Programs" /fREG ADD %KEY /VE /D "Acrobat Reader" /fREG ADD %KEY /V 1 /D "%PP%%systemdrive%\install\acrobat\ar6.exe /qn" /fREG ADD %KEY%01 /VE /D "Adware Pro 6" /fREG ADD %KEY%01 /V 1 /D "%PP%%systemdrive%\install\adware\adw6pro.exe /qn" /fEXITHmm i placed the application the installation application inside %systemdrive%\install\Please do let me know where i am going wrong. And is there a simple procedure so i can integrate few application with window xp Thanks in advance RegardsDragon
martin26uk Posted April 7, 2007 Posted April 7, 2007 (edited) Change REG ADD %KEY /VE /D "Acrobat Reader" /fREG ADD %KEY /V 1 /D "%PP%%systemdrive%\install\acrobat\ar6.exe /qn" /fREG ADD %KEY%01 /VE /D "Adware Pro 6" /fREG ADD %KEY%01 /V 1 /D "%PP%%systemdrive%\install\adware\adw6pro.exe /qn" /ftoREG ADD %KEY%1 /VE /D "Acrobat Reader" /fREG ADD %KEY%1 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /fREG ADD %KEY%2 /VE /D "Adware Pro 6" /fREG ADD %KEY%2 /V 1 /D "%PP%\install\adware\adw6pro.exe /qn" /fWith those software apps in $OEM$\$1\Install\e.g.$OEM$\$1\Install\acrobat$OEM$\$1\Install\adawarethat should do it Edited April 7, 2007 by martin26uk
martin26uk Posted April 7, 2007 Posted April 7, 2007 (edited) Sorry change it to this - cant edit it for some reasonREG ADD %KEY%01 /VE /D "Acrobat Reader" /fREG ADD %KEY%01 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /fREG ADD %KEY%02 /VE /D "Adware Pro 6" /fREG ADD %KEY%02 /V 1 /D "%PP%\install\adware\adw6pro.exe /qn" /fYour Runonce should look like thiscmdow @ /HID@echo offFOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\win51ip.SP2 SET CDROM=%%i:SET PP=%SystemDrive%\Install\SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Your Apps 4 U - Sit Back and Enjoy" /fREG ADD %KEY%01 /VE /D "Acrobat Reader" /fREG ADD %KEY%01 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /fREG ADD %KEY%02 /VE /D "Adware Pro 6" /fREG ADD %KEY%02 /V 1 /D "%PP%\install\adware\adw6pro.exe /qn" /fExit Edited April 7, 2007 by martin26uk
Dragon_985 Posted April 8, 2007 Author Posted April 8, 2007 (edited) Hello martin26ukThanks for the reply. I have made the changes as informed. Could you shed some lights on what this code you specified meansFOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\win51ip.SP2 SET CDROM=%%i:I tried today the code you have given. After the Unattend install of Window XP, the application are still not been installed.Please let me know how to move forward. RegardsDragon Edited April 9, 2007 by Dragon_985
dansouza Posted April 12, 2007 Posted April 12, 2007 Could you shed some lights on what this code you specified meansFOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\win51ip.SP2 SET CDROM=%%i:That is to install your apps using RunOnceEx from CD, rather than having to have them copied to the hard drive. If you use this method, change %systemdrive% to %CDROM% and take your "Install" folder out of $OEM$ and place in the root of the CD. Also, keep in mind if any of your apps use Installshield, you will need to specify an alternate location for the log file. Installshield writes the log file to the same location as the setup source by default. Since it can't write to the CD, the installation will fail unless you specify a different location. Example:Setup.exe /s /f2"C:\Setup.log"
Forwarder Posted April 13, 2007 Posted April 13, 2007 (edited) Sorry change it to this - cant edit it for some reasonREG ADD %KEY%01 /VE /D "Acrobat Reader" /fREG ADD %KEY%01 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /fREG ADD %KEY%02 /VE /D "Adware Pro 6" /fREG ADD %KEY%02 /V 1 /D "%PP%\install\adware\adw6pro.exe /qn" /fHmm... just to be sure, if he used "his" method, he specifiedSET PP=%SystemDrive%\Install\So why should he use REG ADD %KEY%01 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /fThen his folder should be "C:\Install\install\acrobat\" for example, or not ?But he saidHmm i placed the application the installation application inside %systemdrive%\install\So i think that this should be correct then:REG ADD %KEY%01 /V 1 /D "%PP%\acrobat\ar6.exe /qn" /fOr not ? Edited April 13, 2007 by Forwarder
kof94 Posted April 13, 2007 Posted April 13, 2007 (edited) Sorry change it to this - cant edit it for some reasonREG ADD %KEY%01 /VE /D "Acrobat Reader" /fREG ADD %KEY%01 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /fREG ADD %KEY%02 /VE /D "Adware Pro 6" /fREG ADD %KEY%02 /V 1 /D "%PP%\install\adware\adw6pro.exe /qn" /fHmm... just to be sure, if he used "his" method, he specifiedSET PP=%SystemDrive%\Install\So why should he use REG ADD %KEY%01 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /fThen his folder should be "C:\Install\install\acrobat\" for example, or not ?But he saidHmm i placed the application the installation application inside %systemdrive%\install\So i think that this should be correct then:REG ADD %KEY%01 /V 1 /D "%PP%\acrobat\ar6.exe /qn" /fOr not ?You are correct .Although I would edit your variables to these:SET PP=%SystemDrive%\InstallSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\...to sort out your missing and double backslashes! Edited April 13, 2007 by kof94
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