Windows Installer Helper Utility
Posted 28 June 2004 - 04:58 PM
Posted 30 June 2004 - 01:05 AM
The first time from cmdlines.txt, here i let the user setup an account and use the parameters %NewUserName% and %NewUserPassword% in the install.ini file to run a batch file which sets up autologon for the newly created account (optional through checkbox, default = enabled).
Through cmdlines.txt i setup a runonceex event for after first logon. After first logon WIHU is run again. This time the account part is skipped (/SkipSettings) and a version with a different install.ini is run. Here the user can select his software and install it (see a few pages back for the install.ini file).
As MacroTips said here is where you want a countdown timer, so that after the selected software is finished installing the program doesn't do an instant reset but waits for a while before resetting the pc.
Temporary option is to run shutdown.exe through the install.ini file, but it would be nicer if this was integrated in WIHU.
Posted 30 June 2004 - 04:43 AM
But after that I'll add following:
-Option to save log view into a logfile
-Option to specify install.ini path
-And a countdown timer ... btw. why not reboot instantly? What is the advantage of showing the time when windows will reboot? It's not really clear to me. I would use windows builtin notification dialog (see InitiateSystemShutdownEx API)
Posted 30 June 2004 - 06:14 AM
Im having a small issue where it isnt letting me log on after it has finished the install. It adds the Autologon info alright in the registry but when it goes to autologon it says that the password is incorrect. I know that the autologon info is entered correctly because i used ERD commander to access my system, im assuming your using something along the lines of the built in "net user "%name%" %password% /add" system, so i have no idea, any help would be appreciated.
Posted 30 June 2004 - 02:00 PM
Hmm, strange ... can't imagine why.
Please open registry editor key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon and verify that "AutoAdminLogon" is set to "1", and "DefaultUserName" is the correct user name that should be logged on, and that "DefaultPassword" exists which contain the corresponding plain text password.
May be an error ocurred during installation of the software (installation interrupted). Please try default password "123435" then.
Posted 30 June 2004 - 02:54 PM
Posted 30 June 2004 - 03:59 PM
May be tommorow I'll provide a revised version of wihu 1.6 which shouldn't cause the logon problem even if wihu would be crashed.
Posted 01 July 2004 - 06:10 AM
Posted 01 July 2004 - 12:57 PM
Please note that command line syntax changed. Instead /UserName "New user" for instance you have to use /User="New User". Please see at my web page for more information.
It's now possible to specify install ini via /ini=<file> and with /restartwait=<seconds> restart wait dialog option was added.
Posted 01 July 2004 - 02:36 PM
This project seems to be REALLY taking shape...very nice work....
I shall start tinkering with it, after I'm done with Winamp, which is after I finish the current incarnation of my DVD, which is when my computer is done defragging.
Good luck on those exams...
As for an answer to your question....
When some programs install, they enter entries that are ONLY there untill the computer is restarted, but are loaded when the desktop loads. If the computer never gets to that point, the software that entered the entries may never get completely installed.
The next thing someone is going to ahve you do, is try to implement a plugin's part of the program, so people can design their own, and the plugin adds a page.....say....for selecting VisualStyle or something....Regtweaks maybe.....but just watch SOMEONE is going to ask for it.
EDIT: I removed the attachment to xper's post, so people don't download that first and then complain it doesn't work how the new one does. Some people are stupid, trust me