Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

how can i make WPI run @ 1st logon?


Recommended Posts

k, so I'm fairly new to WPI, but i get it to run by adding it to Setupcomplete.cmd but it seems half my programs are failing to install properly under this

but if i run WPI AFTER im logged in it works fine, any way to get around this?

how do i add programs to runonce in vista? is it in the WAIK?

EDIT: this is in vista, testing on vmware

Edited by MCT
Link to post
Share on other sites

bump :P

if u can give me an idea of what your talking about Kelsenellenelvian i can probly do it, but im not too familiar with vista yet, still toying with it.

My XP CD is way customized, its hard trying to get everything redone for an OS, ive been fairly busy myself, so take yourtime :)

Link to post
Share on other sites

[Version]
Signature="$CHICAGO$"

[DefaultInstall]
AddReg=Run.AddReg

[Run.AddReg]
HKLM,"%RUN%","%WPI%",,"RunDll32 advpack.dll,LaunchINFSection ""%01%\%INF%"",Execute"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System","EnableLUA",0x10001,00,00,00,00
HKCU,"Software\Microsoft\Internet Explorer\Main","Disable Script Debugger",0x0,"no"
HKCU,"Software\Microsoft\Internet Explorer\Main","DisableScriptDebuggerIE",0x0,"no"

[Execute]
RunPreSetupCommands=Launch.WPI:1
DelReg =Run.DelReg

[Launch.WPI]
CMD /Q /C CD /D """%01%\..\WPI""" & START /WAIT /B WPI.hta

[Run.DelReg]
HKLM,"%RUN%","%WPI%"

[Strings]
RUN="SOFTWARE\Microsoft\Windows\CurrentVersion\RUN"
WPI="Windows Post Install"
INF="RunWPI.inf"

I am trying to get this inf to be called via setupcomplete.cmd

So far no such luck. It does run fine and the inf code is right. I just can't get the .cmd file to cal it right. (YET)

Link to post
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...