Jump to content

applications install (via start.cmd)...but don't


Recommended Posts

Posted

Hi,

i've been having a spot of bother with my silent installs.

i'm using the guirunonce method

(relevant files attached)

what seems to happen is it does the .net stuff and the windows media bits then rapidly fires through the rest and restarts.

or possibly it restarts then rapidly fires through the rest, I'm not sure, sorry.

once restarted, only the .net stuff and wmp is installed

the application event log shows no attempts to install the others.

also, it only tries to install on the second login, not the first.

i.e. windows finishes installing and boots into windows, then i click loggoff and when i log back in, it THEN runs the install apps.

not sure why.

hope you can help...

WINNT.SIF

start.cmd

cmdlines.txt

Last_Session.ini


Posted (edited)

You are mixing 2 different install methods, GUIRunOnce and RunOnceEx.

start.cmd is built as if it is going be used with RunOnceEx method, but is triggered with GUIRunOnce method. That's why it executes on second logon, because start.cmd only imports keys to registry for next logon execution (as with RunOnceEx method) but instead of being executed from cmdlines.txt during GUI Setup, it's being executed on first logon, importing keys to registry to be executed on second logon.

And start.cmd is not installing your software because you're using "regedit /s installcommand /f" as your install command and not just "installcommand".

Edited by strel
Posted

Thanks for your help there Strel,

i've read up a bit and changed it round. To use only the RunOnceEx method

i've deleted the guirunonce reference from my winnt sif file.

i've edited start.cmd, renamed it RunOnceEx.cmd and placed it in the $OEM$ folder.

I also traced the existing commands in the cmdlines.txt file (nlite command) and moved it into the runonceEx.cmd file

i also found i had tried to get things to run at once

so i changed anything like this

REG ADD %KEY%\015 /VE /D "Firefox and addons" /f
REG ADD %KEY%\015 /V 1 /D "REGEDIT /S %systemdrive%\install\Firefox\FirefoxSetup3.0.7.exe /S" /f
REG ADD %KEY%\016 /V 1 /D "REGEDIT /S %systemdrive%\Program Files\Mozilla Firefox -install-global-extension %systemdrive%:\install\firefox\adblock_plus-1.0.1-fx+sm+tb.xpi" /f
REG ADD %KEY%\017 /V 1 /D "REGEDIT /S %systemdrive%\Program Files\Mozilla Firefox -install-global-extension %systemdrive%:\install\firefox\foxmarks_bookmark_synchronizer-2.7.2-fx.xpi" /f
REG ADD %KEY%\018 /V 1 /D "REGEDIT /S %systemdrive%\Program Files\Mozilla Firefox -install-global-extension %systemdrive%:\install\firefox\tab_mix_plus-0.3.7.3-fx.xpi" /f

to this

REG ADD %KEY%\015 /VE /D "Firefox and addons" /f
REG ADD %KEY%\015 /V 1 /D "REGEDIT /S %systemdrive%\install\Firefox\FirefoxSetup3.0.7.exe /S" /f
REG ADD %KEY%\016 /V [b]2[/b] /D "REGEDIT /S %systemdrive%\Program Files\Mozilla Firefox -install-global-extension %systemdrive%:\install\firefox\adblock_plus-1.0.1-fx+sm+tb.xpi" /f
REG ADD %KEY%\017 /V [b]3[/b] /D "REGEDIT /S %systemdrive%\Program Files\Mozilla Firefox -install-global-extension %systemdrive%:\install\firefox\foxmarks_bookmark_synchronizer-2.7.2-fx.xpi" /f
REG ADD %KEY%\018 /V [b]4[/b] /D "REGEDIT /S %systemdrive%\Program Files\Mozilla Firefox -install-global-extension %systemdrive%:\install\firefox\tab_mix_plus-0.3.7.3-fx.xpi" /f

but it's still not installing the application.

It will install net1.1 and net2 fine, but not firefox which is between them.

once it loaded (i'm using vmware ) i tried pasting in the foxit command

%systemdrive%\install\FoxitReader30_enu_Setup.exe

into the run box, and it installed fine.

:0(

any ideas?

AAAAAHHHHHH wait i see what you're saying.

i'm adding the word regedit to the start of all the ones that don't work.

the ones that do work don't have the regedit line.

that's will teach me to cut and paste !...

:thumbup

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