Jump to content

first try with runonce


paulus4605

Recommended Posts

I'm just trying to figure out how everything is working before I start with a major installation process during setup.

what I did is created just one cmd to install skype silently however when windows is starting up I get the error message that it can't find the setupskype.exe file.

In order to do this I created a INSTALL folder on my c drive, en I also did this in the windows unattended setup files where I copied the setup.exe file into but this doesn't do the trick either :-(

then I tried to execute this cmd and I get this error message mentioned above

can someone tell me what I'm doing wrong?

this is the code

cmdow @ /HID
@Echo Off

SET PP=%SystemDrive%\Install\

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

REG ADD %KEY% /V TITLE /D "Installeren van Programma's" /f

REG ADD %KEY%\000 /VE /D "skype 1.4" /f
REG ADD %KEY%\000 /V 1 /D "%PP%SkypeSetup.exe /VERYSILENT /SP-" /f

EXIT

thanks for your help

Paul

Edited by paulus4605
Link to comment
Share on other sites


This is what part of mine looks like. I dont know what the command %PP% does ?, but should'nt it be %PP%\SkypeSetup.exe. You have no \ in yours.

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 KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Unattended Program Installation" /f

DEL "%systemroot%\Cursors\*.cur"

REG ADD %KEY%\010 /VE /D "Removing Windows ZIP Folders" /f

REG ADD %KEY%\010 /V 1 /D "%systemroot%\System32\regsvr32.exe /s /u zipfldr.dll" /f

REG ADD %KEY%\011 /VE /D "My Hosts" /f

REG ADD %KEY%\011 /V 1 /D "%CDROM%\Support\Stuff\Hosts.exe" /f

Edited by ShawNee1
Link to comment
Share on other sites

@Shawnee I don't know if I need to add a slash since this automaticly generated by the Runoncecmd creator.

so this is why I don't understand why it doesn't work

in the runonce creator I did select the following :

include CMDOW with program Path set to %SystemDrive%\Install\

then in description I altered the line from the data base because in here is only skype .95 beta (modified this to Skype 1.4 and safed the file as

skype.cmd

which contains the following script :

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%\000 /VE /D "skype 1.4" /f
REG ADD %KEY%\000 /V 1 /D "%PP%SkypeSetup.exe /VERYSILENT /SP-" /f

EXIT

since the PP variable is mentioned with the slashed I don't think I have to repeat the slash at the command line or am I wrong

thanks for the help and feedback

Paul

Link to comment
Share on other sites

@Mhz I translated the errormessage ruffly this morning since I'm Dutch and it was still early however this is the current situation.

or can I remove the PP and simply add %systemdrive%\Install\skypesetup.exe

and make sure I have the skype setupfile in the c:\install directory?

which of the options should work the best?

thanks for your help and feedback.

Paul

Link to comment
Share on other sites

I'm just trying to figure out how everything is working before I start with a major installation process during setup.

what I did is created just one cmd to install skype silently however when windows is starting up I get the error message that it can't find the setupskype.exe file.

In order to do this I created a INSTALL folder on my c drive, en I also did this in the windows unattended setup files where I copied the setup.exe file into but this doesn't do the trick either :-(

then I tried to execute this cmd and I get this error message mentioned above

can someone tell me what I'm doing wrong?

Are the filenames in the CMD and the FileName of the SkypSetup identical. that means, they have to be the exact same name...

this is the code
cmdow @ /HID
@Echo Off

SET PP=%SystemDrive%\Install\

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

REG ADD %KEY% /V TITLE /D "Installeren van Programma's" /f

REG ADD %KEY%\000 /VE /D "skype 1.4" /f
REG ADD %KEY%\000 /V 1 /D "%PP%SkypeSetup.exe /VERYSILENT /SP-" /f

EXIT

thanks for your help

Paul

your .cmd file looks ok to me.

(btw, i'm the creator of the tool RunOnceEx.cmd creator)

Link to comment
Share on other sites

wanna asky i got error running runonceex creator after installation?

something wrong?`Excetion EResNotFound in module RunOnceEx.exe at 0002161D. Resource__not found

Please ask this question in the right thread.

(still to answer it, i have no clue why you get that message. your the first who has reported it)

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