Possible Timer on hostname_changer



  • Is it possible to modify how long before the hostname_changer restarts the unit? For some reason after getting FOG working correctly in renaming our computers and joining them to the domain it now refuses to install Kaspersky in our second run. The issue is related to FOG restarting the machine before the silent install of Kaspersky is completely finished. We are running FOG .32.



  • Still did not work. What is odd is that the image was working just fine until I set up fog correctly for renaming the computer and joining it to the domain. Kaspersky is not even attempting to install. It just skips right over it and goes straight into windows. I am at a loss. Need a day to think.



  • Alright I put the delay command in the SetupComplete script, then created a .cmd file with the net start “FOG Service” in it which was then added as a reg value in run once. Phew… We will see if that works. Been trying so many different things over the past few days.


  • Developer

    it looks like the SetupComplete Script would be the appropriate place for it



  • [QUOTE]SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

    REG ADD %KEY% /V TITLE /D “Finishing Post Image” /f

    REG ADD %KEY%\001 /VE /D “OCS Agent” /f
    REG ADD %KEY%\001 /V 1 /D “%systemdrive%\Post_Image\ocs\ocspackage-generic.exe” /f

    REG ADD %KEY%\005 /VE /D “Alertus” /f
    REG ADD %KEY%\005 /v 1 /D “%systemdrive%\Post_Image\alertus\alertus-desktopalert-3.0.12.165.msi /quiet” /f

    REG ADD %KEY%\010 /VE /D “ScreenConnect” /f
    REG ADD %KEY%\010 /V 1 /D “%systemdrive%\Post_Image\ScreenConnect\Elsinore.ScreenConnect.ClientSetup.msi /quiet” /f

    REG ADD %KEY%\015 /VE /D “DriverPacks” /f
    REG ADD %KEY%\015 /V 1 /D “%systemdrive%\Post_Image\SAD3-130825\DP_Install_Tool.cmd -s” /f

    REG ADD %KEY%\020 /VE /D “Kaspersky” /f
    REG ADD %KEY%\020 /V 1 /D “%systemdrive%\Post_Image\Kaspersky.exe /s” /f

    exit[/QUOTE]

    This is what it currently looks like. How would I go about adding it into there. I am using Secondrun in order to install my software. Do I need to put the delayed-auto command into the SetupComplete Script in the scripts folder?

    My SetupComplete script contains

    del /q /f c:\windows\system32\sysprep\Unattend.xml
    del /q /f c:\windows\panther\Unattend.xml
    START C:\Post_Image\Secondrun.cmd


  • Senior Developer

    Sorry for not being clear, the way I suggested is automatic. You just need to update your image so the service “FOG-SERVICE” does not start automatically. Then edit your script where you install Kaspersky so it looks like:

    [CODE]
    #Install Kaspersky Code
    sc config “FOG Service” start= delayed-auto
    net start “FOG Service”
    [/CODE]
    (The space between = and delayed-auto is required)



  • See thats the problem is I want to completely automate the process. Our networking/server guy is out for the week. We will be upgrading to 1.2.0 to help resolve some of these issues with automation.


  • Senior Developer

    Alright, well the way the old client is structured not much can be done. However, one possible solution is to disable the fog-service auto-start on the image. Then in your script where you install Kaspersky enable the auto-start of “FOG Service” after installation, and manually start it.



  • [quote=“Jbob, post: 40154, member: 21733”]Is Kaspersky deployed via snapins?[/quote]
    No the installer is already contained in the image. The .cmd file inputs registry values into RunOnceEx. Image gets sypreped and uploaded then when the image gets deployed the second run .cmd file is activated by a script.

    Would it be easier to do it via a snap-in?

    EDIT: I have now modified the secondrun script to stop the FOG service completely then restart the unit after Kaspersky has been installed.


  • Senior Developer

    Is Kaspersky deployed via snapins?



  • That did not work. Any additional suggestions would be awesome.



  • [quote=“Tom Elliott, post: 40124, member: 7271”]Do you have a script running to do the install?

    Maybe start that script with:

    net stop “FOG Service”

    and end the script with:

    net start “FOG Service”[/quote]

    We use a cmd file that adds registry values in runonce, I will have to try that and see if that works. I will get back to you and let you know. Thanks for the suggestion.


  • Senior Developer

    Do you have a script running to do the install?

    Maybe start that script with:

    net stop “FOG Service”

    and end the script with:

    net start “FOG Service”


Log in to reply
 

377
Online

39198
Users

10850
Topics

103281
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.