Jump to content

Need help with guirunonce and runonce registry keys


Recommended Posts

Hi guys, got a little funny thing here.

Installing wxp sp2 from network via unattended. Everything installs fine. Through the unattended answerfile (guirunonce) i call a cmd file to install some applications. This also works fine.

In the cmd file I set this key: reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v Command0 /f /d "cmd /c unattend2.cmd"

The idea is to have a second cmd file execute on next reboot. Unfortunately it executes right after the key as been set!

So the breakdown:

Guirunonce calls unattend.cmd which installs som apps, sets the key, and lastly installs Cisco vpn adapter. During the installation of Cisco vpn unattend2.cmd excutes! Unattend2.cmd should not have been executet, until after the reboot.....

Any ideas on how to do this? I really need to reboot and the continue installation....

Thanks in advance

/Michael

Edited by Scuga
Link to comment
Share on other sites


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