Post-Setup (Before logon) Not Working Windows 10

  • Thread starter Thread starter My2GirlsDad
  • Start date Start date
M

My2GirlsDad

Guest
I have added a few programs to be run Before logon to the Post-Setup section of NTLite. The setupcomplete.cmd is not run. Instead the setup hangs, with the screen "stuck", at the screen showing the swirling dots with the message Just a Moment... It does not make it pass that point.

If I added the programs to be run After logon to the Post-Setup section everything installs with no problems.

Anyone have this issue or know what could be causing this?

Thank you.
M2GD
 
It's been a few days..... so
Just asking again if anyone has had this happen in your Win10 builds.

Thank you for your time.
M2GD
 
Two common reasons that post-setup fails:

1) Install parameters don't work universally on every program, so they all need parameters tailored specifically to their extension type or to the program itself. This can be tested on a live Windows (link) to avoid constantly installing a new image for troubleshooting.

2) Running things before login and after login will result in some items failing, because before login is ran as Machine, while after login is ran as the User. These are different scenarios to handle, which can cause problems for some programs or scripts. A conceptual example of why this is expected, is that it's sort of like how some things won't run in safe mode, but do in normal mode. There's a lot that's disabled in safe mode that some programs or scripts require, and without it they fail. It doesn't always mean there's an underlying issue, since something may just be in the wrong place.

If none of the above applies to this scenario, please post the preset and more details so we can focus on the specifics.
 
Last edited:
Thank you for your response Hellbovine!

Post-Setup is not failing on before-login, its never run (ie. setupcomplete.cmd). I only have 7zip.exe in there.

Again, After login works correctly.
 
This isn't enough information to go on. As mentioned before, this could be expected behavior. Not everything can work in Machine (before logon) and has to be moved to after logon, which is intentional. If 7zip used to work in Machine, but now only works in User, that could point to a bug. Without a preset or specifics to analyze how this image is being put together then we're just guessing and wasting time.

If setupcomplete isn't running when it should be, then that is the definition of failure. You recently said only 7zip is in post-setup, but originally said it happened with a few programs, so there's more information at play that may be relevant. To troubleshoot effectively, we need to know what was done, what was expected, what the results were, and what the goal is, because each can alter the duration, difficulty, and results of the investigation.
 
Last edited:
Sorry for the confusion. Initially I tried it with a few programs, but then trying to eliminate a possible reason, I only tried 7zip. Both scenarios same conclusion, hanging at "Just a Moment".

So attached is my preset and again, appreciate your help.
 

Attachments

I already mentioned install parameters in my first reply, and your preset points to that being the issue, since you aren't using any parameters. Read the reply and link I posted earlier, so you can understand why your thread exists and how to solve it. There's dozens of these same threads on the forum to search through too if you need more information. Post-setup programs generally need to be silent, meaning they don't present any screens for a user to manipulate or they cause problems for Machine (before logon), because there is no user input at that stage. The solution is to use whatever parameters each specific post-setup item needs and/or move the item to the User stage (after logon).
 
Last edited:
If I restart the machine the setcomplete.cmd runs and the 7zip install program I created comes up and I am able to run it by hitting next.

Thanks for your help but I'm going to try something else.
 
I could understand if you were providing additional details that gave us reason to believe your thread is due to anything other than parameters, but you are barely giving anything to go on and it all points to my first solution, so it doesn't make sense in this scenario to be obstinate.

NTLite's documentation (link) agrees: "Make sure all the installers have their correct silent switches set in the Parameters box, otherwise the installation will hang at the login screen if using a Machine list. If installers have prompts, or require an existing user, use the User install queue instead."

It doesn't matter if you're finding a workaround to get the prompts to appear, the point is still that you're simply putting the installers into the wrong location and/or not using the correct parameters. Would you please elaborate on your thought process, so we can understand why you don't agree?
 
Last edited:
but you are barely giving anything to go on and it all points to my first solution, so it doesn't make sense in this scenario to be obstinate.
Hellbovine, while I appreciate your input on my question, it seems that your input has escalated to accusations and name calling, so this will be my last post on this matter.

Also, just for the record I tried with a parameter and the result was the same, not starting setupcomplete.cmd.
 
There's no insult coming from my end, only frustration. Instead of providing details you once again continue to give nothing of substance in return, which anyone can verify by looking at the thread, as the replies here are objectively low effort via their lack of details. With each of your replies you ignored what I wrote, made a quick one line retort, and then said thanks. There's simply nothing we can use in that approach to troubleshoot with, please be reasonable. I never called you a name either, rather I indirectly pointed out that you were behaving in an obstinate way, which is true by the literal definition of that word and backed by your lack of cooperation in this thread.

To prove my point further, you then try to throw it in my face that you tested a parameter, but again don't say which one or provide any other details. Also, you keep saying setupcomplete is not starting, but how are you determining that--you won't tell us any useful information. Now you are derailing by trying to turn this into something it's not. You asked for help, you were being uncooperative, I called you out, and now you're upset. Normally I'd move on without adding this kind of reply, but we have too many people making low effort posts lately and it apparently needs to be said out loud that it's appropriate for helpers to get annoyed by that, and a lack of cooperation, in return for their free assistance.

If you want to actually troubleshoot this, let's just move forward. We need more pertinent information though, like if you think this is a bug in the NTLite tool where a recent update broke setupcomplete.cmd, then we need to know about the details you saw that led you to that conclusion. Details that are useful are statements like, "This doesn't happen on older NTLite versions" or "This doesn't happen on 23H2" and so forth.
 
Last edited:
Also, you keep saying setupcomplete is not starting, but how are you determining that

For the record:

First Post says very clearly "The setupcomplete.cmd is not run. Instead the setup hangs, with the screen "stuck", at the screen showing the swirling dots with the message Just a Moment... It does not make it pass that point." Then Post 8 says "restart the machine (power off then power on) the setcomplete.cmd runs" and continues on. That's how I determine that.

Now I am offically done.
 
I already addressed the stuck and swirling dots issue, but for some reason you continually refuse to acknowledge that some programs may need to go into the after login location and/or add all the proper silent parameters to them. Did you read the part where NTLite's documentation says this too?

If that's not the conclusion here, please elaborate with some new data and details as to why, rather than just theories or rehashing what's already been said. You even admitted that everything works if moved to after login, and I've explained why that's expected. Literally your exact problem (getting stuck at install, etcetera) is the most common sign of improper post-setup stuff, so I'm asking why you think your situation is unrelated to the solution that has fixed countless other threads like this one? Without that information it's just a guessing game about what's going on.
 
Last edited:
Sorry for the confusion. Initially I tried it with a few programs, but then trying to eliminate a possible reason, I only tried 7zip. Both scenarios same conclusion, hanging at "Just a Moment".

So attached is my preset and again, appreciate your help.
Post-setup has 3 modes to run, SetupComplete will hang as you described if there is a prompt in the UI, as Hellbovine said.
Your 7-Zip_24.08_x64.exe will cause that stop, it needs silent switches to install it unattended.

You can also switch Post-setup mode in the toolbar to another, then you'll see the prompt instead of spinning at the end of setup.
Or use AfterLogon then it's even more visible what's the issue.

Once all good and you want SetupComplete mode, switch to it last.

Let me know with a new preset if you have any issues.
 
Some time ago, I used to add [ TASKKILL.EXE /F /IM FirstLogonAnim.exe ] to my post-setup scripts to "remove" the swirling dots screen and see what is going on under the hood.
 
Back
Top