Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

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. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Sign in to follow this  

Crash when making user?

Recommended Posts

nivek7    0

Ok... for all my tests in vmware, it never crashed. But when I install it on my real computer, after it asks for the user stuff and starts creating it, it crashes. (this program has encountered an error. would you like to send report to microsoft or something like that) Sorry, i can't get the log file since this only happens for my real computer... when it is installing...

btw... my comp is a amd64 trying to install 32-bit windows if that makes a differnce

Share this post

Link to post
Share on other sites

Just yesterday I also reinstalled Windows XP 32 Bit on my AMD 64 system. WIHU didn't crashed there.

Please send me your install.ini and mention me when and from within you called WIHU (GuiRunOnce, cmdlines.txt etc.).


Share this post

Link to post
Share on other sites
nivek7    0

here is the install.ini

; description.x  = Description of the installable software
; command.x  = command that should be executed to install the software
; hidden.x  = if 1, this sub command will not be showed in list view control
; selected.x  = if software will be installed by default (checked in list view control)
; file.x.y  = file that should be checked against specified version (greater/less/exists comparison)
; key.x.y  = registry key that should be checked against specified data (greater/less comparison)
; ... whereby x is a continuous number of sub commands (command.x) and y is a continuous number
; of unique (enumeration)
; Default keys that will be used if not specified:
; selected = 1 (Note this is the selection key for entire section)
; hidden = 0 (section specific invisibility)
; collapsed = 0
; hidden.x = 0
; description.x = <missing description>
; selected.x = 0
; key.comparison.x = and
; file.comparison.x = and
; collapsed.x = 0
; Strings in command.x, key.x.y and file.x.y will be expanded if necessary.

; There can be theoretically up to 65535 enrties per subtree
; Note: One key "key.a.b.c.d.e.f.g.h...=" must not exceed 255 characters entirely
; To create a sub tree just append sublevel indizes to commands like:
; command.0="command 1"
; command.1="command 2"
; command.0.0="sub command 0.0"
; command.0.0.0="sub command 0.0.0"
; command.0.0.1="sub command 0.0.1"
; ... Will create following sub tree:
; "command 1"
;     "sub command 0.0"
;         "sub command 0.0.0"
;         "sub command 0.0.1"
; "command 2"
; Remark: If you hidden a tree, also each of it's subtrees will be hidden also if not specified explicitly
; Root Tree (section name) will never be hidden!


; DefaultHome will set the home directory that will used as default for each new user
; if none is specified by the user
; MozillaFireFoxVersion=HKLM:Software\Mozilla\Mozilla Firefox\CurrentVersion
; MozillaFireFoxPath=HKLM:Software\Mozilla\Mozilla Firefox\%MozillaFireFoxVersion%\Main\Install Directory

DefaultProfilesDir = HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ProfilesDirectory

; Favorites=%systemroot%\My Favorites

; dimension.update=1 will write WIHU windows size to ini file. Next time WIHU is started, it will adjust
; it's size to corresponding dimension.width and dimension.height parameters.

; dimension.update=1
; dimension.width=800
; dimension.height=500
; PageHeaderTitle.x and PageHeaderSubTitle.x sets the header title or subtitle of
; specified page. First page is page 0.
; PageHeaderTitle.0=Title0
; PageHeaderSubTitle.0=SubTitle0
; PageHeaderTitle.1=Title1
; PageHeaderSubTitle.1=SubTitle1
; computer=xyz
; skipsettings=1

;[Fully hidden commands, should'nt be displayed ]
;hidden = 1

;command.0=cmd.exe /c @echo Hidden 0
;description.0=(Should not be displayed)

;command.0.0=cmd.exe /c @echo Hidden 0.0
;description.0.0=(Should not be displayed)

; User.x = Will create a new user with specified name and set Password.x
; Group.x can be either 0, 1 or 2. 1 means that new user will be added to "Administrators" Group,
; 0 means "Users" group, 2 will cause WIHU not to move the user to any group.
; Status.x set account status. For valid numbers please look at NetUserAdd API in USER_INFO_1
; struct at "usri1_flags". Description can be found on
; http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/user_info_1_str.asp
; Here is a list of values.
; #define UF_SCRIPT                          0x0001
; #define UF_ACCOUNTDISABLE                  0x0002
; #define UF_HOMEDIR_REQUIRED                0x0008
; #define UF_LOCKOUT                         0x0010
; #define UF_PASSWD_NOTREQD                  0x0020
; #define UF_PASSWD_CANT_CHANGE              0x0040
; #define UF_DONT_EXPIRE_PASSWD           0x10000
; #define UF_MNS_LOGON_ACCOUNT            0x20000
; #define UF_SMARTCARD_REQUIRED           0x40000
; #define UF_TRUSTED_FOR_DELEGATION       0x80000
; #define UF_NOT_DELEGATED               0x100000
; #define UF_USE_DES_KEY_ONLY            0x200000
; #define UF_DONT_REQUIRE_PREAUTH        0x400000
; #define UF_PASSWORD_EXPIRED            0x800000
; ...
; Profile.x specifies the users profile path
; RoamingProfile.x specifies the roaming profile path
; Home.x specifies the path of the home directory for the new user
; Comment.x contains a comment to associate with the user account
; Script.x specifies the path for the user's logon script file.
;  The script file can be a .CMD file, an .EXE file, or a .BAT file.
; Domain.x Domain/Computer where to create the user. If none is specified
;  local system will be used.
; Default = x specifies the index of the user which should be used as default user
;  i.e. this which will be used for software installation.
; Crypted.x Do not change this, it will be generated automatically by calling "WIHU /EncryptIni"
;  and will be removed by "WIHU /DecryptIni"
;  If you remoce Crypted.x key, you have to adjust corresponding password.x key
;  otherwise password.x will not be decrypted correctly.
; If some of the specified users already exists, user data will be updated with this
; new one specified here.
; %ThisUser% Will be replaced by the corresponding user name
; %ThisHome% Will be replaced by the corresponding user home path (ONLY if specified here)
; %ThisProfile% Will be replaced by the corresponding user profile path (ONLY if specified here)

; Note: If you set one of this in here, it will be also set for newly created user
; Administrative Tools
; Cache
; CD Burning
; Cookies
; Desktop
; Favorites
; Fonts
; History
; Local AppData
; Local Settings
; My Music
; My Pictures
; My Video
; NetHood
; Personal
; PrintHood
; Programs
; Recent
; SendTo
; Start Menu
; Startup
; Templates

; My Video.x=%systemdrive%\Videos



User.1=New User
Comment.1=Your Newly Created User Account
; My Video.1=c:\%ThisUser%\Videos

;User.2=New Domain User
;Comment.2=This is a new domain user which will be created at specified domain

; Disable Administrator account


UserTestEnvVar1=Testdata 1 from users.ini [environment.0] section
UserTestEnvVar2=Testdata 2 from users.ini [environment.0] section

; delete.x=UserName@Domain, (whereby Domain is optional) will delete specified existing windows user account
; disable.x/enable.x=UserName@Domain, (whereby Domain is optional) will disable/enable specified existing windows user account
; Rename.x=FromUser@Domain, ToUser renames a user
; delete.0=ASPNET
; disable.0=New User@axp
; rename.0=new user@axp, new

and i ran it during runonceex

Share this post

Link to post
Share on other sites
my2001    0

Is this above really your install.ini?? Because when you leave out all of the comments the following remains:

[Environment]DefaultProfilesDir = HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ProfilesDirectory








User.1=New User


Comment.1=Your Newly Created User Account


UserTestEnvVar1=Testdata 1 from users.ini [environment.0] section

UserTestEnvVar2=Testdata 2 from users.ini [environment.0] section


Just wondering. *hehe*

And unfortunately I can't help you very much with your problem, but I had it once, too: WIHU crashed right after I clicked OK and it ought to start it's working process. But this was because of my let's say broken Windows system that time. I reinstalled Windows and everything worked out well again. What I want to say: I _guess_ the problem isn't related directly with WIHU.

Share this post

Link to post
Share on other sites

@nivek7: When you run WIHU from within Windows (after installation) with the same settings and install.ini, does it also crash then?

Otherwise, is "Data Execution Prevention" on or off?

Btw. in your settings ini, NO user will be created because the one and only user start with index 1, which isn't possible here.

[environment.0] will also be ignored then, remains [settings] section.


Share this post

Link to post
Share on other sites
my2001    0


Another question: Are the spaces in front of and behind the equal sign " = " allowed?

DefaultProfilesDir = HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ProfilesDirectory

Share this post

Link to post
Share on other sites
nivek7    0

It works after installation. (with DEP disabled and I don't know if it works with DEP on) I think its the data execution prevention that is making it crash. I've been having lots of problems with it until I disabled it. (I disabled it after all install was finished).

For the config part, i want the person to make their own username/pass etc. ( no problems here )

thx for your help

Share this post

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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.