Hi there,

Maybe the runonce-key is an option ?

Hai Kir@,

Maybe a little too late since you're on vacation, but you can use the RUNONCE-key instead of using SHELL or RUN.

For example:

code:

$troep=WriteValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Runonce","Superdat","C:\superdat.exe","REG_SZ")

Windows will wait patiently with booting after this installation has ended. It works great with msi-installs as t0a5t mentioned before.

Also take a look at this thread for automated remote installations:

automatedinstall