Jump to content

RunOnceEx integration Problem


Recommended Posts

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

I downloaded RunOnceEx program and this is what i got when i saved it as RunOnceEx.cmd

cmdow @ /HID

@Echo Off

SET PP=%SystemDrive%\Install\

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Programs" /f

REG ADD %KEY /VE /D "Acrobat Reader" /f

REG ADD %KEY /V 1 /D "%PP%%systemdrive%\install\acrobat\ar6.exe /qn" /f

REG ADD %KEY%01 /VE /D "Adware Pro 6" /f

REG ADD %KEY%01 /V 1 /D "%PP%%systemdrive%\install\adware\adw6pro.exe /qn" /f

EXIT

Hmm 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

Regards

Dragon

Link to comment
Share on other sites


Change

REG ADD %KEY /VE /D "Acrobat Reader" /f

REG ADD %KEY /V 1 /D "%PP%%systemdrive%\install\acrobat\ar6.exe /qn" /f

REG ADD %KEY%01 /VE /D "Adware Pro 6" /f

REG ADD %KEY%01 /V 1 /D "%PP%%systemdrive%\install\adware\adw6pro.exe /qn" /f

to

REG ADD %KEY%1 /VE /D "Acrobat Reader" /f

REG ADD %KEY%1 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /f

REG ADD %KEY%2 /VE /D "Adware Pro 6" /f

REG ADD %KEY%2 /V 1 /D "%PP%\install\adware\adw6pro.exe /qn" /f

With those software apps in $OEM$\$1\Install\

e.g.

$OEM$\$1\Install\acrobat

$OEM$\$1\Install\adaware

that should do it

Edited by martin26uk
Link to comment
Share on other sites

Sorry change it to this - cant edit it for some reason

REG ADD %KEY%01 /VE /D "Acrobat Reader" /f

REG ADD %KEY%01 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /f

REG ADD %KEY%02 /VE /D "Adware Pro 6" /f

REG ADD %KEY%02 /V 1 /D "%PP%\install\adware\adw6pro.exe /qn" /f

Your Runonce should look like this

cmdow @ /HID
@echo off

FOR %%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\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing Your Apps 4 U - Sit Back and Enjoy" /f

REG ADD %KEY%01 /VE /D "Acrobat Reader" /f
REG ADD %KEY%01 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /f

REG ADD %KEY%02 /VE /D "Adware Pro 6" /f
REG ADD %KEY%02 /V 1 /D "%PP%\install\adware\adw6pro.exe /qn" /f

Exit

Edited by martin26uk
Link to comment
Share on other sites

Hello martin26uk

Thanks for the reply. I have made the changes as informed.

Could you shed some lights on what this code you specified means

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

Regards

Dragon

Edited by Dragon_985
Link to comment
Share on other sites

Could you shed some lights on what this code you specified means

FOR %%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"

Link to comment
Share on other sites

Sorry change it to this - cant edit it for some reason

REG ADD %KEY%01 /VE /D "Acrobat Reader" /f

REG ADD %KEY%01 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /f

REG ADD %KEY%02 /VE /D "Adware Pro 6" /f

REG ADD %KEY%02 /V 1 /D "%PP%\install\adware\adw6pro.exe /qn" /f

Hmm... just to be sure, if he used "his" method, he specified

SET PP=%SystemDrive%\Install\

So why should he use REG ADD %KEY%01 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /f

Then his folder should be "C:\Install\install\acrobat\" for example, or not ?

But he said

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

Or not ?

Edited by Forwarder
Link to comment
Share on other sites

Sorry change it to this - cant edit it for some reason

REG ADD %KEY%01 /VE /D "Acrobat Reader" /f

REG ADD %KEY%01 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /f

REG ADD %KEY%02 /VE /D "Adware Pro 6" /f

REG ADD %KEY%02 /V 1 /D "%PP%\install\adware\adw6pro.exe /qn" /f

Hmm... just to be sure, if he used "his" method, he specified

SET PP=%SystemDrive%\Install\

So why should he use REG ADD %KEY%01 /V 1 /D "%PP%\install\acrobat\ar6.exe /qn" /f

Then his folder should be "C:\Install\install\acrobat\" for example, or not ?

But he said

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

Or not ?

You are correct :yes:.

Although I would edit your variables to these:

SET PP=%SystemDrive%\Install
SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\

...to sort out your missing and double backslashes!

Edited by kof94
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...