Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

HFGUIRunOnce not working laterly

- - - - -

  • Please log in to reply
13 replies to this topic

#1
ykchanaed

ykchanaed

    Junior

  • Member
  • Pip
  • 91 posts
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!

Edited by ykchanaed, 18 October 2012 - 08:06 AM.



How to remove advertisement from MSFN

#2
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,510 posts
  • OS:XP Pro x86
  • Country: Country Flag
From HFSLIP:

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

and

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

:whistle:
post-47483-1123010975.png
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#3
Geej

Geej

    Senior Member

  • Member
  • PipPipPipPip
  • 635 posts
  • OS:XP Pro x86
  • Country: Country Flag
Actually HFGUIRunOnce can also take .cmd .reg & .inf files

#4
ykchanaed

ykchanaed

    Junior

  • Member
  • Pip
  • 91 posts
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!!!

Edited by ykchanaed, 19 October 2012 - 04:19 AM.


#5
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,510 posts
  • OS:XP Pro x86
  • Country: Country Flag
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.
post-47483-1123010975.png
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#6
ykchanaed

ykchanaed

    Junior

  • Member
  • Pip
  • 91 posts
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
ykchanaed

ykchanaed

    Junior

  • Member
  • Pip
  • 91 posts
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
tomasz86

tomasz86

    www.windows2000.tk

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,510 posts
  • OS:XP Pro x86
  • Country: Country Flag
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?
post-47483-1123010975.png
Unofficial Service Pack 5.2 for MS Windows 2000 <- use this topic if you need help with UURollup, Update Rollup 2 and other unofficial packages

#9
ykchanaed

ykchanaed

    Junior

  • Member
  • Pip
  • 91 posts
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 Files


Edited by ykchanaed, 19 October 2012 - 07:39 AM.


#10
ykchanaed

ykchanaed

    Junior

  • Member
  • Pip
  • 91 posts
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 :

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

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

Edited by ykchanaed, 19 October 2012 - 08:17 AM.


#11
ykchanaed

ykchanaed

    Junior

  • Member
  • Pip
  • 91 posts
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.

Edited by ykchanaed, 20 October 2012 - 08:25 AM.


#12
ykchanaed

ykchanaed

    Junior

  • Member
  • Pip
  • 91 posts
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:

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

No need to make a separate KB2736233 installer!

Edited by ykchanaed, 21 October 2012 - 03:31 AM.


#13
ykchanaed

ykchanaed

    Junior

  • Member
  • Pip
  • 91 posts
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:

Edited by ykchanaed, 20 November 2012 - 01:56 AM.


#14
ykchanaed

ykchanaed

    Junior

  • Member
  • Pip
  • 91 posts
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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN