MSFN Forum: HFGUIRunOnce not working laterly - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

HFGUIRunOnce not working laterly Rate Topic: -----

#1 User is offline   ykchanaed 

  • Junior
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 18-January 07

Posted 18 October 2012 - 07:40 AM

Lately , I think untill these few months , I observed that the reg , cmd files in HFGUIRunOnce folder were not implmented in the resulting OSes!

Now I am using beta J v10 and testing the OS with VMware Workstation 8.
The resulting SOURCESS folder did have the HFSLPGUI.inf, HFSLPGUI.cmd and the various compressed HFGUI# files.

Does anyone has that problem?

I am still working on it and testing in various senarios!

This post has been edited by ykchanaed: 18 October 2012 - 08:06 AM



#2 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 18 October 2012 - 09:05 AM

From HFSLIP:

Quote

HFGUIRUNONCE - MSI files and silent EXEs to be installed at 1st GUI logon

and

Quote

HFSVCPACK - REG files, INF files and CMD files (installed at T-13)

:whistle:

#3 User is offline   Geej 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 634
  • Joined: 01-January 08
  • OS:XP Pro x86
  • Country: Country Flag

Posted 18 October 2012 - 10:38 PM

Actually HFGUIRunOnce can also take .cmd .reg & .inf files

#4 User is offline   ykchanaed 

  • Junior
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 18-January 07

Posted 19 October 2012 - 03:37 AM

I have been using HFSLIP for more than 4 years , in English XP and Chinese XP.

I deliberately modified the HFSLPGUI.cmd in the SOURCESS folder so that it would not hide the console window and pause during the execution. And then made the ISO and tested it in VMware.
The resulting OS did not show up any HFSLPGUI.cmd window during the First GUI.

As far as I know , HFSLIP add the command in the HKLM\...\RunOnce registry key.

At the same time , one Addon I personally made, that used the HKLM\..RunOnce to change the resolution during GUI also failed. It WORKED previously!!!! Untill around 2 months ago when I tried to make the unattended XP again.
...... So far , I still can not figure out the problem.
But when I changed the key to HKLM\...Run, it worked.

Personally I suspect some new hotfixes especially the ActiveX ones, may be the culprit because I noticed that the HFSLPGUI.INF manipulated the "ActiveX Compatibility" key. JUST a wild guess!!!

This post has been edited by ykchanaed: 19 October 2012 - 04:19 AM


#5 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 19 October 2012 - 03:48 AM

You're right about HFGUIRunOnce. It supports MSI / EXE / CMD / REG / INF:

Spoiler

Have you tried to add your custom scripts without anything else? Don't slipstream any updates, etc. Just add your scripts to a clean XP SP3 source, run HFSLIP and then try to install it.

#6 User is offline   ykchanaed 

  • Junior
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 18-January 07

Posted 19 October 2012 - 04:29 AM

I have made various tests.

In XP system , NOT during Setup of the XP OS:
1. If using INF to add command to the HKLM\...\RunOnce key in XP ,using Default Install section, the command wound execute at once , not untill the next reboot!

2. If using cmd to reg add HKLM\...\RunOnce , the command would execute in the next reboot!

Do above make any clues?

#7 User is offline   ykchanaed 

  • Junior
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 18-January 07

Posted 19 October 2012 - 05:52 AM

It also happened when using nLite.

I used Onepiece update pack plus my own HKLM\..\RunOnce Addon using nlIte.
The HKLM\..\RunOnce failed to run.

#8 User is offline   tomasz86 

  • http://www.windows2000.tk
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,220
  • Joined: 27-November 10
  • OS:Windows 2000 Professional
  • Country: Country Flag

Posted 19 October 2012 - 06:23 AM

If the same problem happens with nLite then it's not HFSLIP to cause this issue, is it?

Could you show / upload an example of your script so that we could test it too?

#9 User is offline   ykchanaed 

  • Junior
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 18-January 07

Posted 19 October 2012 - 06:25 AM

Let me explained my addon:
A cmd script to add a command to HKLM\...\RunOnce during SVCPACK stage(SVCPACK script). The command is an cmd script to change resolution to 800x640 (ChangeRes script).
To test it , I made the scripts all visible and pause.

Test 1:
All up-to-date hotfixes,
some essential Addonsin HFAAO folder,
AND my personal addon mentioned above.
No files in HFGUIRUNONCE folder.

Result 1:
The script during SVCPACK showed up and successful.
BUT during 1st GUI the change , the change res script did not show up.!


Test 2:
Without any hotfixes in HF folder.
The same essential Addons in HFAAO folder,
AND the same my personal addon
No files in HFGUIRUNONCE folder.

Result 2:
The script during SVCPACK showed up and successful.
The change res script showed up and worked!

My home-made Addon attached. It's purpose is to just change the resoltion to 800x640 at 1st logon so that the annoying warning would not appear because I did Virtual testing very often.

Attached File(s)


This post has been edited by ykchanaed: 19 October 2012 - 07:39 AM


#10 User is offline   ykchanaed 

  • Junior
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 18-January 07

Posted 19 October 2012 - 08:00 AM

Test 3:
All up-to-date hotfixes EXCEPT WindowsXP-KB2736233-x86-XXX.exe,
Same esstential Addons,
Same my personal addon.
NO files in HFGUIRUNONCE folder.

Result 3:
My personal change res script showed up during 1st GUI logon and worked!!!


So the preliminary conclusion would be :

Quote

The culprit is
WindowsXP-KB2736233-x86-XXX.exe

Maybe I have to make a KB2736233 switchless installer to tackle this problem!

This post has been edited by ykchanaed: 19 October 2012 - 08:17 AM


#11 User is offline   ykchanaed 

  • Junior
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 18-January 07

Posted 20 October 2012 - 08:23 AM

Test 4:
Essentially same as Test 3 with minor changes:
a. WindowsXP-KB2618451-x86-XXX.exe in HF folder (the one before the culprit KB2736233)
ie. ALL hotfixes except KB2736233 but with the previous ActiceX update
b. Now with with reg files in HFGUIRUNONCE Folder

Result 4:
My personal addon run and successful.
The reg files in the HFGUIRUNONCE folder were incoprated.

This post has been edited by ykchanaed: 20 October 2012 - 08:25 AM


#12 User is offline   ykchanaed 

  • Junior
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 18-January 07

Posted 21 October 2012 - 03:29 AM

Test 5:
All up-to-date hotfixes EXCEPT WindowsXP-KB2736233-x86-XXX.exe,
BUT put it (KB2736233) in HFSVCPACK _SW1 folder,
Same essential addons,
Same my personal addon,
No files in HFGUIRUNONCE folder.

Result 5:
Personal addon worked without any problem.

Preliminary conculsion:

Quote

Putting KB2736233 in HFSVCPACK_SW1 did not interfere HKLM\...\RunOnce behaviour during XP setup!

No need to make a separate KB2736233 installer!

This post has been edited by ykchanaed: 21 October 2012 - 03:31 AM


#13 User is offline   ykchanaed 

  • Junior
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 18-January 07

Posted 20 November 2012 - 01:54 AM

After numerous, numerous and numerous tests......

I found out that the Sysinternals Suite Installer was the culprit!!!

The Sysinternals Suite Installer was built with SSIBuild (Sysinternals Suite Installer Builder)Version: 2.7

The installer so created would delete the entries in the HKLM\...\RunOnce key.

I noticed it when I used it with other addons in HFSLIP or nLite to make XP.

The Sysinternals Installer was run in SVCPACK stage.
And when it was run AFTER other addons that add entries in HKLM\..\RunOnce key, then these addons would not work in next reboot!!
When it was run before other addons , the other addons worked OK.

I have tested it in the virtual XP. Immediately after the Sysinternals Installer run , the entry in HKLM\..\RunOnce was gone!

I have extracted the SysPath script inside the installer and test it .
It had no effect on the HKLM\..\RunOnce key !!!!

So

CASE CLOSED :wacko: :hello:

This post has been edited by ykchanaed: 20 November 2012 - 01:56 AM


#14 User is offline   ykchanaed 

  • Junior
  • Pip
  • Group: Members
  • Posts: 90
  • Joined: 18-January 07

Posted 04 December 2012 - 07:48 AM

I finally understand the mechanism behind this:

The keys in HKLM\..\RunOnce are actually not deleted BUT actually already run.
The commands in the RunOnce key are being run DURING inf setup, and Sysinternals Suite uses inf setup.
Only that the commands are run in SVCPACK stage and hence have no effect.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy